Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
Limiter limit cpu usage linux cgroup.
func (*Limiter) Context ¶
Context return new context that cancelled when the cpu usage of processes exceeding the limit.
func (*Limiter) Prepare ¶
Prepare create new cgroup tree inside cpuacct subsystem. When old cgroup with same name already exists, it will be removed.
Click to show internal directories.
Click to hide internal directories.