Skip to content

Instantly share code, notes, and snippets.

@davidkelley
Created July 9, 2013 09:11
Show Gist options
  • Save davidkelley/5955885 to your computer and use it in GitHub Desktop.
Save davidkelley/5955885 to your computer and use it in GitHub Desktop.
Commands to fix the PostgreSQL fatal shared memory bug in OS X
# Sudo system control to fix memory in current session
sudo sysctl -w kern.sysv.shmall=65536
sudo sysctl -w kern.sysv.shmmax=16777216
# Fix memory bug for future sessions
cat << 'EOF' >> /etc/sysctl.conf
kern.sysv.shmall=65536
kern.sysv.shmmax=16777216
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment