Integrated: 8313083: Print 'rss' and 'cache' as part of the container information
Gerard Ziemski
gziemski at openjdk.org
Wed Jan 10 17:32:33 UTC 2024
On Tue, 19 Dec 2023 17:41:51 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> We add "rss" and "cache" metrics to cgroups v1 and v2
>
> For cgroups v1, those metrics are named accordingly and are retrieved using the same names.
>
> For cgroups v2, those metrics seem not to be directly provided, but instead we need:
> - `"anon"` for "rss"
> - `"file"` for "cache"
>
> The cgroups v2 docs do not actually state this equivalence (https://docs.kernel.org/admin-guide/cgroup-v2.html), but instead this comes from reading cAdvisor src code - https://github.com/google/cadvisor/blob/2129e1c4fae8567551d1ac252c7a1dec27617e21/container/libcontainer/handler.go#L814C4-L814C4
This pull request has now been integrated.
Changeset: c96cbe48
Author: Gerard Ziemski <gziemski at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c96cbe481c86800b76e220374b24b6671984adb7
Stats: 46 lines in 9 files changed: 45 ins; 0 del; 1 mod
8313083: Print 'rss' and 'cache' as part of the container information
Reviewed-by: sgehwolf
-------------
PR: https://git.openjdk.org/jdk/pull/17161
More information about the hotspot-runtime-dev
mailing list