vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / openbsd_memory.sh
blob04c4a443d7c4ad7799ab78fd23ef384a99e4e983
1 #!/usr/bin/env bash
3 You'll need to logout and log back in for those changes to take effect. There are also some kernel sysctls we'll need to bump up for desktop use. Add the following values to /etc/sysctl.conf. The shm variables are for my laptop, which has 16 GB of RAM. You should scale them accordingly for your machine.
5 /etc/sysctl.conf
6 # shared memory limits (chrome needs a ton)
7 kern.shminfo.shmall=3145728
8 kern.shminfo.shmmax=2147483647
9 kern.shminfo.shmmni=1024
11 # semaphores
12 kern.shminfo.shmseg=1024
13 kern.seminfo.semmns=4096
14 kern.seminfo.semmni=1024
16 kern.maxproc=32768
17 kern.maxfiles=65535
18 kern.bufcachepercent=90
19 kern.maxvnodes=262144
20 kern.somaxconn=2048