From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Weiner Subject: Re: [patch 2/6] arch: mm: do not invoke OOM killer on kernel fault OOM Date: Thu, 1 Aug 2013 17:59:24 -0400 Message-ID: <20130801215924.GO715@cmpxchg.org> References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> <51F6BB3D.6000700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <51F6BB3D.6000700@gmail.com> Sender: owner-linux-mm@kvack.org To: KOSAKI Motohiro Cc: Andrew Morton , Michal Hocko , David Rientjes , KAMEZAWA Hiroyuki , azurIt , linux-mm@kvack.org, cgroups@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Mon, Jul 29, 2013 at 02:58:05PM -0400, KOSAKI Motohiro wrote: > (7/25/13 6:25 PM), Johannes Weiner wrote: > > Kernel faults are expected to handle OOM conditions gracefully (gup, > > uaccess etc.), so they should never invoke the OOM killer. Reserve > > this for faults triggered in user context when it is the only option. > > > > Most architectures already do this, fix up the remaining few. > > > > Signed-off-by: Johannes Weiner > > OK. but now almost all arch have the same page fault handler. So, I think > we can implement arch generic page fault handler in future. Ah, ok, never > mind if you are not interest. Well, I'm already working towards it ;-) Still a long way to go, though to fully replace them with generic code... > Acked-by: KOSAKI Motohiro Thanks! -- 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 zene.cmpxchg.org ([85.214.230.12]:51508 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932418Ab3HAV7i (ORCPT ); Thu, 1 Aug 2013 17:59:38 -0400 Date: Thu, 1 Aug 2013 17:59:24 -0400 From: Johannes Weiner Subject: Re: [patch 2/6] arch: mm: do not invoke OOM killer on kernel fault OOM Message-ID: <20130801215924.GO715@cmpxchg.org> References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> <51F6BB3D.6000700@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51F6BB3D.6000700@gmail.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: KOSAKI Motohiro Cc: Andrew Morton , Michal Hocko , David Rientjes , KAMEZAWA Hiroyuki , azurIt , linux-mm@kvack.org, cgroups@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20130801215924.6Ft-nbym3iy4l7QWhihN1t3r1s4y7rRVGNQ-CpNoSiA@z> On Mon, Jul 29, 2013 at 02:58:05PM -0400, KOSAKI Motohiro wrote: > (7/25/13 6:25 PM), Johannes Weiner wrote: > > Kernel faults are expected to handle OOM conditions gracefully (gup, > > uaccess etc.), so they should never invoke the OOM killer. Reserve > > this for faults triggered in user context when it is the only option. > > > > Most architectures already do this, fix up the remaining few. > > > > Signed-off-by: Johannes Weiner > > OK. but now almost all arch have the same page fault handler. So, I think > we can implement arch generic page fault handler in future. Ah, ok, never > mind if you are not interest. Well, I'm already working towards it ;-) Still a long way to go, though to fully replace them with generic code... > Acked-by: KOSAKI Motohiro Thanks!