Ticket 229

Summary: Include allocated memory in "scontrol show node"
Product: Slurm Reporter: Ryan Cox <ryan_cox>
Component: OtherAssignee: Moe Jette <jette>
Status: RESOLVED FIXED QA Contact:
Severity: 5 - Enhancement    
Priority: ---    
Version: 2.5.x   
Hardware: Linux   
OS: Linux   
Site: BYU - Brigham Young University Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Ryan Cox 2013-02-08 03:19:03 MST
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
Comment 1 Moe Jette 2013-02-11 06:07:21 MST
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.
Comment 2 Moe Jette 2013-02-12 05:17:48 MST
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