]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: Fix selfballooning and ensure it doesn't go too far
authorDan Magenheimer <dan.magenheimer@oracle.com>
Tue, 27 Sep 2011 14:47:58 +0000 (08:47 -0600)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Wed, 28 Sep 2011 18:57:09 +0000 (11:57 -0700)
commit3b87e1b8dbc6baa73ed81d82f1f6761fb9c5d217
tree88281fb69a5ef8c389ecd15a49c085e1ca4b9760
parent3454db575e0480bcc97e998710dfc73da02ed4dc
xen: Fix selfballooning and ensure it doesn't go too far

The balloon driver's "current_pages" is very different from
totalram_pages.  Self-ballooning needs to be driven by
the latter.  Also, Committed_AS doesn't account for pages
used by the kernel so enforce a floor for when there are little
or no user-space threads using memory.  The floor function
includes a "safety margin" tuneable in case we discover later
that the floor function is still too aggressive in some workloads,
though likely it will not be needed.

Changes since version 1:
- tuneable safety margin added

[v2: konrad.wilk@oracle.com: make safety margin tuneable]

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
drivers/xen/xen-selfballoon.c