Need some help understanding memory allocation

I am a little confused on why my CentOS box is using so much RAM. I currently have a small test setup which only has *12GB* of ram total. When I log into the administrative interface it tells me: *Memory* 4.3 Available of 15.5 GiB Over commit: 39% (allocated 45%) 11.1 GB Used Currently I am only running 3 VMs with memory allocations as follows: Defined Memory: 1024 MB Physical Memory Guaranteed: 1024 MB Defined Memory: 3072 MB Physical Memory Guaranteed: 3072 MB Defined Memory: 2048 MB Physical Memory Guaranteed: 2048 MB *Or 6144MB used by VM* If I SSH into my ovirt host, and run TOP and sort by memory, the top usage items are: 31896 qemu *21.5%* 727:21.44 qemu-kvm 6008 qemu *14.6%* 190:33.70 qemu-kvm 3019 ovirt *13.6%* 35:47.64 java 5800 qemu *8.5%* 784:26.88 qemu-kvm 2565 ovirt *3.9%* 62:58.00 java Everything else is pretty small compared, but for the OVIRT/QEMU we roughly get *Total: 62% = 7.45GB* So I am a bit confused as to the Ram being reported to me by the system (15.5GGB, but the system only has 12GB), and assuming OVIRT is using around 7-8GB, does a bare minimal install of CentOS really need 4-5GB of Ram to run? This is a bare minimal install of CentOS7 running only Webmin and oVirt. I think there are several things I don't understand here, and I am quite new to oVirt and would like to learn, so please excuse my inexperience if this is a silly question! Thanks either way, I am really happy I ditched my ESXi box :D

--Apple-Mail=_133EB0FB-0246-464A-B1A7-A1F3EA7178BA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 What does /proc/meminfo says ? Memory usage is a complex thing.
Le 10 ao=C3=BBt 2017 =C3=A0 23:23, Wesley Stewart = <wstewart3@gmail.com> a =C3=A9crit : =20 I am a little confused on why my CentOS box is using so much RAM. I = currently have a small test setup which only has 12GB of ram total. =20 When I log into the administrative interface it tells me: =20 Memory =20 4.3 Available of 15.5 GiB=20 Over commit: 39% (allocated 45%) =20 11.1 GB Used =20 Currently I am only running 3 VMs with memory allocations as follows: =20 Defined Memory: 1024 MB Physical Memory Guaranteed: 1024 MB =20 Defined Memory: 3072 MB Physical Memory Guaranteed: 3072 MB =20 Defined Memory: 2048 MB Physical Memory Guaranteed: 2048 MB Or 6144MB used by VM =20 If I SSH into my ovirt host, and run TOP and sort by memory, the top = usage items are: 31896 qemu 21.5% 727:21.44 qemu-kvm 6008 qemu 14.6% 190:33.70 qemu-kvm 3019 ovirt 13.6% 35:47.64 java 5800 qemu 8.5% 784:26.88 qemu-kvm 2565 ovirt 3.9% 62:58.00 java =20 Everything else is pretty small compared, but for the OVIRT/QEMU we = roughly get Total: 62% =3D 7.45GB =20 So I am a bit confused as to the Ram being reported to me by the = system (15.5GGB, but the system only has 12GB), and assuming OVIRT is = using around 7-8GB, does a bare minimal install of CentOS really need = 4-5GB of Ram to run? =20 This is a bare minimal install of CentOS7 running only Webmin and = oVirt. I think there are several things I don't understand here, and I = am quite new to oVirt and would like to learn, so please excuse my = inexperience if this is a silly question! =20 Thanks either way, I am really happy I ditched my ESXi box :D =20 =20 =20 _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--Apple-Mail=_133EB0FB-0246-464A-B1A7-A1F3EA7178BA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">What does /proc/meminfo says ?<div class=3D""><br = class=3D""></div><div class=3D"">Memory usage is a complex = thing.</div><div class=3D""><br class=3D""><div><blockquote type=3D"cite" = class=3D""><div class=3D"">Le 10 ao=C3=BBt 2017 =C3=A0 23:23, Wesley = Stewart <<a href=3D"mailto:wstewart3@gmail.com" = class=3D"">wstewart3@gmail.com</a>> a =C3=A9crit :</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" = class=3D"">I am a little confused on why my CentOS box is using so much = RAM. I currently have a small test setup which only has <b = class=3D"">12GB</b> of ram total.<div class=3D""><br class=3D"">When I = log into the administrative interface it tells me:</div><div = class=3D""><br class=3D""></div><div class=3D""><h3 = style=3D"box-sizing:border-box;font-family:"Open = Sans",Helvetica,Arial,sans-serif;line-height:1.1;color:rgb(54,54,54);= margin-top:7px;margin-bottom:10px;font-size:16px" class=3D""><u = class=3D"">Memory</u></h3><div class=3D"gmail-current-values" = style=3D"box-sizing:border-box;border-bottom:1px solid = rgb(209,209,209);float:left;padding:0px 5px 10px = 0px;width:513.656px"><h1 class=3D"gmail-available-count gmail-pull-left" = style=3D"color:inherit;font-family:inherit;font-size:24px;box-sizing:borde= r-box;margin:3px = 0px;font-weight:300;line-height:1.1;padding-left:0px;padding-right:5px;flo= at:left">4.3</h1><div class=3D"gmail-pull-left gmail-available-text" = style=3D"color:rgb(51,51,51);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;line-height:14px;margin:2px 0px;padding:0px 5px;float:left"><div = style=3D"box-sizing:border-box" class=3D"">Available</div><div = style=3D"box-sizing:border-box" class=3D"">of 15.5 = GiB </div></div><div = style=3D"color:rgb(54,54,54);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;clear:left;padding-top:5px" class=3D"">Over commit: 39% (allocated = 45%)<br class=3D""><br class=3D"">11.1 GB Used</div><div = style=3D"color:rgb(54,54,54);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;clear:left;padding-top:5px" class=3D""><br class=3D""></div><div = style=3D"color:rgb(54,54,54);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;clear:left;padding-top:5px" class=3D"">Currently I am only running 3 = VMs with memory allocations as follows:</div><div = style=3D"color:rgb(54,54,54);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;clear:left;padding-top:5px" class=3D""><br class=3D""></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" class=3D""><div= style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Defined = Memory:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">1024 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Physical = Memory Guaranteed:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">1024 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D""><br = class=3D""></span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Defined = Memory:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">3072 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Physical = Memory Guaranteed:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">3072 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D""><br = class=3D""></span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Defined = Memory:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">2048 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">Physical = Memory Guaranteed:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">2048 = MB</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D""><b = class=3D"">Or 6144MB used by VM</b></span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D""><br = class=3D""></span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><span style=3D"font-size:12px" class=3D"">If I = SSH into my ovirt host, and run TOP and sort by memory, the top usage = items are:</span></font></div><div = style=3D"box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><font color=3D"#363636" face=3D"Open Sans, Helvetica, Arial, = sans-serif" class=3D""><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D"">31896 qemu <b class=3D"">21.5%</b> = 727:21.44 qemu-kvm</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""> 6008 qemu <b = class=3D"">14.6%</b> 190:33.70 qemu-kvm</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""> 3019 ovirt <b = class=3D"">13.6%</b> 35:47.64 java</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""> 5800 qemu <b = class=3D"">8.5%</b> 784:26.88 qemu-kvm</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""> 2565 ovirt <b = class=3D"">3.9%</b> 62:58.00 java</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><br class=3D""></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D"">Everything else is pretty small compared, but for the = OVIRT/QEMU we roughly get<br class=3D""></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><b class=3D"">Total: 62% =3D 7.45GB<br class=3D""><br = class=3D""></b></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D"">So I am a bit confused as to the Ram being reported to me by = the system (15.5GGB, but the system only has 12GB), and assuming OVIRT = is using around 7-8GB, does a bare minimal install of CentOS really need = 4-5GB of Ram to run?</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><br class=3D""></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D"">This is a bare minimal install of CentOS7 running only Webmin = and oVirt. I think there are several things I don't understand = here, and I am quite new to oVirt and would like to learn, so please = excuse my inexperience if this is a silly question!</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><br class=3D""></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D"">Thanks either way, I am really happy I ditched my ESXi box = :D</div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><b class=3D""><br class=3D""></b></div><div = style=3D"font-size:12px;box-sizing:border-box;clear:left;padding-top:5px" = class=3D""><b class=3D""><br class=3D""></b></div></font></div></div><div = style=3D"color:rgb(54,54,54);font-family:"Open = Sans",Helvetica,Arial,sans-serif;font-size:12px;box-sizing:border-box= ;clear:left;padding-top:5px" class=3D""><br = class=3D""></div></div></div></div> _______________________________________________<br class=3D"">Users = mailing list<br class=3D""><a href=3D"mailto:Users@ovirt.org" = class=3D"">Users@ovirt.org</a><br = class=3D"">http://lists.ovirt.org/mailman/listinfo/users<br = class=3D""></div></blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_133EB0FB-0246-464A-B1A7-A1F3EA7178BA--

Hi,
So I am a bit confused as to the Ram being reported to me by the system (15.5GGB, but the system only has 12GB)
Let me start by asking you to check Cluster / Edit / Optimization tab to see whether you have memory overcommit enabled (it seems so). You can also select the host from the webadmin and you will see all the necessary information on the General subtab - most notably Physical RAM metrics and Maximum free memory available for scheduling. Those are a bit more accurate than the dashboard..
Currently I am only running 3 VMs with memory allocations as follows: Or 6144MB used by VM
Add 256 MB reserved by default for the host operating system (in /etc/vdsm/vdsm.conf) and 64 MB per VM for qemu overhead.
If I SSH into my ovirt host, and run TOP and sort by memory, the top usage items are: 31896 qemu 21.5% 727:21.44 qemu-kvm 6008 qemu 14.6% 190:33.70 qemu-kvm 3019 ovirt 13.6% 35:47.64 java 5800 qemu 8.5% 784:26.88 qemu-kvm 2565 ovirt 3.9% 62:58.00 java
The engine takes both logical VM memory allocation (6GB) and the physical memory into account to make sure the VMs will have enough memory even in the future. So the displayed number usually does not resemble what you see directly on the host, because the VMs are not using their full share most of the time.
This is a bare minimal install of CentOS7 running only Webmin and oVirt.
Do you have all your VMs on the same host as the webadmin management console? That is usually a bad idea and we recommend using self hosted engine for this kind of setup (the webadmin running in a VM).
does a bare minimal install of CentOS really need 4-5GB of Ram to run?
Nope. It should be couple of hundred megabytes max for the host services. Check what `free` tells you too, I am pretty sure you will have a lot of cached pages there. This is all I can tell right now, the numbers from the Host / General subtab and the info about overcommit would shed more light on the topic. Best regards Martin Sivak On Thu, Aug 10, 2017 at 11:23 PM, Wesley Stewart <wstewart3@gmail.com> wrote:
I am a little confused on why my CentOS box is using so much RAM. I currently have a small test setup which only has 12GB of ram total.
When I log into the administrative interface it tells me:
Memory
4.3
Available of 15.5 GiB Over commit: 39% (allocated 45%)
11.1 GB Used
Currently I am only running 3 VMs with memory allocations as follows:
Defined Memory: 1024 MB Physical Memory Guaranteed: 1024 MB
Defined Memory: 3072 MB Physical Memory Guaranteed: 3072 MB
Defined Memory: 2048 MB Physical Memory Guaranteed: 2048 MB Or 6144MB used by VM
If I SSH into my ovirt host, and run TOP and sort by memory, the top usage items are: 31896 qemu 21.5% 727:21.44 qemu-kvm 6008 qemu 14.6% 190:33.70 qemu-kvm 3019 ovirt 13.6% 35:47.64 java 5800 qemu 8.5% 784:26.88 qemu-kvm 2565 ovirt 3.9% 62:58.00 java
Everything else is pretty small compared, but for the OVIRT/QEMU we roughly get Total: 62% = 7.45GB
So I am a bit confused as to the Ram being reported to me by the system (15.5GGB, but the system only has 12GB), and assuming OVIRT is using around 7-8GB, does a bare minimal install of CentOS really need 4-5GB of Ram to run?
This is a bare minimal install of CentOS7 running only Webmin and oVirt. I think there are several things I don't understand here, and I am quite new to oVirt and would like to learn, so please excuse my inexperience if this is a silly question!
Thanks either way, I am really happy I ditched my ESXi box :D
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (3)
-
Fabrice Bacchella
-
Martin Sivak
-
Wesley Stewart