File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,8 @@ Optionally the timings can be made more stable by not letting the OS schedule
179
179
any other tasks on the same CPU core the judgedaemon is using:
180
180
``GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1 isolcpus=2" ``
181
181
182
- You have now configured the system to use cgroups. On systems with
183
- cgroups v1, you need to run::
182
+ You have now configured the system to use cgroups. To create
183
+ the actual cgroups that DOMjudge will use you need to run::
184
184
185
185
sudo systemctl enable create-cgroups --now
186
186
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ CGROUPBASE="/sys/fs/cgroup"
12
12
# We do not need to do any of this with cgroup v2.
13
13
fs_type=$( awk ' $2 == "/sys/fs/cgroup" {print $3}' /proc/mounts)
14
14
if [ " $fs_type " = " cgroup2" ]; then
15
- echo " cgroup v2 detected, skipping cgroup creation" >&2
15
+ echo " +memory" >> /sys/fs/cgroup/cgroup.subtree_control
16
+ echo " +cpuset" >> /sys/fs/cgroup/cgroup.subtree_control
16
17
exit 0
17
18
fi
18
19
You can’t perform that action at this time.
0 commit comments