From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751921AbeAWPxI (ORCPT ); Tue, 23 Jan 2018 10:53:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:57856 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbeAWPxF (ORCPT ); Tue, 23 Jan 2018 10:53:05 -0500 Date: Tue, 23 Jan 2018 16:53:01 +0100 From: Michal Hocko To: David Rientjes Cc: Tejun Heo , Andrew Morton , Roman Gushchin , Vladimir Davydov , Johannes Weiner , Tetsuo Handa , kernel-team@fb.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch -mm 3/4] mm, memcg: replace memory.oom_group with policy tunable Message-ID: <20180123155301.GS1526@dhcp22.suse.cz> References: <20180117154155.GU3460072@devbig577.frc2.facebook.com> <20180120123251.GB1096857@devbig577.frc2.facebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22-01-18 14:34:39, David Rientjes wrote: > On Sat, 20 Jan 2018, Tejun Heo wrote: [...] > > I don't see any blocker here. The issue you're raising can and should > > be handled separately. > > > > It can't, because the current patchset locks the system into a single > selection criteria that is unnecessary and the mount option would become a > no-op after the policy per subtree becomes configurable by the user as > part of the hierarchy itself. This is simply not true! OOM victim selection has changed in the past and will be always a subject to changes in future. Current implementation doesn't provide any externally controlable selection policy and therefore the default can be assumed. Whatever that default means now or in future. The only contract added here is the kill full memcg if selected and that can be implemented on _any_ selection policy. -- Michal Hocko SUSE Labs