On Sat, Jan 4, 2020 at 11:38 am, Zbigniew Jędrzejewski-Szmek
What about using the memory controller for user units to allocate
memory resources between the processes in the user session? Thanks to
recent developments, the gnome session uses separate systemd units
(and thus separate cgroups) for various services. We could set
like memory.low for "the basic components of the user session",
and on the other hand, memory.swap.max for "the payload", i.e. various
user processes on top.
This looks interesting. I'd love to see more serious discussion of this
proposal. Carving out dedicated memory for essential desktop processes
seems like something we should be able to do in 2020.