kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
116 stars 47 forks source link

memory: use `peak` in `max_usage_in_bytes` #126

Closed HeRaNO closed 1 year ago

HeRaNO commented 1 year ago

Kernel 5.19 introduces memory.peak and kernel 6.5 introduces memory.swap.peak to expose the memory and swap usage watermark. This change use these values to fill max_usage_in_bytes.

HeRaNO commented 1 year ago

I opened a new pr for my misoperation, the old one is closed. Pls re-approve this. Sorry for the inconvenience @liubin @Tim-Zhang pls take a review, thanks.

liubin commented 1 year ago

@HeRaNO thank you, can you fix your commit message?

HeRaNO commented 1 year ago

@HeRaNO thank you, can you fix your commit message?

fixed.

HeRaNO commented 1 year ago

@Tim-Zhang ping

HeRaNO commented 1 year ago

Anyone take a look? It has been last for about 1 month. T T