Closed edwintorok closed 6 months ago
Draft PR, also need to move this to the xen-api repo, but opening it here as draft first, because it'll be easier to backport to Havana.
Maybe there is a way to fit this in: the number of used file descriptors would be another useful stat.
Does this PR have a future? Is it still possible to rebase it?
We probably don't care about backports to Havana (or even Yangtze) on this anymore, so I'm moving this to the XAPI repo, I think it was basically half approved.
2 rrds: a quick one every 5s, and a slow one every 2.5m (that does the slower Gc.stat and smaps_rollup query).
I tried to be careful with units, not to mix words and KiB (i.e. always convert everything to KiB before doing arithmetic on them), the old xapi stats was buggy in this regard (and had some hardcoded constants based on word-size=32-bit which is no longer true).