Only 16 tasks per thread should be sufficient to get a good flow with lower memory footprint.
@@ -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
