From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932238AbcEMOyv (ORCPT ); Fri, 13 May 2016 10:54:51 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34545 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932130AbcEMOys (ORCPT ); Fri, 13 May 2016 10:54:48 -0400 Date: Fri, 13 May 2016 16:54:45 +0200 From: Michal Hocko To: Sebastian Frias Cc: "Austin S. Hemmelgarn" , Mason , linux-mm@kvack.org, Andrew Morton , Linus Torvalds , LKML Subject: Re: [PATCH] mm: add config option to select the initial overcommit mode Message-ID: <20160513145445.GT20141@dhcp22.suse.cz> References: <5731CC6E.3080807@laposte.net> <20160513080458.GF20141@dhcp22.suse.cz> <573593EE.6010502@free.fr> <5735A3DE.9030100@laposte.net> <20160513120042.GK20141@dhcp22.suse.cz> <5735CAE5.5010104@laposte.net> <935da2a3-1fda-bc71-48a5-bb212db305de@gmail.com> <5735D77C.9090803@laposte.net> <50852f22-6030-7361-4273-91b5bea446ed@gmail.com> <5735E628.9080306@laposte.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5735E628.9080306@laposte.net> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 13-05-16 16:35:20, Sebastian Frias wrote: > Hi Austin, > > On 05/13/2016 03:51 PM, Austin S. Hemmelgarn wrote: > > On 2016-05-13 09:32, Sebastian Frias wrote: > >> I didn't see that in Documentation/vm/overcommit-accounting or am I looking in the wrong place? > > It's controlled by a sysctl value, so it's listed in Documentation/sysctl/vm.txt > > The relevant sysctl is vm.oom_kill_allocating_task > > Thanks, I just read that. > Does not look like a replacement for overcommit=never though. No this is just an OOM strategy. I wouldn't recommend it though because the behavior might be really time dependant - unlike the regular OOM killer strategy to select the largest memory consumer. And again, overcommit=never doesn't imply no-OOM. It just makes it less likely. The kernel can consume quite some unreclaimable memory as well. -- Michal Hocko SUSE Labs