Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

paging out or not?

Go to solution

paging out or not?


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
Stefan Farrelly
Honored Contributor

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.