Skip to content

Conversation

@tiljeset
Copy link
Contributor

When the iocost controller is enabled it will emit statistics about its usage in io.stat. Export this when available. This is a no-op when iocost is not enabled.

There is a comment that we only expose data which directly maps to cgroups v1. We're already breaking this by adding PSI metrics, so reword this to just indicate that we currently don't recognize the other fields.

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we're not interested in cost.vrate?

LGTM overall

@tiljeset
Copy link
Contributor Author

I assume we're not interested in cost.vrate?
We are, but it's a per-disk global metric which happens to live in the root cgroup. When I made this I was thinking in the context of cAdvisor or similar where I don't think it belongs, it rather belongs in something akin to node_exporter. Should I add it here?

@AkihiroSuda AkihiroSuda added this to the 0.0.6 milestone Oct 28, 2025
@AkihiroSuda
Copy link
Member

AkihiroSuda commented Oct 28, 2025

Seems to need rebasing to pass the CI

@tiljeset tiljeset force-pushed the iocost branch 2 times, most recently from 5b9c422 to e55d70f Compare October 28, 2025 11:31
@tiljeset
Copy link
Contributor Author

Seems to need rebasing to pass the CI

Rebased. Need approval to run CI.

@AkihiroSuda
Copy link
Member

CI failing

@tiljeset
Copy link
Contributor Author

CI failing

Oops! I wrote the global cgroup.TestMode = true in parallel leading to a data race in the test code. Fixed.

When the iocost controller is enabled it will emit statistics about its
usage in io.stat. Export this when available. This is a no-op when
iocost is not enabled.

There is a comment that we only expose data which directly maps to
cgroups v1. We're already breaking this by adding PSI metrics, so reword
this to just indicate that we currently don't recognize the other
fields.

Signed-off-by: Morten Hein Tiljeset <morten@tiljeset.com>
@kolyshkin kolyshkin merged commit 7305075 into opencontainers:main Oct 29, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants