Re: [gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-16 Thread tastytea
On 2021-07-15 09:58+0200 tastytea wrote: > www-apps/gitea often used all 4 of my CPU cores and slowed everything > else down. So I attempted to limit CPU usage with cgroups: > > I have set this in /etc/rc.conf: > > rc_cgroup_mode="unified" > rc_cgroup_controllers="cpu memory io pids" > > And t

Re: [gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-16 Thread tastytea
On 2021-07-15 09:58+0200 tastytea wrote: > […] did I do someting wrong? How can I check if my settings are > applied? I've tried to set the nice value of my emacs daemon with rc_cgroup_settings=" cpu.weight.nice -10 " /sys/fs/cgroup/emacs.tastytea/cpu.weight.nice shows -10 but htop says t

[gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-15 Thread tastytea
www-apps/gitea often used all 4 of my CPU cores and slowed everything else down. So I attempted to limit CPU usage with cgroups: I have set this in /etc/rc.conf: rc_cgroup_mode="unified" rc_cgroup_controllers="cpu memory io pids" And this in /etc/conf.d/gitea: rc_cgroup_settings=" cpu.share