Skip to content

Add support for cgroups v2 #3

@strategicpause

Description

@strategicpause

Description

Today cgstat only has support for cgroups v1, which limits its usefulness to only systems using that version. As cgroups v2 adoption grows, we'll want to not just add support for it, but also include new stats which were introduced.

Tasks

  • Come up with the mechanism used to detect cgroups v2. Should the user specify it, or should cgstat detect it (preference for the second since v1 vs v2 is a binary choice)
  • Come up with the stats to display for normal mode, verbose mode, and csv output.
  • Make changes. Commit 2e4c26a has already stared some refactoring that starts to divide code up into separate v1 and v2 packages, which cgroups v2 support can build on top of.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions