Documentation
¶
Index ¶
- Constants
- func CheckMemoryUsage(dirPath string, r *config.Resources) error
- func CreateCgroupPath(path string, c *config.Cgroup) (Err error)
- func ParseKeyValue(t string) (string, uint64, error)
- func ParseUint(s string, base, bitSize int) (uint64, error)
- func SetCpuset(dirPath string, r *config.Resources) error
- type BaseManager
- type ParseError
Constants ¶
View Source
const UnifiedMountpoint = "/sys/fs/cgroup"
Variables ¶
This section is empty.
Functions ¶
func ParseKeyValue ¶
解析cgroup里的"key value" 例如,"io_service_bytes_1234" 将要返回"io_service_bytes", 1234
Types ¶
type BaseManager ¶
type BaseManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(config *config.Cgroup, dirPath string) (*BaseManager, error)
type ParseError ¶
记录解析错误
func (*ParseError) Error ¶
func (e *ParseError) Error() string
func (*ParseError) UnWrap ¶
func (e *ParseError) UnWrap() error
Click to show internal directories.
Click to hide internal directories.