Pass cgroup_disable=memory, saves ~ 5MB of RAM.
authorRichard Jones <rjones@trick.home.annexia.org>
Fri, 24 Jul 2009 08:31:49 +0000 (09:31 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Fri, 24 Jul 2009 08:31:49 +0000 (09:31 +0100)
src/guestfs.c

index db6db91..72cd2f3 100644 (file)
@@ -1043,7 +1043,8 @@ guestfs_launch (guestfs_h *g)
     "console=ttyS0 "   /* serial console */                            \
     "udevtimeout=300 " /* good for very slow systems (RHBZ#480319) */  \
     "noapic "          /* workaround for RHBZ#502058 - ok if not SMP */ \
-    "acpi=off "        /* we don't need ACPI, turn it off */
+    "acpi=off "        /* we don't need ACPI, turn it off */           \
+    "cgroup_disable=memory " /* saves us about 5 MB of RAM */
 
     /* Linux kernel command line. */
     snprintf (append, sizeof append,