From: Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Benjamin Berg <benjamin-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
Johannes Weiner <hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
Subject: Re: Memory reclaim protection and cgroup nesting (desktop use)
Date: Thu, 5 Mar 2020 10:39:48 -0500 [thread overview]
Message-ID: <20200305153948.GB6939@mtj.thefacebook.com> (raw)
In-Reply-To: <7ce3aa9cf6f7501ce2ce6057a03a40cd5e126efd.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
Hello, Benjamin.
On Thu, Mar 05, 2020 at 04:27:19PM +0100, Benjamin Berg wrote:
> > Changing memory limits dynamically can lead to pretty abrupt system
> > behaviors depending on how big the swing is but memory.low and io/cpu
> > weights should behave fine.
>
> Right, we'll need some daemon to handle this, so we could even smooth
> out any change over a period of time. But it seems like that will not
> be needed. I don't expect we'll want to change anything beyond
> memory.low and io/cpu weights.
Yeah, you don't need to baby memory.low and io/cpu weights at all.
> > Sounds great. In our experience, what would help quite a lot is using
> > per-application cgroups more (e.g. containing each application as user
> > services) so that one misbehaving command can't overwhelm the session
> > and eventually when oomd has to kick in, it can identify and kill only
> > the culprit application rather than the whole session.
>
> We are already trying to do this in GNOME. :)
Awesome.
> Right now GNOME is only moving processes into cgroups after launching
> them though (i.e. transient systemd scopes).
Even just that would be plenty helpful.
> But, the goal here is to improve it further and launch all
> applications directly using systemd (i.e. as systemd services). systemd
> itself is going to define some standards to facilitate everything. And
> we'll probably also need to update some XDG standards.
>
> So, there are some plans already, but many details have not been solved
> yet. But at least KDE and GNOME people are looking into integrating
> well with systemd.
Sounds great. Please let us know if there's anything we can help with.
Thanks.
--
tejun
prev parent reply other threads:[~2020-03-05 15:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-04 9:44 Memory reclaim protection and cgroup nesting (desktop use) Benjamin Berg
[not found] ` <d4826b9e568f1ab7df19f94c409df11956a8e262.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-04 16:30 ` Tejun Heo
[not found] ` <20200304163044.GF189690-146+VewaZzwNjtGbbfXrCEEOCMrvLtNR@public.gmane.org>
2020-03-04 17:02 ` Jonathan Corbet
[not found] ` <20200304100231.2213a982-T1hC0tSOHrs@public.gmane.org>
2020-03-04 17:10 ` Tejun Heo
[not found] ` <20200304171051.GK189690-146+VewaZzwNjtGbbfXrCEEOCMrvLtNR@public.gmane.org>
2020-03-05 1:29 ` Daniel Xu
2020-03-05 13:13 ` Benjamin Berg
[not found] ` <4d3e00457bba40b25f3ac4fd376ba7306ffc4e68.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-05 14:55 ` Tejun Heo
[not found] ` <20200305145554.GA5897-146+VewaZzwNjtGbbfXrCEEOCMrvLtNR@public.gmane.org>
2020-03-05 15:12 ` Tejun Heo
2020-03-05 15:27 ` Benjamin Berg
[not found] ` <7ce3aa9cf6f7501ce2ce6057a03a40cd5e126efd.camel-cdvu00un1VgdHxzADdlk8Q@public.gmane.org>
2020-03-05 15:39 ` Tejun Heo [this message]
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=20200305153948.GB6939@mtj.thefacebook.com \
--to=tj-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=benjamin-cdvu00un1VgdHxzADdlk8Q@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
--cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@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