Skip to content

Instantly share code, notes, and snippets.

@Qiuzhuang
Forked from le0pard/getconf.sh
Last active Aug 29, 2015
Embed
What would you like to do?
#!/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