]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: use maximum reservation to limit amount of usable RAM
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 19 Aug 2011 14:57:16 +0000 (15:57 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 12 Sep 2011 20:25:17 +0000 (16:25 -0400)
commit303bfa5fb814d4c1376712da6c5121e640f91fce
tree50b58313e4a376b1494c411df7a0d236fa207319
parentf3cda361ba3f947c0550f049a574867f85122087
xen: use maximum reservation to limit amount of usable RAM

Use the domain's maximum reservation to limit the amount of extra RAM
for the memory balloon. This reduces the size of the pages tables and
the amount of reserved low memory (which defaults to about 1/32 of the
total RAM).

On a system with 8 GiB of RAM with the domain limited to 1 GiB the
kernel reports:

Before:

Memory: 627792k/4472000k available

After:

Memory: 549740k/11132224k available

A increase of about 76 MiB (~1.5% of the unused 7 GiB).  The reserved
low memory is also reduced from 253 MiB to 32 MiB.  The total
additional usable RAM is 329 MiB.

For dom0, this requires at patch to Xen ('x86: use 'dom0_mem' to limit
the number of pages for dom0') (c/s 23790)

CC: stable@kernel.org
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/setup.c