Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Common types and operations for cgroups (v2)
Documentation
A cgroup (under cgroups v2)
CGroup | |
|
resolveCGroup :: IO CGroup Source #
Resolve the cgroup (v2) used for the current process
see cgroups(7): /proc/self/cgroup is a file that contains information about control groups applied to this process
see proc(5): /proc/self/mountinfo is a file that contains information about mounts available to this process
Throws an Exception when the cgroup is unable to be found, or when the current process is not running under cgroups v2