Ticket 3926

Summary: Bug in srun when server switches from pn_min_memory to mem_per_cpu
Product: Slurm Reporter: Thomas Opfer <hrz>
Component: ContributionsAssignee: Danny Auble <da>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: alex, da, hrz
Version: 17.11.x   
Hardware: Linux   
OS: Linux   
Site: -Other- Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name: Lichtenberg High Performance Computer
CLE Version: Version Fixed: 17.02.6 17.11.0-pre2
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---
Ticket Depends on:    
Ticket Blocks: 3879    
Attachments: Fix that makes srun work correctly.

Description Thomas Opfer 2017-06-24 17:58:19 MDT
Created attachment 4826 [details]
Fix that makes srun work correctly.

When srun creates a job allocation and the server decides to use memory per node instead of memory per core or vice versa, it is not detected correctly in the calling srun instance. I attached a fix.

This fix also makes the proposed fix for bug 3879 working.
Comment 2 Danny Auble 2017-06-26 14:14:29 MDT
Thomas, I believe you have found a good one here, thanks!

Added in commit 3af8a44ded5e
Comment 3 Danny Auble 2017-06-26 14:15:01 MDT
Please reopen if anything else is needed on this.
Comment 6 Thomas Opfer 2017-07-03 10:49:19 MDT
(In reply to Danny Auble from comment #3)
> Please reopen if anything else is needed on this.

I just saw that the fix was not merged to the master branch (while the change in the NEWS file was).
Comment 8 Thomas Opfer 2017-07-03 11:38:21 MDT
Oops, you are right. The github browser is driving me crazy, it opens wrong branches regularly...

Sorry for that.