Skip to contentSkip to conversation

Add warning about small memory allocations to example config files

PATCH New Daniel Stekloff 1 participant 1 message Apr 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add warning about small memory allocations to example config files

To help with the small memory issue, here's a patch that adds a warning to the example config files. The goal is to warn people about allocating insufficient memory for domains. This patch is trivial - only comments.

Thanks,

Dan

# HG changeset patch
# User [email protected] # Node ID 90fb296f09d7970943bfe04f7e17a6ff4b9a5791 # Parent 72f9c751d3ea1f17ff513cd7fc2cbe671a9af7c9

Add small memory warning message to domain configuration examples.

tools/examples/xmexample.hvm +4 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample.hvm
@@ -21,6 +21,10 @@
 builder='hvm'
 
 # Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 128
 
 # A name for your domain. All domains must have different names.
tools/examples/xmexample.nbd +5 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample.nbd
@@ -10,7 +10,12 @@
 
 kernel = "/boot/vmlinuz-2.6.13-15b-xen"
 ramdisk = "/boot/initrd-2.6.13-15b-xen"
+
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 128
+
 name = "nbd4"
 vif = [ '' ]
 # Please change PORT
tools/examples/xmexample.vti +4 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample.vti
@@ -18,6 +18,10 @@
 builder='hvm'
 
 # Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 256
 
 # A name for your domain. All domains must have different names.
tools/examples/xmexample1 +4 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample1
@@ -17,6 +17,10 @@
 #builder='linux'
 
 # Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 64
 
 # A name for your domain. All domains must have different names.
tools/examples/xmexample2 +4 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample2
@@ -45,6 +45,10 @@
 #builder='linux'
 
 # Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 64
 
 # A name for the new domain. All domains have to have different names,
tools/examples/xmexample3 +4 -0
diff -r 72f9c751d3ea -r 90fb296f09d7 tools/examples/xmexample3
@@ -45,6 +45,10 @@
 #builder='linux'
 
 # Initial memory allocation (in megabytes) for the new domain.
+#
+# WARNING: Creating a domain with insufficient memory may cause out of
+#          memory errors. The domain needs enough memory to boot kernel
+#          and modules. Allocating less than 32MBs is not recommended.
 memory = 64
 
 # A name for the new domain. All domains have to have different names,

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel