Summary: | sys-apps/portage better cgroup v1 and v2 support | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Forza <forza> |
Component: | Enhancement/Feature Requests | Assignee: | Portage team <dev-portage> |
Status: | UNCONFIRMED --- | ||
Severity: | enhancement | CC: | forza, pacho |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=602706 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Forza
2018-11-08 22:31:19 UTC
I made a quick wrapper script to work with cgroups v2 with portage. It requires that PORTAGE_NICENESS and FEATUERS=cgroup are off, and that cgroups v2 (unified) is enabled and mounted correctly. https://github.com/Gatak/cgexec (execute commands in a cgroup) To use it simply do: # cgexec -c50 emerge xxx/yyy Most people do not use purely cgroups v2 so cgexec wont work there then. It would be better with a generic solution that works with other features, including both systemd and OpenRC (I use and prefer OpenRC). Thanks |