1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 14:52:52 -05:00

Improved compatibility for automatically enabling huge pages on Linux systems without NUMA support.

This commit is contained in:
XMRig
2025-11-07 01:55:00 +07:00
parent 4cdc35f966
commit 5115597e7f
2 changed files with 64 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
/* XMRig
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <support@xmrig.com>
* Copyright (c) 2018-2025 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2025 XMRig <https://github.com/xmrig>, <support@xmrig.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -31,13 +31,10 @@ class LinuxMemory
{
public:
static bool reserve(size_t size, uint32_t node, size_t hugePageSize);
static bool write(const char *path, uint64_t value);
static int64_t read(const char *path);
};
} /* namespace xmrig */
} // namespace xmrig
#endif /* XMRIG_LINUXMEMORY_H */
#endif // XMRIG_LINUXMEMORY_H