1834829 Members
2177 Online
110070 Solutions
New Discussion

Swap information

 
SOLVED
Go to solution
Troyan Krastev
Regular Advisor

Swap information

Hi all,

This is the swap information for one of my boxes
----------------------------------------------
gold:/ # swapinfo -t
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1703936 15044 1688892 1% 0 - 1 /dev/vg00/lvol2
dev 512000 15084 496916 3% 0 - 1 /dev/vg01/swap2
reserve - 1992356 -1992356
total 2215936 2022484 193452 91% - 0 -
----------------------------------------------
What do 91% mean, and is it posible for me to find the processes that reserved this memory. I don't have GlancePlus!

Thanks,
Troy.
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Swap information

Hi Troy:

Here's an easy way to rank processes by the amount of memory (in 1024 byte chunks) they're using:

# UNIX95= ps -e -o "user,vsz,pid,ppid,args" | sort -rnk2 | more

'top' is useful too.

...JRF...
Troyan Krastev
Regular Advisor

Re: Swap information

Hi James,

I tried this command but it gave mi that "-o" is illegal option? About top, I should look at column size, right?
Troyan Krastev
Regular Advisor

Re: Swap information

Sory James, it works!!!
James R. Ferguson
Acclaimed Contributor
Solution

Re: Swap information

Hi Troy:

Cut-and-paste exactly what I provided. There is no semicolon (;) after 'UNIX95=', only a space and then the 'ps', etc. This is setting the environmental variable "UNIX95" only for the command line on which it appears. This is all we need to tell 'ps' to run with the POSIX (UNIX95) option "on". See 'man ps' for more information.

...JRF...
MANOJ SRIVASTAVA
Honored Contributor

Re: Swap information

It is 91 % used , please use top to get a list of processes using more memory in descending order .

Manoj Srivastava