summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-22 19:03:30 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-05-22 19:03:30 +0200
commit2c2ad340548599662a97344724ab67a23d23a885 (patch)
tree8402edb5e08b66c02a705104ba0279d23a51caf6 /searchcore
parent007f5b8e45219823943f732c4bcd79766d8bc971 (diff)
Only 16 tasks per thread should be sufficient to get a good flow with lower memory footprint.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
index cd934261dac..eb28c026e14 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
@@ -295,7 +295,7 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
vespalib::string fileConfigId;
_warmupExecutor.reset(new vespalib::ThreadStackExecutor(4, 128*1024));
const size_t summaryThreads = protonConfig.summary.log.numthreads;
- _summaryExecutor.reset(new vespalib::BlockingThreadStackExecutor(summaryThreads, 128*1024, summaryThreads*64));
+ _summaryExecutor.reset(new vespalib::BlockingThreadStackExecutor(summaryThreads, 128*1024, summaryThreads*16));
InitializeThreads initializeThreads;
if (protonConfig.initialize.threads > 0) {
initializeThreads = std::make_shared<vespalib::ThreadStackExecutor>
@@ -306,12 +306,9 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
initializeThreads.reset();
if (_persistenceEngine.get() != NULL) {
- _persistenceProxy.reset(new ProviderStub(protonConfig.
- persistenceprovider.port,
- protonConfig.
- persistenceprovider.threads,
- *configSnapshot->
- getDocumentTypeRepoSP(),
+ _persistenceProxy.reset(new ProviderStub(protonConfig.persistenceprovider.port,
+ protonConfig.persistenceprovider.threads,
+ *configSnapshot->getDocumentTypeRepoSP(),
*this));
}
@@ -973,5 +970,4 @@ Proton::getDocumentDBReferenceRegistry() const
return _documentDBReferenceRegistry;
}
-
} // namespace proton