From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vineet Gupta Subject: Re: [patch 1/2] arch: invoke oom-killer from page fault Date: Thu, 6 Jun 2013 12:19:29 +0530 Message-ID: <51B030F9.4080804@synopsys.com> References: <1370488193-4747-1-git-send-email-hannes@cmpxchg.org> <20130606043620.GA9406@cmpxchg.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130606043620.GA9406@cmpxchg.org> Sender: owner-linux-mm@kvack.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Johannes Weiner Cc: David Rientjes , Andrew Morton , Michal Hocko , KAMEZAWA Hiroyuki , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org On 06/06/2013 10:06 AM, Johannes Weiner wrote: > From: Johannes Weiner > Subject: [patch] mm: invoke oom-killer from remaining unconverted page fault > handlers > > A few remaining architectures directly kill the page faulting task in > an out of memory situation. This is usually not a good idea since > that task might not even use a significant amount of memory and so may > not be the optimal victim to resolve the situation. > > Since '1c0fe6e mm: invoke oom-killer from page fault' (2.6.29) there > is a hook that architecture page fault handlers are supposed to call > to invoke the OOM killer and let it pick the right task to kill. > Convert the remaining architectures over to this hook. > > To have the previous behavior of simply taking out the faulting task > the vm.oom_kill_allocating_task sysctl can be set to 1. > > Signed-off-by: Johannes Weiner Acked-by: Vineet Gupta # for arch/arc bits -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us01smtp3.synopsys.com ([198.182.44.81]:61763 "EHLO hermes.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015Ab3FFGtx (ORCPT ); Thu, 6 Jun 2013 02:49:53 -0400 Message-ID: <51B030F9.4080804@synopsys.com> Date: Thu, 6 Jun 2013 12:19:29 +0530 From: Vineet Gupta MIME-Version: 1.0 Subject: Re: [patch 1/2] arch: invoke oom-killer from page fault References: <1370488193-4747-1-git-send-email-hannes@cmpxchg.org> <20130606043620.GA9406@cmpxchg.org> In-Reply-To: <20130606043620.GA9406@cmpxchg.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Johannes Weiner Cc: David Rientjes , Andrew Morton , Michal Hocko , KAMEZAWA Hiroyuki , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20130606064929.K-rh424k-o9frzti8iKGD8eFCLyO8hzg5YiVsYowuww@z> On 06/06/2013 10:06 AM, Johannes Weiner wrote: > From: Johannes Weiner > Subject: [patch] mm: invoke oom-killer from remaining unconverted page fault > handlers > > A few remaining architectures directly kill the page faulting task in > an out of memory situation. This is usually not a good idea since > that task might not even use a significant amount of memory and so may > not be the optimal victim to resolve the situation. > > Since '1c0fe6e mm: invoke oom-killer from page fault' (2.6.29) there > is a hook that architecture page fault handlers are supposed to call > to invoke the OOM killer and let it pick the right task to kill. > Convert the remaining architectures over to this hook. > > To have the previous behavior of simply taking out the faulting task > the vm.oom_kill_allocating_task sysctl can be set to 1. > > Signed-off-by: Johannes Weiner Acked-by: Vineet Gupta # for arch/arc bits From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754564Ab3FFGtz (ORCPT ); Thu, 6 Jun 2013 02:49:55 -0400 Received: from us01smtp3.synopsys.com ([198.182.44.81]:61763 "EHLO hermes.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015Ab3FFGtx (ORCPT ); Thu, 6 Jun 2013 02:49:53 -0400 Message-ID: <51B030F9.4080804@synopsys.com> Date: Thu, 6 Jun 2013 12:19:29 +0530 From: Vineet Gupta User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Johannes Weiner CC: David Rientjes , Andrew Morton , Michal Hocko , KAMEZAWA Hiroyuki , , , , Subject: Re: [patch 1/2] arch: invoke oom-killer from page fault References: <1370488193-4747-1-git-send-email-hannes@cmpxchg.org> <20130606043620.GA9406@cmpxchg.org> In-Reply-To: <20130606043620.GA9406@cmpxchg.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.14] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/06/2013 10:06 AM, Johannes Weiner wrote: > From: Johannes Weiner > Subject: [patch] mm: invoke oom-killer from remaining unconverted page fault > handlers > > A few remaining architectures directly kill the page faulting task in > an out of memory situation. This is usually not a good idea since > that task might not even use a significant amount of memory and so may > not be the optimal victim to resolve the situation. > > Since '1c0fe6e mm: invoke oom-killer from page fault' (2.6.29) there > is a hook that architecture page fault handlers are supposed to call > to invoke the OOM killer and let it pick the right task to kill. > Convert the remaining architectures over to this hook. > > To have the previous behavior of simply taking out the faulting task > the vm.oom_kill_allocating_task sysctl can be set to 1. > > Signed-off-by: Johannes Weiner Acked-by: Vineet Gupta # for arch/arc bits