1753868 Members
7143 Online
108809 Solutions
New Discussion юеВ

Swap Utilization

 
Narendra Uttekar
Regular Advisor

Swap Utilization

Hi,
When i am checking swap utilization through glance it is showing 43% utilised. But at same time when i check it through swapinfo -mat it is showing 0% utilised as below,
test01:[/]# swapinfo -mat
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 266 -266
memory 4666 3497 1169 75%
total 8762 3763 4999 43% - 0 -

I want to know why it is not showing the swap utilization from swapinfo command? And also on the other server swap utilization through glance is showing 97% utilised but when i check at same time through swapinfo command it is showing only 25% utilised?

Thanks,
Narendra

6 REPLIES 6
Hakki Aydin Ucar
Honored Contributor

Re: Swap Utilization

>total 8762 3763 4999 43% - 0 -
total is 43% , and utility in glance %43 , so no problem ?
likid0
Honored Contributor

Re: Swap Utilization

You have to interpret the output of swapinfo correctly, take a look at this thread where you will find the explanation:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=939794
Windows?, no thanks
muruganantham raju
Valued Contributor

Re: Swap Utilization

Hi,
You see the device swap is not utilized(dev - USED 0%) but the pseudo-swap (memory - USED 75%) is indeed being utilized.

Thus the total utilization (3763/8762)% is 43%

where 8762 is Total available 4096 + 4666
3763 is total utilized 266 + 3497

HTH
Muru
Narendra Uttekar
Regular Advisor

Re: Swap Utilization

Hi Raju,
Please go through the below output of swapinfo
test05:[/]# swapinfo -mat
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 323 3773 8% 0 - 1 /dev/vg00/lvol2
dev 5000 326 4674 7% 0 - 1 /dev/vg00/lvswap1
dev 5000 325 4675 6% 0 - 1 /dev/vg00/lvswap2
dev 8192 327 7865 4% 0 - 1 /dev/vgfs/lvswap
reserve - 20987 -20987
memory 25564 24847 717 97%
total 47852 47135 717 99% - 0 -
Here it is showing 99% total that means it is utilising 99% of swap and memory as 97% that means it is utilising 97% of physical memory.Same it is showing in glance my question is whether i have to add more swap space or not required? As you can see in swapinfo output as 20.9GB reserve memory and i have device swap as 22GB configured.

Thanks,
Narendra
Dennis Handly
Acclaimed Contributor

Re: Swap Utilization

>total 47852 47135 717 99% - 0 -
>Here it is showing 99% total that means it is utilising 99% of swap and memory as 97% that means it is utilising 97% of physical memory.

Yes. If you try to start more large processes they will abort.

>whether I have to add more swap space or not required?

If you want to use more VM, you need to add more swap or RAM.
Almost all of your device swap is reserved, just hasn't be written yet.
SoorajCleris
Honored Contributor

Re: Swap Utilization

Hi Narendra,

I would request you to read about pseudo swap , you will not have further doubts.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie