[slurm-users] Difference between sreport and sacct

6 views
Skip to first unread message

Hany Ibrahim via slurm-users

unread,
Apr 7, 2026, 8:52:31 AM (12 days ago) Apr 7
to slurm...@lists.schedmd.com
Hello,
I am trying to understand how sreport work. So I run sreport and obtain th estatistics about speciic project. On teh other side, I collected the jobs related to this account using sacct. When I try to sum the numbers, sometimes it don't sum up. I can't see any reservations.
This is the sreport I used:
sreport --tres cpu cluster AccountUtilizationByUser Start=2021-01-01 account=<account> -t hours -np

This is jobs I collected by using sacct:
sudo -u slurm sacct -a -S "2021-01-01" -E NOW --format=JobID%100,User,Account%100,State,AllocCPUs,CPUTime%100,CPUTIMERAW%100,ElapsedRaw%100,AllocTres%100,AllocNodes,NodeList,NNodes --noheader --parsable2 | grep <account>

I tried to exclude the steps from the main Jobs, so I summed only the main jobs whatever its state (canceled, completed, timeout, fail..). However the sreport occasionally is larger.
What I am missing exactly?

Warm regards,
Hany.

--
slurm-users mailing list -- slurm...@lists.schedmd.com
To unsubscribe send an email to slurm-us...@lists.schedmd.com
Reply all
Reply to author
Forward
0 new messages