OpenVZ Forum


Home » General » Support » Calculating kmemsize (How do you calculate kmemsize?)
Re: Calculating kmemsize [message #37320 is a reply to message #36842] Wed, 02 September 2009 18:17 Go to previous messageGo to previous message
damswf is currently offline  damswf
Messages: 5
Registered: September 2009
Junior Member
I agree, I just installed a web serveur in an openvz container, and i frequently have this problem. Either I can't do ps anymore, or i don't have a shell when I ssh, etc... instead I got "fork: Cannot allocate memory".

This is a pain for me since I wanted openvz to be more protected against hardware problems, and I have this headache instead.

Every time I grow up the kmemsize barrier limit, I see the maxheld increasing until behing greater to the barrier limit then I got some failcnt and errors.

This server is not at all under load now, but once it will be, it will be because of a lot of customers hitting the site (I cannot reproduce the same thing myself to test), and I cannot take the risk to have databases crashing nor losing data because of being unable to allocate kernel memory on a 8GB 64bits system (vc have 4GB).

And I have no clue what the values should be! I have kmemsize >= 40kB * avnumproc + dcache size but still the problem.

This is a serious issue for production servers.

So what do I do? I explain to my boss I just virtualized our servers and we have more problems although I explained him a few times ago that it will work better?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Allocate more RAM to a VPS
Next Topic: [solved] Containers not respoding to their ips
Goto Forum:
  


Current Time: Mon Sep 01 12:05:21 GMT 2025

Total time taken to generate the page: 0.07720 seconds