Skip to content

Commit 338664f

Browse files
committed
include cgroup.conf template from upstream
1 parent 263580c commit 338664f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

tasks/runtime.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@
132132
register: ohpc_gres_conf
133133
# NB uses restart rather than reload as this is needed in some cases
134134

135-
- name: Create cgroup.conf
135+
- name: Template cgroup.conf
136136
# appears to be required even with NO cgroup plugins: https://slurm.schedmd.com/cgroups.html#cgroup_design
137-
copy:
138-
remote_src: yes
139-
src: /etc/slurm/cgroup.conf.example
137+
template:
138+
src: cgroup.conf.j2
140139
dest: /etc/slurm/cgroup.conf
141140
mode: "0644" # perms/ownership based off src from ohpc package
142141
owner: root

templates/cgroup.conf.j2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
###
2+
#
3+
# Slurm cgroup support configuration file
4+
#
5+
# See man slurm.conf and man cgroup.conf for further
6+
# information on cgroup configuration parameters
7+
#--
8+
ConstrainCores=yes
9+
ConstrainDevices=yes
10+
ConstrainRAMSpace=yes
11+
ConstrainSwapSpace=yes

0 commit comments

Comments
 (0)