On 31/08/2024 19:39, Dale wrote:
I did a lot of searching and almost all of it relates to using cgroups
for services, like mysql or something. I haven't found anything that
explains how to do it for a program started by a user. It may be doable
but I've yet to find it.
I did a quick search and found this ...
https://unix.stackexchange.com/questions/555080/using-cgroup-to-limit-program-memory-as-its-running
reading through it, it appears to tell you (a) how to set up the cgroup,
(b) how to put a running program into a cgroup, and (c) (most
importantly) how to start a program in a cgroup.
So what you'd do is create the cgroup, then edit the firefox and
seamonkey desktop files to use cgexec to start them.
Beyond that tip, you're on your own but it looks promising. I've not
done it, so I don't know ...
Cheers,
Wol