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).

Best,
Brice
[1] https://support.schedmd.com/show_bug.cgi?id=24366#c10
[2] https://github.com/SchedMD/slurm/commit/4890b1a1739bae01ce4adbb552e570723d1eed76


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

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:00 
  00:02:00   00:00:00