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] Balloon Driver Internals

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Balloon Driver Internals
From: "Gaurav Dhiman" <dimanuec@xxxxxxxxx>
Date: Tue, 23 May 2006 18:48:48 -0700
Delivery-date: Tue, 23 May 2006 18:49:13 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QEbcCyoeQa9lv94kWgXFgb5U17+oEhs47O/+jwWxeTd1Tf8ZrapaFesweXGLY8EYCPd/spydvjAfA/rWy9ijop0hbeXC6G3UlOounvXf/aJs0/mPY+vgM6ZL3W4CzYnfbEusfNKtpyKlwoSGtaSwlTqFchqr3l0+oqVuDqFuT08=
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 All,

I am quite new to Xen and am trying to understand the way balloon driver works in XenoLinux. I have the following observations and questions; please correct me if I am wrong:

1. Balloon driver adds pages between xen_start_info->nr_pages and max_pfn to the ballooned list. While nr_pages is derived from the 'memory' parameter specified while creating the domain, how is the value of max_pfn evaluated/specified?

2. The memory/target in the xenstore on domain0 indicates the target number of pages for each domain. If the value changes, watch_target function of the balloon driver gets invoked. Right? Accordingly the balloon driver increases/decreases the number of pages (using increase_reservation/decrease_reservation).

3.  It seems that increasing/decreasing reservation happens manually by modifying memory/target in xenstore. What all needs to be done to have a dynamic scenario where the domains can increase/decrease their reservation according to their requirements? Would this require modification to memory manager of guest OS?
Consider the following scenario:
  • we just have 2 domains (say domain0 and domain1) each with 200MB of allocated memory (total physical memory is 1GB).
  • we do not modify memory/target in xenstore.
  • if domain1 uses up it's share (200MB), pages will get swapped out to disk even though a lot of physical memory is free.
  • cant we have a case where domain1 requests increase in reservation to make use of surplus physical memory?
  • or does it already happen? if yes, then how?
Kindly provide your views, it would be really helpful!!

Sorry for the long mail.

Thanks in advance,
Gaurav

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Balloon Driver Internals, Gaurav Dhiman <=