From 614f29bf3698591afb2c1920ac58af579c856685 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 9 May 2013 12:28:43 -0700 Subject: [PATCH] Too many threads can cause an I/O bottleneck. --- src/cpp/ripple/JobQueue.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cpp/ripple/JobQueue.cpp b/src/cpp/ripple/JobQueue.cpp index f6ce0bcf47..5429ba20c4 100644 --- a/src/cpp/ripple/JobQueue.cpp +++ b/src/cpp/ripple/JobQueue.cpp @@ -239,6 +239,8 @@ void JobQueue::setThreadCount(int c) c = boost::thread::hardware_concurrency(); if (c < 0) c = 2; + if (c > 4) // I/O will bottleneck + c = 4; c += 2; cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads"; }