From a874a1d4043f97322e1ae590e4c3f3d2819353d1 Mon Sep 17 00:00:00 2001 From: sears Date: Fri, 24 Feb 2012 21:34:57 +0000 Subject: [PATCH] add benchmark-big option git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@3796 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe --- servers/mapkeeper/bLSMRequestHandler.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/mapkeeper/bLSMRequestHandler.cpp b/servers/mapkeeper/bLSMRequestHandler.cpp index e754cec..bd95160 100644 --- a/servers/mapkeeper/bLSMRequestHandler.cpp +++ b/servers/mapkeeper/bLSMRequestHandler.cpp @@ -60,6 +60,10 @@ LSMServerHandler(int argc, char **argv) stasis_buffer_manager_size = (1024LL * 1024LL * 1024LL * 2LL) / PAGE_SIZE; // 5GB total c0_size = 1024LL * 1024LL * 1024LL * 3LL; printf("note: running w/ 5GB of memory for benchmarking on small box\n"); + } else if(!strcmp(argv[i], "--benchmark-big")) { + stasis_buffer_manager_size = (1024LL * 1024LL * 1024LL * 16LL) / PAGE_SIZE; // 26GB total + c0_size = 1024LL * 1024LL * 1024LL * 10LL; + printf("note: running w/ 28GB of memory for benchmarking on big box\n"); } else if(!strcmp(argv[i], "--log-mode")) { i++; log_mode = atoi(argv[i]); @@ -95,7 +99,7 @@ LSMServerHandler(int argc, char **argv) stasis_handle_raid0_filenames = tok; stasis_handle_factory = stasis_handle_raid0_factory; } else { - fprintf(stderr, "Usage: %s [--test|--benchmark|--benchmark-small] [--log-mode ] [--expiry-delta ] [--raid0 file1,file2,...]", argv[0]); + fprintf(stderr, "Usage: %s [--test|--benchmark|--benchmark-small|--benchmark-big] [--log-mode ] [--expiry-delta ] [--raid0 file1,file2,...]", argv[0]); abort(); } }