mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-05 10:29:38 +00:00
Added command line option --randomx-1gb-pages
This commit is contained in:
parent
f3f75fb788
commit
6163d27f14
5 changed files with 8 additions and 0 deletions
|
@ -65,6 +65,7 @@ CPU backend:
|
||||||
--randomx-init=N threads count to initialize RandomX dataset
|
--randomx-init=N threads count to initialize RandomX dataset
|
||||||
--randomx-no-numa disable NUMA support for RandomX
|
--randomx-no-numa disable NUMA support for RandomX
|
||||||
--randomx-mode=MODE RandomX mode: auto, fast, light
|
--randomx-mode=MODE RandomX mode: auto, fast, light
|
||||||
|
--randomx-1gb-pages use 1GB hugepages for dataset (Linux only)
|
||||||
|
|
||||||
API:
|
API:
|
||||||
--api-worker-id=ID custom worker-id for API
|
--api-worker-id=ID custom worker-id for API
|
||||||
|
|
|
@ -90,6 +90,7 @@ public:
|
||||||
RandomXInitKey = 1022,
|
RandomXInitKey = 1022,
|
||||||
RandomXNumaKey = 1023,
|
RandomXNumaKey = 1023,
|
||||||
RandomXModeKey = 1029,
|
RandomXModeKey = 1029,
|
||||||
|
RandomX1GbPagesKey = 1031,
|
||||||
CPUMaxThreadsKey = 1026,
|
CPUMaxThreadsKey = 1026,
|
||||||
MemoryPoolKey = 1027,
|
MemoryPoolKey = 1027,
|
||||||
YieldKey = 1030,
|
YieldKey = 1030,
|
||||||
|
|
|
@ -165,6 +165,9 @@ void xmrig::ConfigTransform::transform(rapidjson::Document &doc, int key, const
|
||||||
|
|
||||||
case IConfig::RandomXModeKey: /* --randomx-mode */
|
case IConfig::RandomXModeKey: /* --randomx-mode */
|
||||||
return set(doc, kRandomX, "mode", arg);
|
return set(doc, kRandomX, "mode", arg);
|
||||||
|
|
||||||
|
case IConfig::RandomX1GbPagesKey: /* --randomx-1gb-pages */
|
||||||
|
return set(doc, kRandomX, "1gb-pages", true);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_OPENCL
|
# ifdef XMRIG_FEATURE_OPENCL
|
||||||
|
|
|
@ -98,6 +98,8 @@ static const option options[] = {
|
||||||
{ "randomx-init", 1, nullptr, IConfig::RandomXInitKey },
|
{ "randomx-init", 1, nullptr, IConfig::RandomXInitKey },
|
||||||
{ "randomx-no-numa", 0, nullptr, IConfig::RandomXNumaKey },
|
{ "randomx-no-numa", 0, nullptr, IConfig::RandomXNumaKey },
|
||||||
{ "randomx-mode", 1, nullptr, IConfig::RandomXModeKey },
|
{ "randomx-mode", 1, nullptr, IConfig::RandomXModeKey },
|
||||||
|
{ "randomx-1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||||
|
{ "1gb-pages", 0, nullptr, IConfig::RandomX1GbPagesKey },
|
||||||
# endif
|
# endif
|
||||||
# ifdef XMRIG_FEATURE_OPENCL
|
# ifdef XMRIG_FEATURE_OPENCL
|
||||||
{ "opencl", 0, nullptr, IConfig::OclKey },
|
{ "opencl", 0, nullptr, IConfig::OclKey },
|
||||||
|
|
|
@ -88,6 +88,7 @@ static inline const std::string &usage()
|
||||||
u += " --randomx-init=N threads count to initialize RandomX dataset\n";
|
u += " --randomx-init=N threads count to initialize RandomX dataset\n";
|
||||||
u += " --randomx-no-numa disable NUMA support for RandomX\n";
|
u += " --randomx-no-numa disable NUMA support for RandomX\n";
|
||||||
u += " --randomx-mode=MODE RandomX mode: auto, fast, light\n";
|
u += " --randomx-mode=MODE RandomX mode: auto, fast, light\n";
|
||||||
|
u += " --randomx-1gb-pages use 1GB hugepages for dataset (Linux only)\n";
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_HTTP
|
# ifdef XMRIG_FEATURE_HTTP
|
||||||
|
|
Loading…
Reference in a new issue