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

  • almost 4 years ago: firoyang liked this project.
  • almost 5 years ago: MDoucha liked this project.
  • over 5 years ago: mkoutny started this project.
  • over 5 years ago: gfigueir liked this project.
  • over 5 years ago: mbrugger liked this project.
  • over 5 years ago: mkoutny originated this project.

  • Comments

    • mkoutny
      over 5 years 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!