Skip to content

Instantly share code, notes, and snippets.

@jbedo
Created February 13, 2011 12:59
Show Gist options
  • Save jbedo/824666 to your computer and use it in GitHub Desktop.
Save jbedo/824666 to your computer and use it in GitHub Desktop.
My version of http://sphericalharmony.com/plan9/makeventi for creating venti stores
#!/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