Re: OpenVZ Density [message #32319 is a reply to message #32273] |
Wed, 30 July 2008 19:41 |
|
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
I believe I've seen the graph and info that is there came from a presentation I've seen given my Kir (the OpenVZ Project Manager)... and I've also seen it in various other presentations given by various Parallels folks in the last couple of years. So that's the source of it. I did a search and I can't seem to find any copies of those presentations online... although I did find a few broken links.
In an effort to duplicate the findings... I just created a CentOS 5 i386 default container... using an updated OS Template I made for contrib (uptodate as of last Sunday). I turned off sendmail, xinetd, edited ksyslogd out of the syslogd startup script (because it isn't needed), and reconfigured apache to only start up one server (all stock modules loaded) and here's what I got:
[root@openvz2 ~]# vzlist
VEID NPROC STATUS IP_ADDR HOSTNAME
199055 6 running 153.90.199.55 devel2.cs.montana.edu
[root@openvz2 ~]# vzctl enter devel2
entered into VE 199055
[root@devel2 /]# pstree -nup
init(1)-+-syslogd(28571)
|-sshd(28596)
|-crond(28619)
|-httpd(29747)---httpd(29748,apache)
`-vzctl(29757)---bash(29758)---pstree(29772)
[root@devel2 /]# top -b -n 1 | head -5 | tail -2
Mem: 9982512k total, 9856k used, 9972656k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
That's the closest I could get... which is a little over 9MB of RAM being used.
Since the material is a little older maybe is was taken from a distro running an older apache (like the 1.3 series) that uses less RAM. Anyway, my results with the latest stuff weren't that far off.
If leave everything turned on and just go with the default (sendmail, xinetd, default number of apaches, etc), the container takes up about 19MB of RAM. I have yum installed in my containers (many of the pre-created OS Templates do not include it and that is bad) and if I were to run that to do updates, of course the container would use a lot more RAM.
So, does that make you feel any better?
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|