diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-03 16:47:59 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-03-03 16:47:59 +0000 |
commit | 60679416b8ef64afebd7514571b9cf6c188c11b5 (patch) | |
tree | 7b3c345b00f9c8fcaeb55fce1f6fa34cacfd4f86 | |
parent | 43e913e359f918496d672a5bdadb5fce040b2fc0 (diff) |
Use 2 threads per stripe.
-rw-r--r-- | storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp index b9fb85e0e80..bd1500b5c47 100644 --- a/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp +++ b/storage/src/vespa/storage/persistence/filestorage/filestormanager.cpp @@ -104,8 +104,8 @@ FileStorManager::configure(std::unique_ptr<vespa::config::content::StorFilestorC if (!liveUpdate) { _config = std::move(config); _disks.resize(_component.getDiskCount()); - size_t numThreads = _config->numThreads; - size_t numStripes = std::min(4ul, numThreads); + size_t numThreads = std::max(4, _config->numThreads); + size_t numStripes = numThreads / 2; _metrics->initDiskMetrics(_disks.size(), _component.getLoadTypes()->getMetricLoadTypes(), numStripes, numThreads); _filestorHandler = std::make_unique<FileStorHandler>(numThreads, numStripes, *this, *_metrics, _partitions, _compReg); |