[slurm-users] Calculate the GPU usages
Loris Bennett
loris.bennett at fu-berlin.de
Wed Sep 1 11:54:51 UTC 2021
Dear Jeherul,
Jeherul Islam <jeherul at gmail.com> writes:
> Dear All,
>
> Please share the correct way of calculating the GPU usages.
> I am confused with sreport and sacct cmd. I am getting a different result.
>
> # sreport cluster AccountUtilizationByUser cluster=**** user=j.mira start=2021-05-01 end=2021-08-31 --tres="gres/gpu"
Here you have:
end=2021-08-31
> --------------------------------------------------------------------------------
> Cluster/Account/User Utilization 2021-05-01T00:00:00 - 2021-08-30T23:59:59 (10540800 secs)
> Usage reported in TRES Minutes
> --------------------------------------------------------------------------------
> Cluster Account Login Proper Name TRES Name Used
> --------- --------------- --------- --------------- -------------- --------
> **** chemistry j.mira j.mira gres/gpu 149434
>
> # sacct --account=chemistry --format=jobid,user,ElapsedRaw,state,AllocGRES,ncpus --starttime=2021-05-01 --endtime=2021-08-01 | grep j.mira| grep gpu| awk '{sum += $3} END {print sum}'
whereas here you have
--endtime=2021-08-01
> 4957060
>
> Please share the correct way.
>
> With Thanks and regards
so, without having checked your sacct/awk logic I would not expect the results to be the same.
Cheers,
Loris
--
Dr. Loris Bennett (Hr./Mr.)
ZEDAT, Freie Universität Berlin Email loris.bennett at fu-berlin.de
More information about the slurm-users
mailing list