Skip to content

Commit

Permalink
anaconda: limit dom0 maxmem to 4GB to limit its overhead on big systems
Browse files Browse the repository at this point in the history
Linux kernel have some memory overhead depending on maxmem. Dom0 isn't meant to use that much memory (most should be assigned to AppVMs), so on big systems this will be pure waste.

QubesOS/qubes-issues#1136
Fixes QubesOS/qubes-issues#1313
  • Loading branch information
fepitre committed Oct 18, 2018
1 parent 2c83a3b commit 51145bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyanaconda/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ def write_defaults(self):
# boot arguments
log.info("bootloader.py: used boot args: %s ", self.boot_args)
defaults.write("GRUB_CMDLINE_LINUX=\"%s\"\n" % self.boot_args)
defaults.write("GRUB_CMDLINE_XEN_DEFAULT=\"console=none dom0_mem=min:1024M\"\n")
defaults.write("GRUB_CMDLINE_XEN_DEFAULT=\"console=none dom0_mem=min:1024M dom0_mem=max:4096M\"\n")
defaults.write("GRUB_DISABLE_RECOVERY=\"true\"\n")
defaults.write("GRUB_THEME=\"/boot/grub2/themes/system/theme.txt\"\n")
defaults.close()
Expand Down

0 comments on commit 51145bb

Please sign in to comment.