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. 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? 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