aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-07-21 23:06:11 +0000
committerGravatar Mark <[email protected]>2021-07-21 23:06:11 +0000
commitabbf2e97667c2f3f68f82d92b943f3434f1ee946 (patch)
tree077af4e071833b33375229b7b4ba57a57969c27c
parentMerge #180 - fix integration tests (diff)
Enable a limited tmpfs for shared memory
-rw-r--r--config/snekbox.cfg8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/snekbox.cfg b/config/snekbox.cfg
index 5dd63da..c5d7ae3 100644
--- a/config/snekbox.cfg
+++ b/config/snekbox.cfg
@@ -106,6 +106,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"