mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Added VirtualMemory::bindToNUMANode
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "backend/common/Worker.h"
|
||||
#include "base/kernel/Platform.h"
|
||||
#include "base/tools/Chrono.h"
|
||||
#include "crypto/common/VirtualMemory.h"
|
||||
|
||||
|
||||
xmrig::Worker::Worker(size_t id, int64_t affinity, int priority) :
|
||||
@@ -36,7 +37,9 @@ xmrig::Worker::Worker(size_t id, int64_t affinity, int priority) :
|
||||
m_timestamp(0),
|
||||
m_count(0)
|
||||
{
|
||||
VirtualMemory::bindToNUMANode(affinity);
|
||||
Platform::trySetThreadAffinity(affinity);
|
||||
|
||||
Platform::setThreadPriority(priority);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user