Chris, This is close to what you want: sinfo -N -S "%C" -o "%N %C"
I think the sorting is based upon a string comparison, but could be easily altered to be based upon the percentage allocated. Quoting Chris Harwell <[email protected]>: > > Hi, > > I must be missing it. What is the sinfo or squeue command incantation > needed to get a list of nodes sorted by order of how full they are? > That is given a slurm configuration where multiple jobs can share > nodes, but not share CPUs and nodes have more than 1 CPU. > > e.g. the output of scontrol show nodes, > selecting only State=ALLOCATED or IDLE, > then sorting by CPUAlloc/CPUTot > > or something similar. I can certainly do this with a script, but it > seems like there must be some more direct way. > > Thanks in advance, > Chris
