aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2023-08-30 13:55:33 +0100
committerGravatar GitHub <[email protected]>2023-08-30 13:55:33 +0100
commit2b5f8a0d1f795092678f87ded0823f1b16cea63b (patch)
treed503649f9fd4481c45398736d5098b563072ff69 /config
parentMerge pull request #185 from python-discord/jb3/refactor-eval-deps (diff)
parentMerge branch 'main' into jb3/shared-mem (diff)
Merge pull request #113 from python-discord/jb3/shared-mem
Enable a limited tmpfs for shared memory
Diffstat (limited to 'config')
-rw-r--r--config/snekbox.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/snekbox.cfg b/config/snekbox.cfg
index 4e146ec..1bd2ab6 100644
--- a/config/snekbox.cfg
+++ b/config/snekbox.cfg
@@ -87,6 +87,14 @@ mount {
rw: false
}
+mount {
+ dst: "/dev/shm"
+ fstype: "tmpfs"
+ rw: true
+ is_bind: false
+ options: "size=40m"
+}
+
cgroup_mem_max: 52428800
cgroup_mem_swap_max: 0
cgroup_mem_mount: "/sys/fs/cgroup/memory"