Skip to content

Instantly share code, notes, and snippets.

@le0pard
Created February 5, 2011 17:13
Show Gist options
  • Save le0pard/812606 to your computer and use it in GitHub Desktop.
Save le0pard/812606 to your computer and use it in GitHub Desktop.
Simple shmsetup script for PostgreSQL
#!/bin/bash
# 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