Operating System - HP-UX
1832618 Members
2624 Online
110043 Solutions
New Discussion

Re: what is using swap space?

 
SOLVED
Go to solution
Eileen Millen
Trusted Contributor

what is using swap space?


Is there a way to find out how much swap processes are using?
Eileen
10 REPLIES 10
Helen French
Honored Contributor

Re: what is using swap space?

Hi Eileen:

Try these:

# swapinfo
# glance

Check the man pages for details

HTH,
Shiju
Life is a promise, fulfill it!
Christopher McCray_1
Honored Contributor

Re: what is using swap space?

Hello,

vmstat can also help with this.

Have a good weekend

Chris
It wasn't me!!!!
Sanjay_6
Honored Contributor

Re: what is using swap space?

Hi Eileen,

Try this link to know more about swap utilization,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=eac43f9d16fdc6937b/screen=ckiDisplayDocument?docId=200000058668734

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: what is using swap space?

Eileen Millen
Trusted Contributor

Re: what is using swap space?

What I mean is which processes and how much swap they are using.
Eileen
Helen French
Honored Contributor

Re: what is using swap space?

Hi Eileen:

Your best bet is to use GlancePlus:

# gpm

This will give you all information you need(processes, swap usage, total resource usage, per process usage etc).

HTH,
Shiju
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: what is using swap space?

Hi Eileen


May be you want to look at something like this
:

Memory Stat total used avail %used
physical 32764.0 24296.4 8467.6 74%
active virtual 16899.8 10480.4 6419.4 62%
active real 18039.3 10747.2 7292.1 60%
memory swap 26522.5 19504.4 7018.1 74%
device swap 3332.0 3332.0 0.0 100%

this i get from a simple c program which i have attached , just compile using using cc < fiel name > and you can run it any time.

Manoj Srivastava
U.SivaKumar_2
Honored Contributor
Solution

Re: what is using swap space?

hi,
#fuser -u /dev/vg00/lvol2
this will show the pid of processes which acceses the swap.
sample:
1044c(root) 1462c(root) 1116co(root) 1056c(root)
now , to find the processes
#ps ef | grep 1044
#ps -ef | grep 1462

regards,
U.SivaKumar



Innovations are made when conventions are broken
Niraj Kumar Verma
Trusted Contributor

Re: what is using swap space?

hi,

# swapinfo -t

-Niraj
Niraj.Verma@philips.com
Trond Haugen
Honored Contributor

Re: what is using swap space?

swapinfo is good for this. I would reccomend using the '-t' option to get the total including reserved. Also the '-m' option is usually good for getting Mb instead og Kb.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn