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

Re: [Xen-devel] Questions about xenapi/libvirt and Memory overcommiting

To: "viets@xxxxxxx" <viets@xxxxxxx>
Subject: Re: [Xen-devel] Questions about xenapi/libvirt and Memory overcommiting
From: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
Date: Fri, 04 Jul 2008 11:00:23 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 03 Jul 2008 20:01:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <486CD7B3.6030002@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <486CD7B3.6030002@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080421)
viets@xxxxxxx wrote:
> Hello,
> 
> I'm unsure whether this question is for xen-devel or for the (dead?)
> xen-api mailinglist?
> 
> Inspired by Dan Magenheimers xenballoond patch ("[PATCH] xenballoond
> (memory overcommit) scripts"), I'd like to program the xenballoond for a
> Dom0, so that there is no need to run it in every DomU, which improves
> the possibility for policing and probably the monitoring.
very good idea! but I'm wandering whether we can get these info from hypervisor.
> 
> My question is what api I should use to program it? xenapi or libvirt?
> 
> And how do I get values that are in xenstored? I didn't find a function
> in the xenapi or libvirt? Are there any examples?
> 
xenapi and libvirt are interfaces for other tools to manage xen. but your
xenballoond should belong to the infrastructure of xen. I think should be
implement in xend as a thread or stand alone process.

And if you want make it configurable (eg. change policy) by other tools (xm),
you should add APIs to xenapi or libvirt.

> My first implementation of the program, was made in the bash, but I
> guess C or python is the better way for it.
> 
> The first implementation was based on the attached kernel patch, which
> only make the memory information of the domU kernel accessible by
> xenstore, if CONFIG_XEN_DAEMON_BALLOON is set.
> 
> Attached to this email is my first implementation of the program. It
> looks every second whether a domain needs more or less memory and change
> the value.
> 
> greetings
> Viets
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

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

<Prev in Thread] Current Thread [Next in Thread>