mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-26 07:53:01 -05:00
Added 1GB hugepages support for Linux
This commit is contained in:
@@ -61,6 +61,7 @@ public:
|
||||
static uint32_t bindToNUMANode(int64_t affinity);
|
||||
static void *allocateExecutableMemory(size_t size);
|
||||
static void *allocateLargePagesMemory(size_t size);
|
||||
static void *allocateOneGbPagesMemory(size_t size);
|
||||
static void destroy();
|
||||
static void flushInstructionCache(void *p, size_t size);
|
||||
static void freeLargePagesMemory(void *p, size_t size);
|
||||
@@ -81,6 +82,7 @@ private:
|
||||
static void osInit(bool hugePages);
|
||||
|
||||
bool allocateLargePagesMemory();
|
||||
bool allocateOneGbPagesMemory();
|
||||
void freeLargePagesMemory();
|
||||
|
||||
const size_t m_size;
|
||||
|
||||
Reference in New Issue
Block a user