[slurm-users] slurm sinfo format memory
Ole Holm Nielsen
Ole.H.Nielsen at fysik.dtu.dk
Fri Jul 21 09:32:18 UTC 2023
On 7/20/23 18:24, Arsene Marian Alain wrote:
> 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?
Just my 2 cents: The old "-o" options flag should be replaced by Slurm's
more modern "-O" option which uses readable parameters and allows more
output fields than -o, for example:
sinfo -O "NodeHost,CPUsState:20,Memory:20,FreeMem:20,StateComplete:30"
More information about the slurm-users