[slurm-users] slurm sinfo format memory

Feng Zhang prod.feng at gmail.com
Thu Jul 20 19:37:04 UTC 2023


Looks like Slurm itself only supports that format(in MB unit). Slurm
commands output format is not very user friendly to me. If it can add
some easy options, like for the output info of sinfo command in this email
thread, how about adding support for lazy options, like sinfo -ABC, etc.

For the desired format in GB, one workaround may be to prepare a
wrapper shell script, read in the  sinfo output, and convert the MB to GB
and print out to the screen.


On Thu, Jul 20, 2023 at 12:28 PM Arsene Marian Alain <alain.arsene at uah.es>
wrote:

>
>
> Dear slurm users,
>
>
>
> I would like to see the following information of my nodes "hostname, total
> mem, free mem and cpus". So, I used  ‘sinfo -o "%8n %8m %8e %C"’ but in the
> output it shows me the memory in MB like "190560" and I need it in GB
> (without decimals if possible) like "190GB". Any ideas or suggestions on
> how I can do that?
>
>
>
> current output:
>
>
>
> HOSTNAME MEMORY   FREE_MEM CPUS(A/I/O/T)
>
> node01   190560   125249   60/4/0/64
>
> node02   190560   171944   40/24/0/64
>
> node05   93280     91584     0/40/0/40
>
> node06   513120   509448   0/96/0/96
>
> node07   513120   512086   0/96/0/96
>
> node08   513120   512328   0/96/0/96
>
> node09   513120   512304   0/96/0/96
>
>
>
> desired output:
>
>
>
> HOSTNAME MEMORY   FREE_MEM CPUS(A/I/O/T)
>
> node01   190GB   125GB   60/4/0/64
>
> node02   190GB   171GB   40/24/0/64
>
> node05   93GB      91GB    0/40/0/40
>
> node06   512GB   500GB   0/96/0/96
>
> node07   512GB   512GB   0/96/0/96
>
> node08   512GB   512GB   0/96/0/96
>
> node09   512GB   512GB   0/96/0/96
>
>
>
>
>
>
>
> I would appreciate any help.
>
>
>
> Thank you.
>
>
>
> Best Regards,
>
>
>
> Alain
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230720/2e3ddba6/attachment.htm>


More information about the slurm-users mailing list