aboutsummaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-11-09 12:26:53 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-11-09 12:27:10 +0000
commit9241f43698e7e0f01aa8e73f86af4a5c399d2c03 (patch)
tree571dca4224fc48166aff86f763ba3a0dfea73303 /staging_vespalib
parent2bf1f53afbf5830a78cefdd49e46ed1f626adc30 (diff)
Let default watermark be at 50% instead of 10%.
That will favour more frequent wakeups, and should give more stable flow.
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/sequencedtaskexecutor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/sequencedtaskexecutor.cpp b/staging_vespalib/src/vespa/vespalib/util/sequencedtaskexecutor.cpp
index 038b9201724..f92e1655e7d 100644
--- a/staging_vespalib/src/vespa/vespalib/util/sequencedtaskexecutor.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/sequencedtaskexecutor.cpp
@@ -39,7 +39,7 @@ SequencedTaskExecutor::create(vespalib::Runnable::init_fun_t func, uint32_t thre
executors->reserve(threads);
for (uint32_t id = 0; id < threads; ++id) {
if (optimize == OptimizeFor::THROUGHPUT) {
- uint32_t watermark = kindOfWatermark == 0 ? taskLimit / 10 : kindOfWatermark;
+ uint32_t watermark = kindOfWatermark == 0 ? taskLimit / 2 : kindOfWatermark;
executors->push_back(std::make_unique<SingleExecutor>(func, taskLimit, watermark, reactionTime));
} else {
executors->push_back(std::make_unique<BlockingThreadStackExecutor>(1, stackSize, taskLimit, func));