Skip to content

Commit

Permalink
enhancement(slurmctld): enforce job level memory
Browse files Browse the repository at this point in the history
These changes introduce default values for SelectTypeParameters
and MemSpecLimit.

`SelectTypeParameters=CR_CPU_Memory` to enable memory allocation
enforcement.

`MemSpecLimit=1024` to ensure systems always have 1G available
memory that jobs cannot consume.
  • Loading branch information
jamesbeedy committed Nov 24, 2024
1 parent b3b2679 commit f2af1a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charms/slurmctld/src/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
"HealthCheckNodeState": ["ANY", "CYCLE"],
"HealthCheckProgram": "/usr/sbin/charmed-hpc-nhc-wrapper",
"MailProg": "/usr/bin/mail.mailutils",
"MemSpecLimit": "1024",
"PluginDir": ["/usr/lib/x86_64-linux-gnu/slurm-wlm"],
"PlugStackConfig": "/etc/slurm/plugstack.conf.d/plugstack.conf",
"SelectType": "select/cons_tres",
"SelectTypeParameters": "CR_CPU_Memory",
"SlurmctldPort": "6817",
"SlurmdPort": "6818",
"StateSaveLocation": "/var/lib/slurm/checkpoint",
Expand Down

0 comments on commit f2af1a2

Please sign in to comment.