diff --git a/drivers/xen/xen-selfballoon.c b/drivers/xen/xen-selfballoon.c index 21e18c1..6e9bf0b 100644 --- a/drivers/xen/xen-selfballoon.c +++ b/drivers/xen/xen-selfballoon.c @@ -133,7 +133,7 @@ static unsigned int frontswap_hysteresis __read_mostly = 20; * frontswap selfshrinking should commence. Note that selfshrinking does * not use a separate worker thread. */ -static unsigned int frontswap_inertia __read_mostly = 3; +static unsigned int frontswap_inertia __read_mostly = 6; /* Countdown to next invocation of frontswap_shrink() */ static unsigned long frontswap_inertia_counter; @@ -170,6 +170,8 @@ static void frontswap_selfshrink(void) tgt_frontswap_pages = cur_frontswap_pages - (cur_frontswap_pages / frontswap_hysteresis); frontswap_shrink(tgt_frontswap_pages); + printk("frontswap selfshrink %ld pages\n", tgt_frontswap_pages); + frontswap_inertia_counter = frontswap_inertia; } #endif /* CONFIG_FRONTSWAP */