Open elelayan opened 2 months ago
Hi, thank you for sharing this nice tool! I've needed to adapt it to cgroups v2 for my slurm cluster:
cpu
memory
/sys/fs/cgroup/{cpu,memory}
cpuacct.usage
usage_usec
cpu.stat
/sys/fs/cgroup/system.slice/slurmstepd.scope/job_%v
/sys/fs/cgroup/.../slurm/uid_%v/job_%v
It is a small patch to cmd/jobperf/nodestats.go. I'll propose a MR shortly.
cmd/jobperf/nodestats.go
Thanks for looking into this! An MR would be appreciated -- there's a good chance we'll be moving to cgroupv2 in the not too distant future.
Hi, thank you for sharing this nice tool! I've needed to adapt it to cgroups v2 for my slurm cluster:
cpu
ormemory
(/sys/fs/cgroup/{cpu,memory}
) at the root of the pathcpuacct.usage
, but we can use theusage_usec
field in thecpu.stat
file/sys/fs/cgroup/system.slice/slurmstepd.scope/job_%v
instead of/sys/fs/cgroup/.../slurm/uid_%v/job_%v
It is a small patch to
cmd/jobperf/nodestats.go
. I'll propose a MR shortly.