Created
February 13, 2011 12:59
-
-
Save jbedo/824666 to your computer and use it in GitHub Desktop.
My version of http://sphericalharmony.com/plan9/makeventi for creating venti stores
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/plan9/bin/rc | |
. 9.rc | |
path = ($PLAN9/bin/venti $path) | |
arenasize = $1 | |
isectsize = `{echo 'int('^$arenasize^'*0.05)' | hoc} | |
bloomsize = 512 | |
touch venti.conf | |
echo 'index ramventi' >>venti.conf | |
echo 'arenas arenas' >>venti.conf | |
echo 'isect isect' >>venti.conf | |
echo 'bloom bloom' >>venti.conf | |
echo 'mem 64m' >>venti.conf | |
echo 'bcmem 96m' >>venti.conf | |
echo 'icmem 128m' >>venti.conf | |
echo 'httpaddr tcp!127.0.0.1!8000' >>venti.conf | |
dd -if /dev/zero -of bloom -bs 1024k -count $bloomsize | |
dd -if /dev/zero -of isect -bs 1024k -count $isectsize | |
dd -if /dev/zero -of arenas -bs 1024k -count $arenasize | |
fmtarenas arenas0 arenas | |
fmtisect isect0 isect | |
fmtbloom -n $arenasize bloom | |
fmtindex venti.conf | |
#venti -c venti.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment