Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple shmsetup script for PostgreSQL
# simple shmsetup script
page_size=`getconf PAGE_SIZE`
phys_pages=`getconf _PHYS_PAGES`
shmall=`expr $phys_pages / 2`
shmmax=`expr $shmall \* $page_size`
echo kernel.shmmax = $shmmax
echo kernel.shmall = $shmall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment