Page 1 of 1

Centos 5.9 and swap memory

Posted: 2014/08/01 17:29:39
by bkabhilash
Hello Guys,

I hope you can help me.
My server running in centos 5.9 is not using swap memory.
The top command always shows swap memory used as 132 KB even when RAM utilization is 100%.
The server has 32 GB RAM and during installation I have allocated 32 GB hard disk space for swap.

Your suggestions will be really helpful.

Regards,
Abhilash

Re: Centos 5.9 and swap memory

Posted: 2014/08/01 18:23:37
by TrevorH
It'll only use swap if it needs to use swap. Obviously on your system it doesn't need to do so. You might want to read http://www.linuxatemyram.com for an explanation of how linux uses memory - basically unused memory is wasted memory so whatever is not actively used by programs will be used for caching files.

Re: Centos 5.9 and swap memory

Posted: 2014/08/01 19:05:56
by gerald_clark
You need to update immediately to 5.10.
32G of swap is nuts unless you are suspending to swap.
If you use more than 512M of swap your machine will be doing nothing useful.