summaryrefslogtreecommitdiffstats
path: root/etc/sysctl.conf
diff options
context:
space:
mode:
Diffstat (limited to 'etc/sysctl.conf')
-rw-r--r--etc/sysctl.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/sysctl.conf b/etc/sysctl.conf
new file mode 100644
index 0000000..0d2517f
--- /dev/null
+++ b/etc/sysctl.conf
@@ -0,0 +1,22 @@
+
+# from https://www.c0ffee.net/blog/openbsd-on-a-laptop/
+# shared memory limits (chrome needs a ton)
+kern.shminfo.shmall=3145728
+kern.shminfo.shmmax=2147483647
+kern.shminfo.shmmni=1024
+
+# semaphores
+kern.shminfo.shmseg=1024
+kern.seminfo.semmns=4096
+kern.seminfo.semmni=1024
+
+kern.maxproc=32768
+kern.maxfiles=65535
+kern.bufcachepercent=90
+kern.maxvnodes=262144
+kern.somaxconn=2048
+
+kern.audio.record=1
+kern.video.record=1
+
+net.inet.ip.forwarding=1