Currently "scontrol show node" shows the amount of configured memory for a particular node. I would like to have it show the amount of memory that has been allocated, like CPUAlloc vs CPUTot. I tried looking through the code to see where to add it but it's honestly a little hard following everything to see where that is even stored. A different command is acceptable to. Basically, I'm trying to create utilization graphs per feature and want to have the following information: * CPUAlloc / CPUTot * RealMemoryAlloc / RealMemory (people may request 1 CPU but 100% of the memory, so count that as a whole node allocated) * State * Features * NodeName
The only way to get that information today is by reading the node information, then reading the job information and doing the math (hardly convenient). We may be able to add this to our next major release - time permitting.
I have made this change in the Slurm version 2.6 code base (to be released in a few months). I would recommend against it, but if this proves critical to you the patch could be applied to Slurm version 2.5 with minor modification. The fix is here: https://github.com/SchedMD/slurm/commit/3533f8221dcbab667b8f478b630165cbe2a9151f