1752774 Members
4872 Online
108789 Solutions
New Discussion

Re: extend a swap

 
SOLVED
Go to solution
James R. Ferguson
Acclaimed Contributor
Solution

Re: extend a swap


@silusan wrote:

I didnt quite understood this line "The priority value is the opposite of the choice order"
Does that mean swap with priority 1 would be used only after swap  with priority 2 is fully consumed?


Yes, that is what that means.  Remember, you when a process is born it needs to reserve swap space in the event that it ever needs it.  This does not mean that the swap space is ever actually used.  If you see 'vmstat' page-out activity in double-digits, you are swapping to the extent that performance is degrading..  Page-ins are normal requests for code and are not of concern.

 

Regards!

 

...JRF...

Dennis Handly
Acclaimed Contributor

Re: extend a swap

dev        8192       0    8192    0%
dev        8192       0    8192    0%
reserve       -   16384  -16384

 

In your case, you have reserved all of your device swap but haven't started swapping to it.  You still have plenty of free memory.