From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Weiner Subject: Re: [patch 3/6] arch: mm: pass userspace fault flag to generic fault handler Date: Fri, 26 Jul 2013 14:45:00 -0400 Message-ID: <20130726184500.GQ715@cmpxchg.org> References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-4-git-send-email-hannes@cmpxchg.org> <20130726131947.GE17761@dhcp22.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20130726131947.GE17761@dhcp22.suse.cz> Sender: owner-linux-mm@kvack.org To: Michal Hocko Cc: Andrew Morton , 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 Fri, Jul 26, 2013 at 03:19:47PM +0200, Michal Hocko wrote: > On Thu 25-07-13 18:25:35, Johannes Weiner wrote: > > Unlike global OOM handling, memory cgroup code will invoke the OOM > > killer in any OOM situation because it has no way of telling faults > > occuring in kernel context - which could be handled more gracefully - > > from user-triggered faults. > > > > Pass a flag that identifies faults originating in user space from the > > architecture-specific fault handlers to generic code so that memcg OOM > > handling can be improved. > > > > Signed-off-by: Johannes Weiner > > Looks good to me but I guess maintainers of the affected archs should be > CCed linux-arch is on CC, that should do the trick :) > Reviewed-by: Michal Hocko 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]:51054 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752774Ab3GZSpO (ORCPT ); Fri, 26 Jul 2013 14:45:14 -0400 Date: Fri, 26 Jul 2013 14:45:00 -0400 From: Johannes Weiner Subject: Re: [patch 3/6] arch: mm: pass userspace fault flag to generic fault handler Message-ID: <20130726184500.GQ715@cmpxchg.org> References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-4-git-send-email-hannes@cmpxchg.org> <20130726131947.GE17761@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130726131947.GE17761@dhcp22.suse.cz> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Michal Hocko Cc: Andrew Morton , 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: <20130726184500.-e5NAIo1EmJgyvb4VgPxpUpCEbM9eZSa7uzvXb8Aei4@z> On Fri, Jul 26, 2013 at 03:19:47PM +0200, Michal Hocko wrote: > On Thu 25-07-13 18:25:35, Johannes Weiner wrote: > > Unlike global OOM handling, memory cgroup code will invoke the OOM > > killer in any OOM situation because it has no way of telling faults > > occuring in kernel context - which could be handled more gracefully - > > from user-triggered faults. > > > > Pass a flag that identifies faults originating in user space from the > > architecture-specific fault handlers to generic code so that memcg OOM > > handling can be improved. > > > > Signed-off-by: Johannes Weiner > > Looks good to me but I guess maintainers of the affected archs should be > CCed linux-arch is on CC, that should do the trick :) > Reviewed-by: Michal Hocko Thanks!