1834660 Members
2426 Online
110069 Solutions
New Discussion

swapinfo -mat

 
SOLVED
Go to solution
John Guster
Trusted Contributor

swapinfo -mat

how is the value of the avail(MB) in memory line calculated in swapinfo -mat? Thanks.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: swapinfo -mat

Shalom,

Total memory is RAM plus swap.

Available memory is the above total minus memory in use.

Memory in use includes swap that is reserved even if the system is not actively pageing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
John Guster
Trusted Contributor

Re: swapinfo -mat

thought "total" is the sum of avail "device" and avail "memory"; avail "device" is what we configure using disks(asuming use disk only); only avail "memory" is not clear how it is defined in swapinfo -mat output.
Thanks.
Steven E. Protter
Exalted Contributor

Re: swapinfo -mat

Shalom,

Does not matter whether its device swap or filesystem swap, its memory as far as swapinfo goes.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor
Solution

Re: swapinfo -mat

Hi John,

This guide is excellent:
ftp://hprc.external.hp.com/memory.htm

Here's part of the section on swap:

* dev line(s):

o are the actual physical swap device(s)
o show if swapping has actually occurred. In other words, the PCT USED column in the dev lines represents the value last attained during a previous period of swapping. This is analogous to the high-water mark that a flood leaves.
o to check to see if swapping is currently occuring, use 'vmstat -v 5 5' to see if the 'po' (page outs) is sustained above 0.

* reserve line(s)

o indicate how much of the swap device(s) has(have) been set aside for memory should it need to be swapped.

* memory line:

o indicative of how much of pseudo-swap has been reserved
o when present, indicates pseudo-swap is enabled (i.e. swapmem_on kernel paraemter is set to 1, which is the default.) The size of pseudoswap is calculated to be 75% of the size of RAM (a.k.a. memory.) In other words, it does not refer to acual physical memory use!!!! Pseudo-swap was designed specifically for large memory systems for which acutal swapping is never (or rarely) expected to occur, so thereâ s less need to use actual physical disk space for swap.

* total line:

o the PCT USED value shown in the total line indicates how much swap space has been actually reseved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.

PCS
John Guster
Trusted Contributor

Re: swapinfo -mat

so it appears there is no definite cutoff line for avail memory value,it is between 70-80% of RAM depending on the size of the RAM. Thanks for doc.
John Guster
Trusted Contributor

Re: swapinfo -mat

thanks.