Skip to contentSkip to conversation

Why does xc_domain_getinfolist() think 256 == 244?

DISCUSSION Tim Post 1 participant 1 message May 13, 2009

lore
Share & tools
lore

Tim Post

author
#0 lore raw

Hi,

I am using xc_domain_getinfolist() on x86_32 and have noticed something rather odd.

If a dom-u is allocated 256 MB , xc.curmem thinks its 244.

We take curmem, and divide it by (1024 * 1024). Any other multiple of 1, 2, 4, 8 (and more) is accurate .. however if curmem == 256, we've lost 12 * (1024 * 1024).

To reproduce, start 3 mini-os guests with 256 MB of ram, use xc_domain_getinfolist() and see what it says :) I'm working with the current tip of xen-unstable.

Yet, xm list reports the memory accurately.

I'm puzzled.

Regards,
--Tim