Skip to content

Instantly share code, notes, and snippets.

Forked from le0pard/
Last active Aug 29, 2015
What would you like to do?
# 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