From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhigang Wang Subject: Re: Questions about xenapi/libvirt and Memory overcommiting Date: Fri, 04 Jul 2008 11:00:23 +0800 Message-ID: <486D9247.6090707@oracle.com> References: <486CD7B3.6030002@work.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <486CD7B3.6030002@work.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "viets@work.de" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org viets@work.de 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@lists.xensource.com > http://lists.xensource.com/xen-devel