Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754764AbcCWL0k (ORCPT ); Wed, 23 Mar 2016 07:26:40 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:18472 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbcCWL0c (ORCPT ); Wed, 23 Mar 2016 07:26:32 -0400 To: rientjes@google.com, mhocko@kernel.org Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mingo@elte.hu, hannes@cmpxchg.org, mgorman@suse.de, mhocko@suse.com, oleg@redhat.com, a.p.zijlstra@chello.nl, vdavydov@virtuozzo.com Subject: Re: [PATCH 0/9] oom reaper v6 From: Tetsuo Handa References: <1458644426-22973-1-git-send-email-mhocko@kernel.org> In-Reply-To: Message-Id: <201603232011.HDI05246.FFMLtVOHOQJFOS@I-love.SAKURA.ne.jp> X-Mailer: Winbiff [Version 2.51 PL2] X-Accept-Language: ja,en,zh Date: Wed, 23 Mar 2016 20:11:35 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3433 Lines: 76 David Rientjes wrote: > On Tue, 22 Mar 2016, Michal Hocko wrote: > > > Hi, > > I am reposting the whole patchset on top of the current Linus tree which should > > already contain big pile of Andrew's mm patches. This should serve an easier > > reviewability and I also hope that this core part of the work can go to 4.6. > > > > The previous version was posted here [1] Hugh and David have suggested to > > drop [2] because the munlock path currently depends on the page lock and > > it is better if the initial version was conservative and prevent from > > any potential lockups even though it is not clear whether they are real > > - nobody has seen oom_reaper stuck on the page lock AFAICK. Me or Hugh > > will have a look and try to make the munlock path not depend on the page > > lock as a follow up work. > > > > Apart from that the feedback revealed one bug for a very unusual > > configuration (sysctl_oom_kill_allocating_task) and that has been fixed > > by patch 8 and one potential mis interaction with the pm freezer fixed by > > patch 7. > > > > I think the current code base is already very useful for many situations. > > The rest of the feedback was mostly about potential enhancements of the > > current code which I would really prefer to build on top of the current > > series. I plan to finish my mmap_sem killable for write in the upcoming > > release cycle and hopefully have it merged in the next merge window. > > I believe more extensions will follow. > > > > This code has been sitting in the mmotm (thus linux-next) for a while. > > Are there any fundamental objections to have this part merged in this > > merge window? > > > > Tetsuo, have you been able to run your previous test cases on top of this > version and do you have any concerns about it or possible extensions that > could be made? > I think [PATCH 3/9] [PATCH 4/9] [PATCH 8/9] will be mostly reverted. My concerns and possible extensions are explained in Re: [PATCH 6/5] oom, oom_reaper: disable oom_reaper for oom_kill_allocating_task http://lkml.kernel.org/r/201603152015.JAE86937.VFOLtQFOFJOSHM@I-love.SAKURA.ne.jp . Regarding "[PATCH 4/9] mm, oom_reaper: report success/failure", debug_show_all_locks() may not be safe commit 856848737bd944c1 "lockdep: fix debug_show_all_locks()" commit 82a1fcb90287052a "softlockup: automatically detect hung TASK_UNINTERRUPTIBLE tasks" and showing traces might be more useful. (A discussion for making printk() completely async is in progress.) But we don't have time to update this series before merge window for 4.6 closes. We want to send current patchset as is for now, don't we? So, please go ahead. My other concerns about OOM handling: Change TIF_MEMDIE strategy from per a thread to per a signal_struct. [PATCH] mm,oom: Set TIF_MEMDIE on all OOM-killed threads. http://lkml.kernel.org/r/1458529634-5951-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp Found a bug in too_many_isolated() assumption. How to handle infinite too_many_isolated() loop (for OOM detection rework v4) ? http://lkml.kernel.org/r/201602092349.ACG81273.OSVtMJQHLOFOFF@I-love.SAKURA.ne.jp Waiting for a patch to be merged. [PATCH] mm,writeback: Don't use memory reserves for wb_start_writeback http://lkml.kernel.org/r/20160318134230.GC30225@dhcp22.suse.cz And, kmallocwd, __GFP_KILLABLE, and timeout (or something finite one) for TIF_MEMDIE.