To ease debugging cgroup relates issues this suggests to:
- list cgroup hierarchy tree(s),
- list task cgroup membership,
- dump basic cgroup attributes,
- dump attributes of controllers associated with a cgroup.
An alternative approach (independent project) would be to add support for traversing in-memory filesystems (e.g. kernfs).
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 18 Hack Week 19
Comments
-
over 5 years ago by mkoutny | Reply
list cgroup hierarchy tree(s),
- implemented
/proc/cgroups
-like listing and simple recursive kernfs listing
- implemented
list task cgroup membership,
- implemented
/proc/$PID/cgroup
-like listing
- implemented
dump basic cgroup attributes,
- worked around by reporting address of
struct cgroup
- worked around by reporting address of
dump attributes of controllers associated with a cgroup.
- didn't get down to controller-specific stuff.
The result in personal repo [1]. Depends on kernfs crash-python module and that's subject to refinements before merging (docs, tests) [2]. Hopefully, after adding docs and tests to cgroup code it would be mergeable as well.
[1] https://github.com/Werkov/crash-python/tree/devel/cgroup [2] https://github.com/jeffmahoney/crash-python/pull/39
Similar Projects
This project is one of its kind!