As of at least macOS Catalina 10.15.3, /etc/sysctl.conf
values are no longer respected and/or the file straight up doesn't exist (confirmed on macOS Monterey 12.4.)
Ran across a fio
shm error: failed to setup shm segment
while benchmarking SSDs. The fix was to set shmmni
to 4096
. The following has to happen:
- Disable SIP
- Disclaimer from Apple
Warning
Disable SIP only temporarily to perform necessary tasks, and reenable it as soon as possible. Failure to reenable SIP when you are done testing leaves your computer vulnerable to malicious code.
- Disclaimer from Apple