Knowledgebase

Where is my RAM going?

Posted by JennyK, 10-22-2010, 04:00 PM
Quad Server(VPS) running OpenVZ. I get 512MB Dedicated and 2GB Burst but heres my problem... Idle I run past 512 and burst into 900MB something. But problem is I start getting web errors because linux thinks it has ram but its actually taken. IMAGE: i55.tinypic.com/5mcspg.png I just dont know what process is using all that RAM(500 something). Is it just Linux caching all the files? Can I edit sysctl.conf to lower the caching?

Posted by luki, 10-23-2010, 12:59 AM
VZ containers do not do explicit file caching (that's done by the kernel on the physical host), so you cannot control that and neither does it count against your memory usage. The memory usage reported is the sum of VIRT memory sizes. It's a little deceiving because many processes allocate more memory than they actually use, so the requested memory size (VIRT) is often larger than the actually used physical memory (RES).

Posted by JennyK, 10-24-2010, 02:48 AM
oh ok i get it... but still adding the numbers up i dont see how the RAM is so high when theres hardly anything running.

Posted by madaboutlinux, 10-24-2010, 04:46 AM
You won't get the exact figure. Looking at the image, the RAM usage looks fine. What error message do you receive btw?

Posted by sysadm2, 10-25-2010, 12:05 AM
Yeah..we would be able to put better ideas, after seeing the error message. Also, memory usage can be tracked by checking the top output, if there are any instances hogging huge amount of memory, in the sense which its not intended to, try optimizing the concerned service, or for a quick relief just restart the service.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Datapipe (Views: 627)
vmware (Views: 571)
Core spilling (Views: 634)


Language:

Client Login

Email

Password

Remember Me

Search