diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 17:25:03 +1000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2014-06-25 17:25:03 +1000 |
commit | cfc45cdae670e6411e6f3087d5075c8742f1b00a (patch) | |
tree | c8bd794a5c24d119af2cb33b385acad8733ec403 /bench | |
parent | c151710ef09e74ed8511807db7c16ff18b426904 (diff) | |
download | mongo-cfc45cdae670e6411e6f3087d5075c8742f1b00a.tar.gz |
Update wtperf stress checkpoint setup.
Rename option to checkpoint_stress_rate. Refs #1069
Diffstat (limited to 'bench')
-rw-r--r-- | bench/wtperf/wtperf.c | 6 | ||||
-rw-r--r-- | bench/wtperf/wtperf_opt.i | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/bench/wtperf/wtperf.c b/bench/wtperf/wtperf.c index 4b7cc5f35ba..90a57fbf4d1 100644 --- a/bench/wtperf/wtperf.c +++ b/bench/wtperf/wtperf.c @@ -838,8 +838,8 @@ populate_thread(void *arg) } ++thread->insert.ops; /* Same as trk->ops */ - if (cfg->stress_checkpoint_rate != 0 && - (op % cfg->stress_checkpoint_rate) == 0) + if (cfg->checkpoint_stress_rate != 0 && + (op % cfg->checkpoint_stress_rate) == 0) stress_checkpoint_due = 1; if (cfg->populate_ops_per_txn != 0) { @@ -1975,7 +1975,7 @@ main(int argc, char *argv[]) goto einval; break; } - + cfg->async_config = NULL; /* * If the user specified async_threads we use async for all ops. diff --git a/bench/wtperf/wtperf_opt.i b/bench/wtperf/wtperf_opt.i index de9a42be66e..8d6b3577e01 100644 --- a/bench/wtperf/wtperf_opt.i +++ b/bench/wtperf/wtperf_opt.i @@ -78,7 +78,11 @@ * options are appended to existing content, whereas STRING options overwrite. */ DEF_OPT_AS_UINT32(async_threads, 0, "number of async worker threads") -DEF_OPT_AS_UINT32(checkpoint_interval, 120, "checkpoint every interval seconds") +DEF_OPT_AS_UINT32(checkpoint_interval, 120, + "checkpoint every interval seconds during the workload phase.") +DEF_OPT_AS_UINT32(checkpoint_stress_rate, 0, + "checkpoint every rate operations during the populate phase in the " + "populate thread(s), 0 to disable") DEF_OPT_AS_UINT32(checkpoint_threads, 0, "number of checkpoint threads") DEF_OPT_AS_CONFIG_STRING(conn_config, "create", "connection configuration string") @@ -126,8 +130,6 @@ DEF_OPT_AS_UINT32(sample_rate, 50, "how often the latency of operations is measured. One for every operation," "two for every second operation, three for every third operation etc.") DEF_OPT_AS_CONFIG_STRING(sess_config, "", "session configuration string") -DEF_OPT_AS_UINT32(stress_checkpoint_rate, 0, - "checkpoint every rate operations during the populate phase, 0 to disable") DEF_OPT_AS_CONFIG_STRING(table_config, "key_format=S,value_format=S,type=lsm,exclusive=true," "allocation_size=4kb,internal_page_max=64kb,leaf_page_max=4kb," |