1lxc-cgroup(1)                                                    lxc-cgroup(1)
2
3
4

NAME

6       lxc-cgroup - manage the control group associated with a container
7

SYNOPSIS

9       lxc-cgroup {-n name} {state-object} [value]
10

DESCRIPTION

12       lxc-cgroup   gets   or   sets   the  value  of  a  state-object  (e.g.,
13       'cpuset.cpus') in the container's cgroup for the corresponding  subsys‐
14       tem  (e.g., 'cpuset'). If no [value] is specified, the current value of
15       the state-object is displayed; otherwise it is set.
16
17       Note that lxc-cgroup does not check that the state-object is valid  for
18       the running kernel, or that the corresponding subsystem is contained in
19       any mounted cgroup hierarchy.
20

OPTIONS

22       state-object
23              Specify the state object name.
24
25       [value]
26              Specify the value to assign to the state object.
27

COMMON OPTIONS

29       These options are common to most of lxc commands.
30
31       -?, -h, --help
32              Print a longer usage message than normal.
33
34       --usage
35              Give the usage message
36
37       -q, --quiet
38              mute on
39
40       -P, --lxcpath=PATH
41              Use an alternate container path. The default is /var/lib/lxc.
42
43       -o, --logfile=FILE
44              Output to an alternate log FILE. The default is no log.
45
46       -l, --logpriority=LEVEL
47              Set log priority to LEVEL. The default log  priority  is  ERROR.
48              Possible  values  are : FATAL, ALERT, CRIT, WARN, ERROR, NOTICE,
49              INFO, DEBUG, TRACE.
50
51              Note that this option is setting the priority of the events  log
52              in  the  alternate  log file. It do not have effect on the ERROR
53              events log on stderr.
54
55       -n, --name=NAME
56              Use container identifier NAME.  The container identifier  format
57              is an alphanumeric string.
58
59       --rcfile=FILE
60              Specify  the  configuration file to configure the virtualization
61              and isolation functionalities for the container.
62
63              This configuration file if present will be used even if there is
64              already  a  configuration file present in the previously created
65              container (via lxc-create).
66
67       --version
68              Show the version number.
69

EXAMPLES

71       lxc-cgroup -n foo devices.list
72              display the allowed devices to be used.
73
74       lxc-cgroup -n foo cpuset.cpus "0,3"
75              assign the processors 0 and 3 to the container.
76

DIAGNOSTIC

78       The container was not found
79              The container is not running.
80

SEE ALSO

82       lxc(7), lxc-create(1), lxc-copy(1), lxc-destroy(1), lxc-start(1),  lxc-
83       stop(1),  lxc-execute(1),  lxc-console(1), lxc-monitor(1), lxc-wait(1),
84       lxc-cgroup(1), lxc-ls(1), lxc-info(1), lxc-freeze(1),  lxc-unfreeze(1),
85       lxc-attach(1), lxc.conf(5)
86

AUTHOR

88       Daniel Lezcano <daniel.lezcano@free.fr>
89
90
91
92                                  2022-07-21                     lxc-cgroup(1)
Impressum