cancel
Showing results for 
Search instead for 
Did you mean: 

paging out or not?

SOLVED
Go to solution

paging out or not?

Hello,

I would like to run a script on several servers to determine whether or not the servers are paging out to disk (are in swap trouble). What command would give me that information (text based)?

Thanks in advance
2 REPLIES
Stefan Farrelly
Honored Contributor
Solution

Re: paging out or not?

use the vmstat command. The values under the pi and po columns are paging in and out. If these values are ever > 5 or more then you are paging. < 5 is ok, a normal system will have the odd 1 or 2 every once in a while.
Im from Palmerston North, New Zealand, but somehow ended up in London...
A. Clay Stephenson
Acclaimed Contributor

Re: paging out or not?

Hi Dan,

Use vmstat. A combination of vmstat and awk will give up just the data you need.

Man vmstat for details.

Regards, Clay

If it ain't broke, I can fix that.