1748043 Members
4823 Online
108757 Solutions
New Discussion юеВ

Re: swapinfo output

 
Joao Rei
Frequent Advisor

swapinfo output

Hi,

There are several posts about swapinfo.
I'm still not sure about the output of swapinfo.
Let's take an example:

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8192 88 8104 1% 0 - 1 /dev/vg00/lvol2
reserve - 370 -370
memory 3876 2325 1551 60%
total 12068 2783 9285 23% - 0 -

Are all these values high water marks or actually are the current values of swap?

Regards,

Joao Rei

9 REPLIES 9
Patrick Wallek
Honored Contributor

Re: swapinfo output

They are the current values.

Currently you are using 88 MB of device swap.
Joao Rei
Frequent Advisor

Re: swapinfo output

Thank you for the reply.

This swapinfo output is taken from an ia64 11.31 system with 4GB RAM.

Right now we only have the operating system running. No applications.

I'm a bit suprised that the 88MB is the current swap in use.
This "idle" system has pages in swap space?

Some threads talk about high water marks.
Just to make sure...and to close this issue.





Kapil Jha
Honored Contributor

Re: swapinfo output

swapinfo prints information about device and file system paging space. (Note: the term `swap' refers to an obsolete implementation of virtual memory; HP-UX actually implements virtual memory by way of paging rather than swapping. This command and others retain names derived from `swap' for historical reasons.)
----
----
Kb USED
The current number of 1-Kbyte blocks used for paging in the paging area. For the memory paging area, this count also includes memory used for other purposes and thus unavailable for paging.

from man page
http://docs.hp.com/en/B2355-60105/swapinfo.1M.html

It does not mean its swapping right now.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Dennis Handly
Acclaimed Contributor

Re: swapinfo output

>I'm a bit surprised that the 88MB is the current swap in use. This "idle" system has pages in swap space?

How many processes do you have running?
UNIX95=EXTENDED_PS ps -H -ef

And how much swap is each using?
UNIX95=EXTENDED_PS ps -H -e -opid,comm,vsz
Joao Rei
Frequent Advisor

Re: swapinfo output

How many processes do you have running?
UNIX95=EXTENDED_PS ps -H -ef

The system has about 160 processes.

And how much swap is each using?
UNIX95=EXTENDED_PS ps -H -e -opid,comm,vsz

PID COMMAND VSZ
2124 dm_sas_adapter 1808
20338 sysedge 5584
22077 nrpe 2512
2407 sysstat_em 952
2203 dm_ql_adapter 932
18987 sendmail: 4592


This is just a part of the output.

The total of VSZ is 284788


Dennis Handly
Acclaimed Contributor

Re: swapinfo output

>The total of VSZ is 284788

And 88 Mb is 1/3 of it.
Joao Rei
Frequent Advisor

Re: swapinfo output


From the input of all you admins , we can say that swapinfo values are current and that USED KB:

"...For the memory paging area, this count
also includes memory used for other purposes and thus unavailable for paging."

One last question, and sorry If I'm overdoing it:

>The total of VSZ is 284788
And 88 Mb is 1/3 of it.

Is 1/3 just the math or there is some relation between swapinfo USED KB and ps VSZ?
Dennis Handly
Acclaimed Contributor

Re: swapinfo output

>Is 1/3 just the math

Just what it currently is and hand waving to indicate it is reasonable.
Joao Rei
Frequent Advisor

Re: swapinfo output

Thank you all for the replies.
My questions were answered.