[slurm-users] for srun jobs, if we try to get UserCPU time by sacct. it always shows 0.

13 views
Skip to first unread message

squallabc--- via slurm-users

unread,
Feb 8, 2026, 8:20:35 PM (14 days ago) Feb 8
to slurm...@lists.schedmd.com
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:00
00:02:00 00:00:00

--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com

Guillaume COCHARD via slurm-users

unread,
Feb 9, 2026, 4:18:07 AM (13 days ago) Feb 9
to squa...@126.com, slurm...@lists.schedmd.com
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.

squallabc--- via slurm-users

unread,
Feb 12, 2026, 2:34:02 AM (11 days ago) Feb 12
to slurm...@lists.schedmd.com
we will try latest v25 to see if if fixed or not. Thanks.

Sven Sternberger via slurm-users

unread,
Feb 16, 2026, 8:48:52 AM (6 days ago) Feb 16
to slurm...@lists.schedmd.com

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

Brice RAFFESTIN via slurm-users

unread,
Feb 16, 2026, 9:51:10 AM (6 days ago) Feb 16
to slurm...@lists.schedmd.com
Hello,
This is an issue we already reported to the support[1]. For your information, we were using jobacct_gather/cgroup when we encountered this problem.
The fix[2] is in the master branches for 25.05 and 25.11 and should be in the next minors (25.11.4 and 25.05.07).


De : Sven Sternberger via slurm-users <slurm...@lists.schedmd.com>
Envoyé : lundi 16 février 2026 14:46
À : slurm...@lists.schedmd.com
Objet : [slurm-users] Re: for srun jobs, if we try to get UserCPU time by sacct. it always shows 0.
 
Reply all
Reply to author
Forward
0 new messages