I'm on Mac Monterey 12.1 and increased my shared memory limits in /etc/sysctl.conf
file:
kern.sysv.shmmax: 16777216
kern.sysv.shmmin: 1
kern.sysv.shmmni: 128
kern.sysv.shmseg: 512
kern.sysv.shmall: 4096
security.mac.posixshm_enforce: 1
security.mac.sysvshm_enforce: 1
and restarted (and shut down) the machine. However, after restarting when i run sysctl -A | grep shm
it shows values different to the file:
kern.sysv.shmall: 1024
kern.sysv.shmmax: 4194304
kern.sysv.shmmin: 1
kern.sysv.shmmni: 32
kern.sysv.shmseg: 8
security.mac.posixshm_enforce: 1
security.mac.sysvshm_enforce: 1
even though /etc/sysctl.conf
still shows the changes as persisted.
In other words, I have no idea where sysctl -A | grep shm
is getting these values from.
Does anyone know where I need to modify them?