aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/xend-config.sxp
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-29 10:36:53 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-29 10:36:53 +0000
commit084dedfee399bf41d12df75873b2f49b2ebd539d (patch)
tree95ca26c24a48d7381878053786e7f20eed99fa1a /tools/examples/xend-config.sxp
parent613f9362cfecfd2e5ed36eef8c44842a3a9aca3c (diff)
downloadxen-084dedfee399bf41d12df75873b2f49b2ebd539d.tar.gz
xen-084dedfee399bf41d12df75873b2f49b2ebd539d.tar.bz2
xen-084dedfee399bf41d12df75873b2f49b2ebd539d.zip
This patch does 2 jobs:
- Enforce the number of CPUs dom0 will take. See the new variable "dom0-cpus" in xend-config.sxp (you will want to set this variable to 1 on SMP systems) - Balloon out dom0 memory when creating domU, if there is not enough free memory. The lowest level we will balloon out is configured via the new variable "dom0-min-mem" in xend-config.sxp I still have a doubt: where to put the code to enforce dom0-cpus. At the moment I put it into python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable enough. Any comment? Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
Diffstat (limited to 'tools/examples/xend-config.sxp')
-rw-r--r--tools/examples/xend-config.sxp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/examples/xend-config.sxp b/tools/examples/xend-config.sxp
index 8d670c3d16..d8914d320d 100644
--- a/tools/examples/xend-config.sxp
+++ b/tools/examples/xend-config.sxp
@@ -44,3 +44,11 @@
# Setup script for enbd-backed block devices
(block-enbd block-enbd)
+# Dom0 will balloon out when needed to free memory for domU.
+# dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
+# If dom0-min-mem=0, dom0 will never balloon out.
+(dom0-min-mem 0)
+
+# In SMP system, dom0 will use only CPUs in range [1,dom0-cpus]
+# If dom0-cpus = 0, dom0 will take all cpus available
+(dom0-cpus 0)