LinHES Forums
http://forum.linhes.org/

Swap file
http://forum.linhes.org/viewtopic.php?f=5&t=18233
Page 1 of 1

Author:  mjl [ Tue Apr 29, 2008 7:24 pm ]
Post subject:  Swap file

Hi,

How does one "purge" the swap file? Over a period of days, I have manage to totally fill my swap file with left over garbage.and would like to clean it with out rebooting.

Thanks
Mike

Author:  tjc [ Tue Apr 29, 2008 7:37 pm ]
Post subject: 

man swapoff

Author:  mjl [ Tue Apr 29, 2008 8:08 pm ]
Post subject: 

Hi tjc,

Thanks but that wasn't very helpful. swapoff -a does nothing and top still shows it active and full. Only top even acknowledges it is lurking around somewhere. I can only assume it thinks there is something of value in swap and therefore ignores my swapoff request.

I could simply reboot but that takes the fun away :)
Mike

Author:  mrjackson [ Wed Apr 30, 2008 9:25 am ]
Post subject: 

why bother?
let the kernel do what it wants and it will be happy, start messing around with stuff and then you cause problems.

Author:  mjl [ Wed Apr 30, 2008 10:45 pm ]
Post subject: 

Hi,

In the process of diddling with my KM box I managed to fill the swap and when one only has 256 meg of memory, a little extra space is sometimes needed. For some reason unknown to me, it didn't seem to self purge because of the playing I was doing, guess the kernel thought it was still important stuff.

Anyway, a simple restart of the xserver cleaned it out and all is good again :) I hate to reboot! That's M$ way of doing fixes.

Thanks
Mike

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/