From 418bc338055b128e1e4307045c5a283a18983ee2 Mon Sep 17 00:00:00 2001 From: sears Date: Tue, 27 Apr 2010 17:57:43 +0000 Subject: [PATCH] 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 --- server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.cpp b/server.cpp index e0303a5..00e7dac 100644 --- a/server.cpp +++ b/server.cpp @@ -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);