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:
parent
2f15673c80
commit
418bc33805
1 changed files with 6 additions and 0 deletions
|
@ -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?
|
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);
|
mscheduler->startlogtable(lindex, c0_size);
|
||||||
|
|
||||||
unlock(ltable.header_lock);
|
unlock(ltable.header_lock);
|
||||||
|
|
Loading…
Reference in a new issue