[pve-devel] applied: [PATCH V2 pve-common] add get_pressure_stat

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Feb 8 16:07:20 CET 2021

On 07.02.21 14:36, Alexandre Derumier wrote:
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>  src/PVE/CGroup.pm | 42 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 42 insertions(+)

I now actually applied this patch, but followed up with two commits:

* unify parsing from host and cgroup pressure stats into a common sub
  in ProcFSTools

* return undef for the v1 controller case and the zeroed default $res
  if no path is found (i.e., vm/ct not running)

hope that works for you and I made no dumb error anywhere.

More information about the pve-devel mailing list