Friday, June 17, 2011

Swap Space on linux

I'm running Kubuntu & noticed usage of my swap file (about 400 Meg of RAM & about 400 Megs of Swap file). Hey I have 2.8 Gigs of RAM, why should the swap file be used. I'm already sick of the Win7x64 memory leak that I have not yet resolved.

Anyways here's a cool way to turn off swap on linux
* sudo swapoff -a

Turn it back on using
* sudo swapon -a

Cool right ? Look at this for more stuff - https://help.ubuntu.com/community/SwapFaq

1 comments:

Ritesh said...

Depends on how the kernel has been configured. Given that you have 2.8 GiB of RAM, nothing should ever be swapped.

What does your kernel's swappiness look like?
/proc/sys/vm/swappiness