My system freezes quite often when run out of memory, I have 2GB and using netbeans, chrome, firefox and a few other apps this is consumed completely. Seems to me since I upgraded to ubuntu natty.
ubuntu natty current
uname -a
2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux
from /etc/fstab
UUID=7f3586b2-14c3-455c-a5bd-7adbc8174589 /srv xfs defaults 0 2
/dev/sda2 none swap sw 0 0
I tried setting
sysctl vm.swappiness=100
but no effect. It' always like:
It looks always like that:
Every 2,0s: free -m Wed Jul 13 20:20:26 2011
total used free shared buffers cached
Mem: 1758 1697 61 0 55 633
-/+ buffers/cache: 1008 750
Swap: 0 0 0
What can I do to test if my swap works?