add --benchmark flag; simplifies things when I push diffs from the dev machine to the servers

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@790 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-04-27 17:57:43 +00:00
parent 2f15673c80
commit 418bc33805

View file

@ -85,6 +85,12 @@ int main(int argc, char *argv[])
printf("warning: running w/ tiny c0 for testing"); // XXX build a separate test server and deployment server?
}
if(argc == 2 && !strcmp(argv[1], "--benchmark")) {
c0_size = 1024 * 1024 * 1024 * 1;
printf("note: running w/ 2GB c0 for benchmarking"); // XXX build a separate test server and deployment server?
}
mscheduler->startlogtable(lindex, c0_size);
unlock(ltable.header_lock);