Question about memory resource parameters [message #1953] |
Thu, 09 March 2006 23:19  |
 |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
First of all, thanks for the fine User's Guide. I have read significant portions of it, and skimmed over the rest.
I was reading a thread on the Zimbra support formum related to OpenVZ. Someone asked if it was possible to install Zimbra within an OpenVZ VPS. For specifics, see here:
http://www.zimbra.com/forums/showthread.php?t=776
Anyway, on page two of that thread the following was stated:
Quote: | Open VZ standard which will run on machines with up to 4Gb RAM has a limit on the virtual machine RAM size of 700 and something Mb.
The enterprise version which will run if you have more than 4Gb RAM will allocate over 3Gb to any virtual server if it is available.
|
Is that an accurate statement? I've looked at the various pages/documents that discuss the differences between OpenVZ and Virtuozzo and I don't see this mentioned.
Speaking of memory resource allocation, I've been reading over the sections in the User's Guide that refer to resource allocation and given the fact that there are several parameters related to memory... and not too much depth... I don't quite understand how to apply the various options to match a desired outcome. Perhaps there are documents somewhere that go into memory resource allocation with a little more depth? Any guidance would be appreciated.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
Re: Question about memory resource parameters [message #1981 is a reply to message #1953] |
Sat, 11 March 2006 00:42   |
 |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
I joined the #openvz IRC channel and had the opportunity to discuss this issue. Basically the comment above is wrong... and OpenVZ doesn't really have a memory resource limits other than sane, platform dependent ones.
It was obvious that the various resource parameters, as documented in the OpenVZ User's Guide, can be somewhat confusing... especially with regards to the memory resource parameters.
Hopefully in the not too distant future, additional documentation will appear. The OpenVZ road map document (http://openvz.org/development/roadmap) mentions "provide Resources Administration Guide (UBC)".
It was also made clear that the best way to find out how much RAM / Resources an application will use is to actually use it and watch the /proc/user_beancounters file to see exactly what, if any resource parameters need to be adjusted.
If anyone can provide me with a copy of the Virtuozzo(tm) manual(s), I'm told they do a lovely job of documenting the various resource parameters... and I could use those documents to educate myself enough to help write a "Resources Administration Guide" for OpenVZ. Anyone have some manuals they could let me borrow?
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
|
Re: Question about memory resource parameters [message #2004 is a reply to message #2001] |
Mon, 13 March 2006 15:05   |
 |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Dev,
Thanks for correcting me. I didn't get it wrong on purpose and I hope it is understandable since the original post never used the term "SMP" nor "kernel".
So, just what is a "normal zone" and does the difference in "normal zone" RAM availability between an SMP kernel and the Enterprise kernel have anything to do with running a RAM heavy application?
Some other postings from the Zimbra forum were talking about it needing at least 768MB of RAM... or at least that is what LiveCD they released (which is based on Knoppix, runs X, KDE and Firefox) needed as a minimum in order to function. Getting somewhat off topic, I tried the Zimbra LiveCD in VMware and verified that indeed, Zimbra would not start up properly in anything less than 768MB of RAM (in the LiveCD configuration anyway).
So, let's say that Zimbra DOES need 768MB of RAM to startup (even without X, KDE and Firefox)... would the UP or SMP kernel not be able to handle that because of it's ~700MB of "normal zone" RAM?
Thanks in advance for any clarifications you can offer.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
|
Re: Question about memory resource parameters [message #2007 is a reply to message #2005] |
Mon, 13 March 2006 16:52  |
 |
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Zimbra is actually a combination of a number of things including Postfix (I think that's the MTA they use), OpenLDAP, MySQL, a Java based application that runs in a JVM (I believe), amavisnew, and spamassassin. It starts up a number of services/processes and with all of that, is very RAM hungry.
It attempts to start everything, one service at a time... and if you don't have enough RAM, it just fails at some point.
I haven't tried it in a VPS yet but I will.
So, if I understand you correctly, there may be advantages to running the "Enterprise" kernel even if you don't have greater than 4GB of RAM or SMP? ...along with some additional processing overhead as a negative consequence.
I do believe my point about Memory Resource parameters is still valid... they are pretty confusing to non-kernel hackers and they aren't well documented in the OpenVZ User's Guide... and additional, more complete documentation is desirable.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|