From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOSAKI Motohiro Subject: Re: [patch 2/6] arch: mm: do not invoke OOM killer on kernel fault OOM Date: Mon, 29 Jul 2013 14:58:05 -0400 Message-ID: <51F6BB3D.6000700@gmail.com> References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=8H2jMA4SFXl/H9XJv9jUPRz+GMNPY/tczbyLx5LKfRQ=; b=XaDOlq2Lhzoklo5eSGTSxjBkNxVc4CWVKNDVFot4B10klG/CXP+CDAJMk/1Wca5Ktp AkVGRQ+5UUd2cYACwQXDrD10uE2DWqJA/AbH4LJviPvhumvqROf69ghW2EyB4XTEOpo2 VtDP8IgG58ft08rLjfopypyl06BMf9OdX7VHYskfsCB2/PQFIBilFcp9MxV+rgaMIwEJ xFltSFz6dvokauZqi8/efgKSBXRxrBbYxWjXN4j11zLHHaeV88IQsjixtsU70/xBrGB2 2kbUa84u1KDr37ccNJVqsMt8sPdzkMXNTLAEEMB/pEbTqt2ylAKRQUV+O50zylLzapE6 siDg== In-Reply-To: <1374791138-15665-3-git-send-email-hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Johannes Weiner Cc: Andrew Morton , Michal Hocko , David Rientjes , KAMEZAWA Hiroyuki , azurIt , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kosaki.motohiro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org (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. Acked-by: KOSAKI Motohiro From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f170.google.com ([209.85.220.170]:58445 "EHLO mail-vc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238Ab3G2S5d (ORCPT ); Mon, 29 Jul 2013 14:57:33 -0400 Message-ID: <51F6BB3D.6000700@gmail.com> Date: Mon, 29 Jul 2013 14:58:05 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [patch 2/6] arch: mm: do not invoke OOM killer on kernel fault OOM References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> In-Reply-To: <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Johannes Weiner 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, kosaki.motohiro@gmail.com Message-ID: <20130729185805.puAN54gN5J9_xCMfA7YbPg_NTXDfi4Nr9u6b1ujXf2Y@z> (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. Acked-by: KOSAKI Motohiro From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx173.postini.com [74.125.245.173]) by kanga.kvack.org (Postfix) with SMTP id 36A726B003A for ; Mon, 29 Jul 2013 14:57:34 -0400 (EDT) Received: by mail-ve0-f181.google.com with SMTP id jz10so3192810veb.26 for ; Mon, 29 Jul 2013 11:57:33 -0700 (PDT) Message-ID: <51F6BB3D.6000700@gmail.com> Date: Mon, 29 Jul 2013 14:58:05 -0400 From: KOSAKI Motohiro MIME-Version: 1.0 Subject: Re: [patch 2/6] arch: mm: do not invoke OOM killer on kernel fault OOM References: <1374791138-15665-1-git-send-email-hannes@cmpxchg.org> <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> In-Reply-To: <1374791138-15665-3-git-send-email-hannes@cmpxchg.org> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner 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, kosaki.motohiro@gmail.com (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. Acked-by: KOSAKI Motohiro -- 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