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

Activity

  • 5 months ago: MDoucha liked Add cgroups support to crash-python
  • about 1 year ago: mkoutny started Add cgroups support to crash-python
  • about 1 year ago: gfigueir liked Add cgroups support to crash-python
  • about 1 year ago: mbrugger liked Add cgroups support to crash-python
  • about 1 year ago: mkoutny originated Add cgroups support to crash-python

  • Comments

    • mkoutny
      about 1 year ago by mkoutny | Reply

      • list cgroup hierarchy tree(s),

        • implemented /proc/cgroups-like listing and simple recursive kernfs listing
      • list task cgroup membership,

        • implemented /proc/$PID/cgroup-like listing
      • dump basic cgroup attributes,

        • worked around by reporting address of struct cgroup
      • 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!