From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752398AbbBSQ1U (ORCPT ); Thu, 19 Feb 2015 11:27:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53755 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751472AbbBSQ1T (ORCPT ); Thu, 19 Feb 2015 11:27:19 -0500 From: Vitaly Kuznetsov To: "K. Y. Srinivasan" , devel@linuxdriverproject.org Cc: Haiyang Zhang , linux-kernel@vger.kernel.org, Dexuan Cui Subject: [PATCH 0/2] Drivers: hv: hv_balloon: avoid OOM killer on the ballooning path Date: Thu, 19 Feb 2015 17:27:08 +0100 Message-Id: <1424363230-3758-1-git-send-email-vkuznets@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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