From: Chris Frey <cdfrey-4/nNOD19pEMY+eTVAdjFZg@public.gmane.org>
To: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: an argument for keeping oom_control in cgroups v2
Date: Mon, 22 Aug 2022 08:04:02 -0400 [thread overview]
Message-ID: <20220822120402.GA20333@foursquare.net> (raw)
In cgroups v1 we had:
memory.soft_limit_in_bytes
memory.limit_in_bytes
memory.memsw.limit_in_bytes
memory.oom_control
Using these features, we could achieve:
- cause programs that were memory hungry to suffer performance, but
not stop (soft limit)
- cause programs to swap before the system actually ran out of memory
(limit)
- cause programs to be OOM-killed if they used too much swap
(memsw.limit...)
- cause programs to halt instead of get killed (oom_control)
That last feature is something I haven't seen duplicated in the settings
for cgroups v2. In terms of handling a truly non-malicious memory hungry
program, it is a feature that has no equal, because the user may require
time to free up memory elsewhere before allocating more to the program,
and he may not want the performance degredation, nor the loss of work,
that comes from the other options.
Is there a reason why it wasn't included in v2? Is there hope that it will
come back?
Thanks,
- Chris
next reply other threads:[~2022-08-22 12:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 12:04 Chris Frey [this message]
[not found] ` <20220822120402.GA20333-4/nNOD19pEMY+eTVAdjFZg@public.gmane.org>
2022-08-23 3:22 ` an argument for keeping oom_control in cgroups v2 Tejun Heo
[not found] ` <YwRIDTmZJflhKP2n-NiLfg/pYEd1N0TnZuCh8vA@public.gmane.org>
2022-08-23 5:06 ` Michal Hocko
[not found] ` <YwRgOcfagx4FfQcY-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-08-23 16:10 ` Roman Gushchin
2022-08-24 9:30 ` Chris Frey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220822120402.GA20333@foursquare.net \
--to=cdfrey-4/nnod19pemy+etvadjfzg@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox