RFE: add command to list groups and show attributes of group
We can use cgcreate to create group, cgset to modify group, but no commands can tell us the list of alredy created groups nor the attributes of a group. So we have to check the /cgroup directory manually.
So, commands like 'cggrps', 'cgshow' is suggested.
cggrps list the cgroup of specified controller. for example:
]# cggrps -g cpu:/test
cggrps can also tell us which groups a pid stay in.
]# cppgrps -p 12131
]# cppgrps -p 12131 -g cpu
cgshow show us the attributes of a group. for example:
]# cgshow cpu:/test
There already are some tools to satisfy your needs:
(In reply to comment #0)
> cggrps list the cgroup of specified controller. for example:
> ]# cggrps -g cpu:/test
> cggrps can also tell us which groups a pid stay in.
> ]# cppgrps -p 12131
This is not yet implemented in any libcgroup tool... use cat /proc/12131/cgroup
> cgshow show us the attributes of a group. for example:
> ]# cgshow cpu:/test
use cgget -g cpu /test
there is no lscgroup nor cgget in libcgroup-0.34-4.el6.x86_64
Additionally, please add ' blkio = /cgroup/blkio;' into /etc/cgconfig.conf.
And, add support of 'include /etc/cgconfig.d/*.conf' to /etc/cgconfig.conf, and add 'include /etc/cgrules.d/*.conf' to /etc/cgrules.conf
Ahh, I see, the public beta has older libcgroup. Don't worry, libcgroup-0.36 is scheduled to RHEL 6.0. Which includes also blkio in default config.
Is therer a new public beta-2 scheduled?