Hello!
We also see this. But in both clusters one is configured with jobacct_gather/linux and the other with jobacct_gather/cgroup. Both cluster are in one setup (slurmdbd)
Best!
Sven
On 2/9/26 10:16, Guillaume COCHARD via slurm-users wrote:
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-users@lists.schedmd.com À:slurm-users@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.
Hi we have a slurm v25.05.2 setup. we found any srun jobs are always shows 0 on UserCPU . for sbatch jobs shoiws normal. is this expected or it is a bug ? Thanks. sacct -j 2948 --format=AveCPU,UserCPU AveCPU UserCPU
00:00:0000:02:00 00:00:00