Memory not seen in Dom0

View: New views
4 Messages — Rating Filter:   Alert me  

Memory not seen in Dom0

by rah600 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a machine with 64G of ram. Running CentOS 5.4 with kernel 2.6.18-164, I only see 32G in /proc/meminfo. All 64G show up for the stock kernel. There are no vm's running.

I'm new to xen, so my first question is: is this normal? If not, anyone know what the issue might be? Any help or pointers to a doc is appreciated.

_______________________________________________
Xen-users mailing list
Xen-users@...
http://lists.xensource.com/xen-users

Re: Memory not seen in Dom0

by Itamar Reis Peixoto :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

32 or 64 bit ?


On Sat, Nov 7, 2009 at 8:50 AM,  <maillists0@...> wrote:

> I have a machine with 64G of ram. Running CentOS 5.4 with kernel 2.6.18-164,
> I only see 32G in /proc/meminfo. All 64G show up for the stock kernel. There
> are no vm's running.
>
> I'm new to xen, so my first question is: is this normal? If not, anyone know
> what the issue might be? Any help or pointers to a doc is appreciated.
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@...
> http://lists.xensource.com/xen-users
>



--
------------

Itamar Reis Peixoto

e-mail/msn/google talk/sip: itamar@...
skype: itamarjp
icq: 81053601
+55 11 4063 5033
+55 34 3221 8599

_______________________________________________
Xen-users mailing list
Xen-users@...
http://lists.xensource.com/xen-users

Re: Memory not seen in Dom0

by Steve Thompson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 7 Nov 2009, maillists0@... wrote:

> I have a machine with 64G of ram. Running CentOS 5.4 with kernel 2.6.18-164,
> I only see 32G in /proc/meminfo. All 64G show up for the stock kernel. There
> are no vm's running.
>
> I'm new to xen, so my first question is: is this normal? If not, anyone know
> what the issue might be? Any help or pointers to a doc is appreciated.

Yes, this is normal, or rather it is a limitation of the xen kernel. Note
that it probably is not a real issue in practice, as any VM's that you
create will come from the "missing" 32GB, only overflowing into the "real"
32GB when the first 32GB is used. I have a similar system with 48GB
physical memory, and with 26 guests, each having 1 GB, the amount of
memory shown in Dom0 is around 22GB.

Steve

_______________________________________________
Xen-users mailing list
Xen-users@...
http://lists.xensource.com/xen-users

Re: Memory not seen in Dom0

by Pasi Kärkkäinen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 07, 2009 at 05:50:45AM -0500, maillists0@... wrote:
>    I have a machine with 64G of ram. Running CentOS 5.4 with kernel
>    2.6.18-164, I only see 32G in /proc/meminfo. All 64G show up for the stock
>    kernel. There are no vm's running.
>
>    I'm new to xen, so my first question is: is this normal? If not, anyone
>    know what the issue might be? Any help or pointers to a doc is
>    appreciated.

Dom0 shouldn't see all the memory !!
You should limit dom0 memory to, say, 1 GB.

Add dom0_mem=1G option for xen.gz in /boot/grub/grub.conf and reboot.

then your dom0 should have around 1 GB in /proc/meminfo.

You can check the Xen hypervisor memory info with "xm info". It'll list
the hypervisor available memory.

And "xm list" will list how much memory each domain/guest is using.

If you have full amount (32G or 64G) of memory visible to dom0 linux
kernel, then linux will set network, memory etc defauls based on that
(huge) boot time amount of memory.. and then when you create guests,
that dom0 memory will be "ballooned" down, and later when you have
much smaller amount of memory in dom0, it'll have problems since many
internal kernel parameters were based on having 32G or 64G of memory..
and weird things start to happen.

So it's best to limit and dedicate for example 1 GB of memory to dom0
and prevent ballooning that way.

Xen always dedicated physical memory to each guest.. dom0 is also a guest.

-- Pasi



_______________________________________________
Xen-users mailing list
Xen-users@...
http://lists.xensource.com/xen-users