From: Tim Post Subject: Why does xc_domain_getinfolist() think 256 == 244? Date: Wed, 13 May 2009 17:35:50 +0800 Message-ID: <1242207350.5451.28.camel@localhost.localdomain> Reply-To: echo@echoreply.us Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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