cgrps
is a set of commands for checking cgroups.
cgrps
is supposed to be used with peco like following command,
$ cgrps stat $(cgrps ls | peco)
or
$ cgrps ls | grep user.slice | head -1 | cgrps stat
$ ps u --pid $(cgrps ls | peco | cgrps pids | xargs)
$ pidstat -dru -h -p $(cgrps ls | peco | cgrps pids | xargs | tr ' ' ',')
$ lsof -Pn -i -a -p $(cgrps ls | peco | cgrps pids | xargs | tr ' ' ',')
list cgroups.
report a snapshot of the current cgroups pids.
show current cgroup stats (CPU
MEMORY
BLKIO
PIDS
).
report cgroups for processes.
cgrps
displays cgroups with the same hierarchies together.
If you want to check separately, please use cgroup-tools (Ubuntu)
or libcgroup-tools (CentOS)
etc.