From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751279AbdIKUsn (ORCPT ); Mon, 11 Sep 2017 16:48:43 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:36881 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751004AbdIKUsk (ORCPT ); Mon, 11 Sep 2017 16:48:40 -0400 X-Google-Smtp-Source: ADKCNb5MWmel4CipFxUO7BjUmX4EeZqJDfETsO8X+JTf6EMhE0OWwhJuE0Wz5W+ifh5pbYt42cCb3w== Date: Mon, 11 Sep 2017 13:48:39 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Roman Gushchin cc: linux-mm@kvack.org, Michal Hocko , Vladimir Davydov , Johannes Weiner , Tetsuo Handa , Andrew Morton , Tejun Heo , kernel-team@fb.com, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v8 3/4] mm, oom: add cgroup v2 mount option for cgroup-aware OOM killer In-Reply-To: <20170911131742.16482-4-guro@fb.com> Message-ID: References: <20170911131742.16482-1-guro@fb.com> <20170911131742.16482-4-guro@fb.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) 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 On Mon, 11 Sep 2017, Roman Gushchin wrote: > Add a "groupoom" cgroup v2 mount option to enable the cgroup-aware > OOM killer. If not set, the OOM selection is performed in > a "traditional" per-process way. > > The behavior can be changed dynamically by remounting the cgroupfs. I can't imagine that Tejun would be happy with a new mount option, especially when it's not required. OOM behavior does not need to be defined at mount time and for the entire hierarchy. It's possible to very easily implement a tunable as part of mem cgroup that is propagated to descendants and controls the oom scoring behavior for that hierarchy. It does not need to be system wide and affect scoring of all processes based on which mem cgroup they are attached to at any given time.