OpenVZ Forum


Home » General » Support » why buffers cached is always 0 in VPS/VE?
Re: why buffers cached is always 0 in VPS/VE? [message #32925 is a reply to message #32924] Tue, 09 September 2008 07:26 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Quote:

Yes, there are failcounters. Starting tomcat is OK, it just happens when I try to shutdown tomcat.
384MB is not enough for tomcat and mysql in a VE, while it is enough in a physical machine(no swap)?

Look, there is slightly different mechanisms in memory handling on Hardware Node and inside a Container.

if you have only 384Mb RAM on a Hardware Node and no swap - you'll be able to alloc 1Gb of memory in your problem. Without any problem. But if you later try to use that memory - read/write something from/to it, the process will be killed.
Inside a Container such a malloc of 1Gb will fail from the very beginning on an allocation stage - not actual using.

i think tomcat just allocs quite a lot of memory which does not really use - that's why it runs ok on a hardware node but fails inside a Container.

To gain the same functionality inside a Container you need to increase the privvmpages, but set the oomguarpages to 384Mb. In that case a program will be able to allocate a lot of RAM, but in case of global memory shortage on the node (if that process will try to use all allocated memory) - the process will be killed.

Hope that helps.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [solved] Dynamic Resource Allocation Not Working
Next Topic: [solved] Help Me Understand Please (About Setting Resource Per VE)
Goto Forum:
  


Current Time: Wed May 08 14:36:53 GMT 2024

Total time taken to generate the page: 0.01372 seconds