xen/tmem: Don't use self[ballooning|shrinking] if frontswap is off.

There is no point. We would just squeeze the guest to put more and
more pages in the swap disk without any purpose.

The only time it makes sense to use the selfballooning and shrinking
is when frontswap is being utilized.

Signed-off-by: Konrad Rzeszutek Wilk <[email protected]>
This commit is contained in:
Konrad Rzeszutek Wilk 2013-05-14 13:56:42 -04:00
commit 37d46e152e
3 changed files with 16 additions and 10 deletions

View file

@ -3014,7 +3014,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
tmem.frontswap=0|1 [KNL, XEN]
Default is on (1). Disable the usage of the frontswap
API to send swap pages to the hypervisor.
API to send swap pages to the hypervisor. If disabled
the selfballooning and selfshrinking are force disabled.
tmem.selfballooning=0|1 [KNL, XEN]
Default is on (1). Disable the driving of swap pages