From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f198.google.com (mail-yb0-f198.google.com [209.85.213.198]) by kanga.kvack.org (Postfix) with ESMTP id 0E1756B0006 for ; Fri, 20 Jul 2018 07:21:36 -0400 (EDT) Received: by mail-yb0-f198.google.com with SMTP id c2-v6so5900206ybl.16 for ; Fri, 20 Jul 2018 04:21:36 -0700 (PDT) Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id t1-v6sor344327ybj.69.2018.07.20.04.21.34 for (Google Transport Security); Fri, 20 Jul 2018 04:21:34 -0700 (PDT) Date: Fri, 20 Jul 2018 04:21:31 -0700 From: Tejun Heo Subject: Re: cgroup-aware OOM killer, how to move forward Message-ID: <20180720112131.GX72677@devbig577.frc2.facebook.com> References: <20180713230545.GA17467@castle.DHCP.thefacebook.com> <20180713231630.GB17467@castle.DHCP.thefacebook.com> <20180717173844.GB14909@castle.DHCP.thefacebook.com> <20180717194945.GM7193@dhcp22.suse.cz> <20180717200641.GB18762@castle.DHCP.thefacebook.com> <20180717205221.GA19862@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Roman Gushchin , Michal Hocko , linux-mm@kvack.org, akpm@linux-foundation.org, hannes@cmpxchg.org, gthelen@google.com Hello, On Fri, Jul 20, 2018 at 01:30:00AM -0700, David Rientjes wrote: ... > process chosen for oom kill. I know that you care about the latter. My > *only* suggestion was for the tunable to take a string instead of a > boolean so it is extensible for future use. This seems like something so > trivial. So, I'd much prefer it as boolean. It's a fundamentally binary property, either handle the cgroup as a unit when chosen as oom victim or not, nothing more. I don't see the (interface-wise) benefits of preparing for further oom policy extensions. If that happens, it should be through a separate interface file. The number of files isn't the most important criteria interface is designed on. Roman, can you rename it tho to memory.oom.group? That's how other interface files are scoped and it'd be better if we try to add further oom related interface files later. Thanks. -- tejun