[PATCH 0/2] Drivers: hv: hv_balloon: avoid OOM killer on the ballooning path

From: Vitaly Kuznetsov
Date: Thu Feb 19 2015 - 11:27:23 EST


In some cases host asks us to overballoon and this triggers OOM killer which
eventually kills everyone. The easiest way to get into such situation is to
avoid onlining memory-hotplugged blocks. Address the issue twice:
- Report offline pages as used to the host so it won't ask us to overballoon;
- Avoid ballooning below the 'floor'.

Vitaly Kuznetsov (2):
Drivers: hv: hv_balloon: report offline pages as being used
Drivers: hv: hv_balloon: refuse to balloon below the floor

drivers/hv/hv_balloon.c | 44 +++++++++++++++++++++++++++++++++++---------
1 file changed, 35 insertions(+), 9 deletions(-)

--
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/