|
libcgroup
|
Public Member Functions | |
| __init__ (self, name) | |
| __str__ (self) | |
| __eq__ (self, other) | |
| start_cgrules (self, config) | |
| join_children (self, config) | |
Static Public Member Functions | |
| build_cmd_path (cmd) | |
| build_daemon_path (cmd) | |
| create (config, controller_list, cgname, user_name=None, group_name=None, dperm=None, fperm=None, tperm=None, tasks_user_name=None, tasks_group_name=None, cghelp=False, ignore_systemd=False, create_scope=False, set_default_scope=False, scope_pid=-1) | |
| create_and_validate (config, ctrl_name, cgroup_name, ignore_systemd=False, create_scope=False, set_default_scope=False, scope_pid=-1) | |
| delete (config, controller_list, cgname, recursive=False, ignore_systemd=False) | |
| set (config, cgname=None, setting=None, value=None, copy_from=None, cghelp=False, ignore_systemd=False, recursive=False) | |
| xset (config, cgname=None, setting=None, value=None, copy_from=None, version=CgroupVersion.CGROUP_UNK, cghelp=False, ignore_unmappable=False, ignore_systemd=False, recursive=False) | |
| get (config, controller=None, cgname=None, setting=None, print_headers=True, values_only=False, all_controllers=False, cghelp=False, ignore_systemd=False) | |
| xget (config, controller=None, cgname=None, setting=None, print_headers=True, values_only=False, all_controllers=False, version=CgroupVersion.CGROUP_UNK, cghelp=False, ignore_unmappable=False, ignore_systemd=False) | |
| classify (config, controller, cgname, pid_list, sticky=False, cancel_sticky=False, ignore_systemd=False, replace_idle=False) | |
| snapshot_to_dict (cgsnapshot_stdout) | |
| snapshot (config, controller=None) | |
| set_cgrules_conf (config, line, append=True) | |
| init_cgrules (config) | |
| configparser (config, load_file=None, load_dir=None, dflt_usr=None, dflt_grp=None, dperm=None, fperm=None, cghelp=False, tperm=None, tasks_usr=None, tasks_grp=None) | |
| get_controller_mount_point (ctrl_name) | |
| clear (config, empty=False, cghelp=False, load_file=None, load_dir=None) | |
| lssubsys (config, ls_all=False, cghelp=False, hierarchies=False, mount_points=False, all_mount_points=False) | |
| get_cgroup_mounts (config, expand_v2_mounts=True) | |
| lscgroup (config, cghelp=False, controller=None, path=None) | |
| cgexec (config, controller, cgname, cmdline, sticky=False, cghelp=False, ignore_systemd=False, replace_idle=False) | |
| get_pids_in_cgroup (config, cgroup, controller) | |
| get_and_validate (config, cgname, setting, expected_value, ignore_systemd=False) | |
| set_and_validate (config, cgname, setting, value, ignore_systemd=False) | |
| get_cgroup_mode (config) | |
| is_controller_enabled (config, cgroup_name, ctrl_name) | |
| exists (config, ctrl_name, cgroup_name, ignore_systemd=False) | |
| subtree_control (config, cgname, controllers, enable=True, ignore_systemd=False) | |
Data Fields | |
| name = name | |
| controllers = dict() | |
| children = list() | |
|
static |
cgexec equivalent method
|
static |
cgconfigparser equivalent method Returns: str: The stdout result of cgconfigparser The following variants of cgconfigparser are being tested by the automated functional tests: Command Test Number cgconfigparser -l conf_file 017 cgconfigparser -L conf_dir 018 cgconfigparser -l conf_file -a usr:grp -d mode -f mode 019 cgconfigparser -l conf_file -s mode -t usr:grp 020 cgconfigparser -h 021 cgconfigparser -l improper_conf_file 021
|
static |
cgget equivalent method Returns: str: The stdout result of cgget The following variants of cgget() are being tested by the automated functional tests: Command Test Number cgget -r cpuset.cpus mycg 001 cgget -r cpuset.cpus -r cpuset.mems mycg 008 cgget -g cpu mycg 009 cgget -g cpu:mycg 010 cgget -r cpuset.cpus mycg1 mycg2 011 cgget -r cpuset.cpus -r cpuset.mems mycg1 mycg2 012 cgget -g cpu -g freezer mycg 013 cgget -a mycg 014 cgget -r memory.stat mycg (multiline value read) 015 various invalid flag combinations 016
|
static |
get the requested setting and validate the value received This is a helper method for the functional tests and there is no equivalent libcgroup command line interface. This method will raise a CgroupError if the comparison fails
|
static |
cgset equivalent method
The following variants of cgset are being tested by the
automated functional tests:
Command Test Number
cgset -r setting=value cgname various
cgset -r setting1=val1 -r setting2=val2
-r setting3=val2 cgname 022
cgset --copy_from foo bar 023
cgset --copy_from foo bar1 bar2 024
cgset -r setting=value foo bar 025
cgset -r setting1=value1 setting2=value2 foo bar 026
various invalid flag combinations 027
|
static |
set the requested setting and validate the write This is a helper method for the functional tests and there is no equivalent libcgroup command line interface. This method will raise a CgroupError if the comparison fails
|
static |
cgxget equivalent method Returns: str: The stdout result of cgxget
|
static |
cgxset equivalent method