I read about Linux and cachd memory at linuxatemyram but there is something that doesn't make sense to me, if the server have even a low load, instead of freeing some cached memory it starts using swap, which makes the server slow..
Even now, when the server load is load average: 0.00, 0.00, 0.00 some memory is swapped while over 85% of the memory is taken for swapping.
I read similar questions such as this and this, but it's mentioned that swapping shouldn't happen. As well, up until 3 weeks ago a much smaller part of the memory was taken by cache, and we didn't change anything that was suppose to affect the cached memory.
Could you please tell me if this values are still OK or could it be that i have a problem?
Thanks!
[root@web01 ~]# cat /proc/meminfo MemTotal: 5183448 kB MemFree: 249260 kB Buffers: 330848 kB Cached: 4317828 kB SwapCached: 92 kB Active: 2883596 kB Inactive: 1882468 kB HighTotal: 4315324 kB HighFree: 63516 kB LowTotal: 868124 kB LowFree: 185744 kB SwapTotal: 5799928 kB SwapFree: 5799796 kB Dirty: 368 kB Writeback: 0 kB AnonPages: 117356 kB Mapped: 21076 kB Slab: 152668 kB PageTables: 4184 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 8391652 kB Committed_AS: 268708 kB VmallocTotal: 116728 kB VmallocUsed: 5404 kB VmallocChunk: 110964 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 Hugepagesize: 2048 kB [root@web01 ~]# free total used free shared buffers cached Mem: 5183448 4932936 250512 0 330840 4317340 -/+ buffers/cache: 284756 4898692 Swap: 5799928 132 5799796 [root@web01 ~]# uname -a Linux web01 2.6.18-164.15.1.el5PAE #1 SMP Wed Mar 17 12:14:29 EDT 2010 i686 i686 i386 GNU/Linux 