summaryrefslogtreecommitdiffstats
path: root/etc/sysctl.conf
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2022-10-04 07:52:18 +0100
committerMatthew Lemon <matt@matthewlemon.com>2022-10-04 07:52:18 +0100
commitbff5f3e2da533cf8809d0330bd49d1cd1a253c72 (patch)
tree31269a928853768c8ab26a3968e880741db9ddb9 /etc/sysctl.conf
parentdeeffd78793f7bfe936f8bb020a4cbf9b2b1e48b (diff)
added etc files
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