Portal Home > Knowledgebase > Articles Database > Cached Memory


Cached Memory




Posted by crk91, 08-24-2007, 09:06 PM
I have a dedicated server with 1gb ram, now I see 468.02 MB used for Cached memory, this is the first time. Why could this be? I have not changed any settings except for turning off safe mode for an account.

Posted by david510, 08-24-2007, 11:17 PM
Type free -m to see the memory usage. Also run the top command and press "Shift + M" to sort the result by memory usage. See which process is taking more memory.

Posted by crk91, 08-24-2007, 11:31 PM
Ok, when I type the top command, the top one is httpsd then mysqld... ( I am running a forum) When I type free -m, I get the same memory usage stats that I get in Plesk.

Posted by david510, 08-24-2007, 11:50 PM
cache memory is used more means the memory usage is more frequent on the server. Buffer size increases when there are more frequent access to similar sources. CPU access the buffer to increase the speed of the operation. When current the buffer pages are less frequently accessed, the cache is cleared for other pages.

Posted by crk91, 08-24-2007, 11:55 PM
Ok, so I don't have to worry about the memory issue? Because on the peak times, my site will need the memory. So will the cache clear automatically and that memory will be free?

Posted by david510, 08-25-2007, 12:13 AM
As long as the sites are loading fine and you are not seeing any memory related errors in log files no need to worry.

Posted by ximi, 08-25-2007, 02:54 AM
This is the first time I saw that your RAM being used is a problem. I you have something like phpsysinfo (example) it breaks down your physical memory into three groups; Kernel + applications, buffers, and cached. The only one worth looking at is Kernel + applications as that is the "actual" RAM usage. The rest of the usage is only there for performance reasons.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
MySQL InnoDB crash (Views: 614)