Hi,
We have noticed the same issue: when using JobAcctGatherType=jobacct_gather/linux, the reported CPU usage is 0 for all steps. If the user only use sbatch without using any step (so no srun) then the value is correct.
jobacct_gather/cgroup reports correct values for CPU, but wrong values for memory so pick your poison (cf.
https://groups.google.com/g/slurm-users/c/tlFA2e74wZc ). If CPU usage is what matters to you, you should probably switch to jobacct_gather/cgroup if you don't use it already.
Guillaume
----- Mail original -----
De: "squallabc--- via slurm-users" <
slurm...@lists.schedmd.com>
À:
slurm...@lists.schedmd.com
Envoyé: Lundi 9 Février 2026 02:18:10
Objet: [slurm-users] for srun jobs, if we try to get UserCPU time by sacct. it always shows 0.