All of lore.kernel.org
 help / color / mirror / Atom feed
* Why does xc_domain_getinfolist() think 256 == 244?
@ 2009-05-13  9:35 Tim Post
  0 siblings, 0 replies; only message in thread
From: Tim Post @ 2009-05-13  9:35 UTC (permalink / raw)
  To: Xen-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-13  9:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-13  9:35 Why does xc_domain_getinfolist() think 256 == 244? Tim Post

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.