1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-24 07:10:30 -05:00

Linux: added support for transparent huge pages

This commit is contained in:
SChernykh
2025-12-11 11:23:18 +01:00
parent 856813c1ae
commit 482a1f0b40
8 changed files with 32 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ public:
static void *allocateExecutableMemory(size_t size, bool hugePages);
static void *allocateLargePagesMemory(size_t size);
static void *allocateOneGbPagesMemory(size_t size);
static bool adviseLargePages(void *p, size_t size);
static void destroy();
static void flushInstructionCache(void *p, size_t size);
static void freeLargePagesMemory(void *p, size_t size);