Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupManager ¶
type CgroupManager struct { // cgroup在hierarchy中的路径 相当于创建的cgroup目录相对于root cgroup目录的路径 Path string // 资源配置 Resource *subsystems.ResourceConfig }
func NewCgroupManager ¶
func NewCgroupManager(path string) *CgroupManager
func (*CgroupManager) Set ¶
func (c *CgroupManager) Set(res *subsystems.ResourceConfig) error
设置cgroup资源限制
Click to show internal directories.
Click to hide internal directories.