docs: Mention a common pitfall in ballooning
PATCH 1/1 docs: Mention a common pitfall in ballooning
Several users have reported that their available free memory in the guest when they used maxmem >> memory was much smaller than when maxmem == memory. This is the unavoidable consequence of how ballooning works, but it's not something users expect.
Warn them of this effect in the place we tell them how to make it happen, so they aren't surprised.
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
--- docs/man/xl.cfg.pod.5 | 7 +++++++ 1 file changed, 7 insertions(+)
docs/man/xl.cfg.pod.5 +7 -0
@@ -264,6 +264,13 @@ if the values of B<memory=> and B<maxmem=> differ. A "pre-ballooned" HVM guest needs a balloon driver, without a balloon driver it will crash. +NOTE: Because of the way ballooning works, the guest has to allocate +memory to keep track of maxmem pages, regardless of how much memory it +actually has available to it. A guest with maxmem=262144 and +memory=8096 will report significantly less memory available for use +than a system with maxmem=8096 memory=8096 due to the memory overhead +of having to track the unused pages. + =back =head3 Guest Virtual NUMA Configuration
Signature · 1 line
1.9.1
Quoted 9 lines · George Dunlap
Several users have reported that their available free memory in the guest when they used maxmem >> memory was much smaller than when maxmem == memory. This is the unavoidable consequence of how ballooning works, but it's not something users expect.
Warn them of this effect in the place we tell them how to make it happen, so they aren't surprised.
Signed-off-by George Dunlap <[email protected]>
acked + applied, thanks.