diff --git a/afl-persistent-config b/afl-persistent-config
index 5a9f5e31..fd453cbc 100755
--- a/afl-persistent-config
+++ b/afl-persistent-config
@@ -69,8 +69,9 @@ if [[ "$PLATFORM" = "Darwin" ]] ; then
/usr/sbin/sysctl
-w
kern.sysv.shmmax=524288000
+ kern.sysv.shmmin=1
kern.sysv.shmmni=128
- kern.sysv.shmseg=32
+ kern.sysv.shmseg=48
kern.sysv.shmall=131072000
KeepAlive
diff --git a/afl-system-config b/afl-system-config
index a2ffa490..dbdbbf1f 100755
--- a/afl-system-config
+++ b/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