Re: Calculating kmemsize [message #37320 is a reply to message #36842] |
Wed, 02 September 2009 18:17   |
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?
|
|
|