1752589 Members
4230 Online
108788 Solutions
New Discussion юеВ

paging out or not?

 
SOLVED
Go to solution
Dan Copeland_1
Advisor

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 2
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.