RFR: 8313083: Print 'rss' and 'cache' as part of the container information [v2]

Gerard Ziemski gziemski at openjdk.org
Mon Jan 8 21:42:33 UTC 2024


> 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

Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:

  check for rss and cache

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/17161/files
  - new: https://git.openjdk.org/jdk/pull/17161/files/72d5c713..af9450d2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17161&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17161&range=00-01

  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/17161.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17161/head:pull/17161

PR: https://git.openjdk.org/jdk/pull/17161


More information about the hotspot-runtime-dev mailing list