mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +00:00
Too many threads can cause an I/O bottleneck.
This commit is contained in:
@@ -239,6 +239,8 @@ void JobQueue::setThreadCount(int c)
|
|||||||
c = boost::thread::hardware_concurrency();
|
c = boost::thread::hardware_concurrency();
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
c = 2;
|
c = 2;
|
||||||
|
if (c > 4) // I/O will bottleneck
|
||||||
|
c = 4;
|
||||||
c += 2;
|
c += 2;
|
||||||
cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads";
|
cLog(lsINFO) << "Auto-tuning to " << c << " validation/transaction/proposal threads";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user