set up cgroupfs mount hierarchies
Control groups are a kernel mechanism for tracking and imposing limits on resource usage on groups of tasks.
These scripts mount and unmount the hierarchies for managing them.
The location for the mounts these scripts create is
which is widely regarded as "the place" for these to be mounted (for example,
mounts them here as well).
Zero for success or if it is determined that we can or should not mount, due to user entries in
or pre-existing mounts.
Non-zero for explicit failures.
CAVEATS & DIAGNOSTICS
It is critically important for the proper operation of these scripts that you do not manually include any cgroup mount points in
After commenting out any extraneous cgroup entries in
you should either reboot or manually
them and then run
These scripts intentionally do not do any cgroup management or classification of tasks into cgroups.
They are also very intentionally light on configurability (to the point of non-existence) to keep the implementation simple and less error-prone.
Serge Hallyn and Tianon Gravi
This package was originally derived from the
package from Ubuntu.