1830026 Members
11384 Online
109998 Solutions
New Discussion

Re: Swap

 
SOLVED
Go to solution
Jasmin Berube
Advisor

Swap

Is there a way to free up some swap manually with any unix command? Because the only way i found to free up some swap is to reboot. Even if i ask users to logout, swap stay high.
5 REPLIES 5
Stefan Farrelly
Honored Contributor
Solution

Re: Swap


I think youre talking about the result of the swapinfo command ? it shows %used as high but after getting users to logout it doesnt go down. This is a problem with the swapinfo command, it basically shows peak usage (since last reboot), not current usage. For more accurate up-to-date swap usage use glance or gpm.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Victor BERRIDGE
Honored Contributor

Re: Swap

unfortunatly HPUX is not linux, there is no swapoff cmd...
But I dont see why you are in need to free some swap since the system will do it (well it will take some time) unless you have some memory leak...
Jasmin Berube
Advisor

Re: Swap

You're right, i was used to get swap value with swapinfo -tm, so if it's not accurate, i'll try glance or gpm. By the way, what is gpm?
Victor BERRIDGE
Honored Contributor

Re: Swap

gpm is glance with Xmotif interface
Anthony Goonetilleke
Esteemed Contributor

Re: Swap

gpm is (glance plus motif) the text version is glance every system admin should have this is they are looking after HP machines you can geta trial version for 60 days from HP I think its on the apps CD.
Minimum effort maximum output!