WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] how mem-set / balloon changes totalram_pages

To: "Xen Developers" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] how mem-set / balloon changes totalram_pages
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Thu, 15 Nov 2007 22:41:57 -0500
Delivery-date: Thu, 15 Nov 2007 19:42:32 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=TWXv1yrOUI0wlEeRV9aQS0QZXr3cQIorq8aG3xkYf1I=; b=UsfabChAssb0pMIFSZImQieW1SfRi5+GLJgA3N7zi+h5T9a285JlQWgqmeyvgkV6jA2hqNhtthi2mnr0nEU/rAK93wsQm4MyNio3osISX58MmijL6O1GyzDpSMsh/Y12Bfs3bl6+3VGFMA5yX0n7rIqqEaMcUx4+HH0e/dtjoP0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=b87fDerV4eTo32iRbsPaZVqchKPYi0X6ajcYUBrdCwms5WOneQYPxP1jUpr5cBQXfwmKe4ILXR20P2spdzlpkx0gadfYCGabGcVPPTiJntrMExSXM+jBJJXpkeZ6IXd6Q+1h1sl5wTKy8QUlBvXtAg0K1pf8DRIntBgKb6jNUlA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I find that after I use xm mem-set to change the current memory
allocation of a dom, the MemTotal in /proc/meminfo will give the
current allocation.

In my understanding, the balloon driver simply alloc / free pages, so
the MemTotal should not be changed. Only the free memory will be
affected.

In normal linux, the value of MemTotal comes from "totalram_pages"
defined in arch/i386/mm/init.c

I tried to located the code in Xen, which changes the variable, but I
didn't find such code.

I tried to locate the implementation of  HYPERCALL_memory_op, but I
can only traced to
"call hypercall_page + STR(...)"

Can someone tell me where I can find the actual implementation of
those hypercalls?


Thanks in advance!

weiming

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] how mem-set / balloon changes totalram_pages, weiming <=