From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot0-f200.google.com (mail-ot0-f200.google.com [74.125.82.200]) by kanga.kvack.org (Postfix) with ESMTP id C3EAE6B0069 for ; Tue, 5 Dec 2017 09:08:07 -0500 (EST) Received: by mail-ot0-f200.google.com with SMTP id c58so154280otd.17 for ; Tue, 05 Dec 2017 06:08:07 -0800 (PST) Received: from www262.sakura.ne.jp (www262.sakura.ne.jp. [2001:e42:101:1:202:181:97:72]) by mx.google.com with ESMTPS id d142si65335oih.411.2017.12.05.06.08.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 05 Dec 2017 06:08:06 -0800 (PST) Subject: Re: [PATCH 1/3] mm,oom: Move last second allocation to inside the OOM killer. From: Tetsuo Handa References: <20171201163830.on5mykdtet2wa5is@dhcp22.suse.cz> <20171205104601.GA1898@cmpxchg.org> <20171205130215.bxkgzbzo25sljmgd@dhcp22.suse.cz> <201712052217.DGB21370.FHOFMLOJOFtVQS@I-love.SAKURA.ne.jp> <20171205134220.vwz5d23vtr3nocfs@dhcp22.suse.cz> In-Reply-To: <20171205134220.vwz5d23vtr3nocfs@dhcp22.suse.cz> Message-Id: <201712052307.EEG40339.OFFJQMLOtHOFVS@I-love.SAKURA.ne.jp> Date: Tue, 5 Dec 2017 23:07:53 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-linux-mm@kvack.org List-ID: To: mhocko@suse.com Cc: hannes@cmpxchg.org, akpm@linux-foundation.org, linux-mm@kvack.org, aarcange@redhat.com, mjaggi@caviumnetworks.com Michal Hocko wrote: > On Tue 05-12-17 22:17:27, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > > I do understand the upsides you're advocating for - although you > > > > haven't quantified them. They're just not worth the downsides. > > > > > > OK, fair enough. Let's drop the patch then. There is no _strong_ > > > justification for it and what I've seen as "nice to have" is indeed > > > really hard to quantify and not really worth merging without a full > > > consensus. > > > > Dropping "mm,oom: move last second allocation to inside the OOM killer" > > means dropping "mm,oom: remove oom_lock serialization from the OOM reaper" > > together, right? > > No, I believe that we can drop the lock even without this patch. This > will need more investigation though. We cannot drop the lock without this patch. > > > The latter patch helped mitigating > > schedule_timeout_killable(1) lockup problem though... > > > > Also, what is the alternative for "mm,oom: use ALLOC_OOM for OOM victim's > > last second allocation" ? I proposed "mm, oom: task_will_free_mem(current) > > should ignore MMF_OOM_SKIP for once." and rejected by you. I also proposed > > "mm,oom: Set ->signal->oom_mm to all thread groups sharing the victim's mm." > > and rejected by you. > > Yes, and so far I am not really sure we have to care all that much. I > haven't seen any real world workload actually hitting this condition. > Somebody will observe what Manish Jaggi observed. OOM with mlock()ed and/or MAP_SHARED is irrelevant. There is always possibility that the OOM reaper fails to reclaim memory due to mmap_sem contention (and results in extra OOM kills). -- 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