NUMA for 9 threads or more

Enable numa machinery only for STRICTLY MORE than 8 threads. Reason for this
change is that nowadays SMP tests are always done with 8 threads. That is a
problem for multi-socket Windows machines running on fishtest.

No functional change
This commit is contained in:
Peter Zsifkovits
2018-09-04 13:36:42 +02:00
committed by Stéphane Nicolet
parent 9fff272209
commit bc3b148d57
3 changed files with 3 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ void Thread::idle_loop() {
// some Windows NUMA hardware, for instance in fishtest. To make it simple,
// just check if running threads are below a threshold, in this case all this
// NUMA machinery is not needed.
if (Options["Threads"] >= 8)
if (Options["Threads"] > 8)
WinProcGroup::bindThisThread(idx);
while (true)