OpenVZ Forum


Home » General » Support » VE memory misconfigured / misreported
Re: VE memory misconfigured / misreported [message #32643 is a reply to message #32639] Thu, 21 August 2008 15:25 Go to previous messageGo to previous message
piavlo is currently offline  piavlo
Messages: 159
Registered: January 2007
Senior Member
So your VE current RAM usage is 171M since
(physpages*4096+kmemsize+allsocketbuf)/1024/1024=
=42568*4096+4761437+(142080+214188+17760+0)/1024/1024=
=179493993/1024/1024=171

Also since oomguarpages equals physpages (since no VE pages are swaped out by the kernel) the RAM+SWAP=RAM in your case.

Now total current allocated “virtual” (but not used) memory for VE is 1908MB
(privvmpages*4096+kmemsize+allsocketbuf)/1024/1024=
=487310*4096+4761437+(142080+214188+17760+0)/1024/1024=
2001157225/1024/1024=1908MB


This huge difference is since your VE apps ask for too much memory but don't actually use it. For example i took a look at my VE with nginx webserver and php-cgi and it's RAM usage is 55M while “virtual” memory is 92M. So look in tool like htop to find which of the apps is asking for too much memory but not using it.

It's all in http://wiki.openvz.org/UBC_systemwide_configuration
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Lost access to GUI
Next Topic: init: no more processes left in this runlevel
Goto Forum:
  


Current Time: Mon Jul 15 20:24:08 GMT 2024

Total time taken to generate the page: 0.02417 seconds