better macos sysctl settings
MODIFY
afl-persistent-config
afl-persistent-config
@@ -69,8 +69,9 @@ if [[ "$PLATFORM" = "Darwin" ]] ; then
<string>/usr/sbin/sysctl</string>
<string>-w</string>
<string>kern.sysv.shmmax=524288000</string>
+ <string>kern.sysv.shmmin=1</string>
<string>kern.sysv.shmmni=128</string>
- <string>kern.sysv.shmseg=32</string>
+ <string>kern.sysv.shmseg=48</string>
<string>kern.sysv.shmall=131072000</string>
</array>
<key>KeepAlive</key>

MODIFY
afl-system-config
afl-system-config
@@ -101,9 +101,10 @@ if [ "$PLATFORM" = "NetBSD" ] ; then
DONE=1
fi
if [ "$PLATFORM" = "Darwin" ] ; then
- sysctl kern.sysv.shmmax=8388608
+ sysctl kern.sysv.shmmax=524288000
+ sysctl kern.sysv.shmmin=1
sysctl kern.sysv.shmseg=48
- sysctl kern.sysv.shmall=98304
+ sysctl kern.sysv.shmall=131072000
echo Settings applied.
echo
if [ $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') ] ; then

better macos sysctl settings