From dfebd21b8671f870f081a61beffa79a0e5321791 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 9 Oct 2025 22:31:29 +0100 Subject: Increase thread limit to 15 Changes to multiprocessing in Python 3.14 make it more likely that the 5 PID limit is hit even with non-complicated uses of multiprocessing. We have enough compute to allocate more PIDs and safely know this will not affect the operation of other services (we have since migrated our databases and heavier processing applications onto other hosts). --- config/snekbox.cfg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/snekbox.cfg b/config/snekbox.cfg index 91ba7c9..7332d4a 100644 --- a/config/snekbox.cfg +++ b/config/snekbox.cfg @@ -9,11 +9,11 @@ time_limit: 6 keep_env: false envar: "LANG=en_US.UTF-8" -envar: "OMP_NUM_THREADS=5" -envar: "OPENBLAS_NUM_THREADS=5" -envar: "MKL_NUM_THREADS=5" -envar: "VECLIB_MAXIMUM_THREADS=5" -envar: "NUMEXPR_NUM_THREADS=5" +envar: "OMP_NUM_THREADS=15" +envar: "OPENBLAS_NUM_THREADS=15" +envar: "MKL_NUM_THREADS=15" +envar: "VECLIB_MAXIMUM_THREADS=15" +envar: "NUMEXPR_NUM_THREADS=15" envar: "PYTHONDONTWRITEBYTECODE=true" envar: "PYTHONIOENCODING=utf-8:strict" envar: "PYTHONUNBUFFERED=true" @@ -100,7 +100,7 @@ cgroup_mem_max: 73400320 cgroup_mem_swap_max: 0 cgroup_mem_mount: "/sys/fs/cgroup/memory" -cgroup_pids_max: 6 +cgroup_pids_max: 15 cgroup_pids_mount: "/sys/fs/cgroup/pids" iface_no_lo: true -- cgit v1.2.3