From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Frey Subject: Re: an argument for keeping oom_control in cgroups v2 Date: Wed, 24 Aug 2022 05:30:23 -0400 Message-ID: <20220824093023.GA29770@foursquare.net> References: <20220822120402.GA20333@foursquare.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Roman Gushchin Cc: Michal Hocko , Tejun Heo , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Johannes Weiner , Shakeel Butt , Muchun Song On Tue, Aug 23, 2022 at 09:10:37AM -0700, Roman Gushchin wrote: > Btw, it's fairly easy to emulate the oom_control behaviour using cgroups v2: > a userspace agent can listen to memory.high/max events and use the cgroup v2 > freezer to stop the workload and handle the oom in v1 oom_control style. > An agent can have a high/real-time priority, so I guess the behavior will be > actually quite close to the v1 experience. Much safer though. Thanks to everyone who responded. Looks like the same functionality, slightly different, is still available through different means, so my query has been satisfied. - Chris