Skip to content

Instantly share code, notes, and snippets.

@cyring
Created May 21, 2023 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyring/be73a8afee6983bf39fb96c287f646d7 to your computer and use it in GitHub Desktop.
Save cyring/be73a8afee6983bf39fb96c287f646d7 to your computer and use it in GitHub Desktop.
XMRig
XMRig/6.19.2 gcc/12.2.1
@cyring
Copy link
Author

cyring commented May 21, 2023

(16896.7 h/s)

$ cat /proc/cmdline
hugepagesz=1G hugepages=4

$ cat /etc/sysctl.d/99-sysctl.conf
vm.nr_hugepages=32

$ xmrig --bench=1M --config=/etc/xmrig/xmrig.conf --randomx-wrmsr=-1 --randomx-no-rdmsr --huge-pages-jit --randomx-1gb-pages --cpu-memory-pool=-1 --cpu-no-yield
 * ABOUT        XMRig/6.19.2 gcc/12.2.1
 * LIBS         libuv/1.44.2 OpenSSL/3.0.8 hwloc/2.9.1
 * HUGE PAGES   supported
 * 1GB PAGES    supported
 * CPU          AMD Ryzen 9 3950X 16-Core Processor (1) 64-bit AES
                L2:8.0 MB L3:64.0 MB 16C/32T NUMA:1
 * MEMORY       5.3/31.3 GB (17%)
 * DONATE       0%
 * ASSEMBLY     auto:ryzen
 * POOL #1      benchmark algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2023-05-21 11:20:50.123]  bench    start benchmark hashes 1M algo rx/0
[2023-05-21 11:20:50.123]  cpu      use argon2 implementation AVX2
[2023-05-21 11:20:50.123]  randomx  init dataset algo rx/0 (32 threads) seed 0000000000000000...
[2023-05-21 11:20:50.336]  randomx  allocated 3072 MB (2080+256) huge pages 100% 3/3 +JIT (213 ms)
[2023-05-21 11:20:51.395]  randomx  dataset ready (1059 ms)
[2023-05-21 11:20:51.395]  cpu      use profile  rx  (32 threads) scratchpad 2048 KB
[2023-05-21 11:20:51.404]  cpu      READY threads 32/32 (32) huge pages 97% 31/32 memory 65536 KB (9 ms)
[2023-05-21 11:21:50.580]  bench    benchmark finished in 59.183 seconds (16896.7 h/s) hash sum = 898B6E0431C28A6B
[2023-05-21 11:21:50.580]  bench    press Ctrl+C to exit
[2023-05-21 11:21:50.944]  cpu      stopped (1 ms)

@cyring
Copy link
Author

cyring commented May 21, 2023

(16931.4 h/s)

$ cat /proc/cmdline 
hugepagesz=1G hugepages=3
$ sysctl vm.nr_hugepages
vm.nr_hugepages = 32
$ cat /sys/devices/system/node/node0/hugepages/hugepages-1048576kB/nr_hugepages 
3
$ cat /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages 
32

$ xmrig --bench=1M --config=/etc/xmrig/xmrig.conf --randomx-wrmsr=-1 --randomx-no-rdmsr --huge-pages-jit --randomx-1gb-pages --hugepage-size=-1 --cpu-memory-pool=-1 --cpu-no-yield
 * ABOUT        XMRig/6.19.2 gcc/12.2.1
 * LIBS         libuv/1.44.2 OpenSSL/3.0.8 hwloc/2.9.1
 * HUGE PAGES   supported
 * 1GB PAGES    supported
 * CPU          AMD Ryzen 9 3950X 16-Core Processor (1) 64-bit AES
                L2:23.5 MB L3:560.0 MB 16C/32T NUMA:1
 * MEMORY       4.6/31.3 GB (15%)
 * DONATE       0%
 * ASSEMBLY     auto:ryzen
 * POOL #1      benchmark algo auto
 * COMMANDS     hashrate, pause, resume, results, connection
 * OPENCL       disabled
 * CUDA         disabled
[2023-05-21 18:47:39.372]  bench    start benchmark hashes 1M algo rx/0
[2023-05-21 18:47:39.372]  cpu      use argon2 implementation AVX2
[2023-05-21 18:47:39.372]  randomx  init dataset algo rx/0 (32 threads) seed 0000000000000000...
[2023-05-21 18:47:39.587]  randomx  allocated 3072 MB (2080+256) huge pages 100% 3/3 +JIT (216 ms)
[2023-05-21 18:47:40.655]  randomx  dataset ready (1067 ms)
[2023-05-21 18:47:40.655]  cpu      use profile  rx  (32 threads) scratchpad 2048 KB
[2023-05-21 18:47:40.676]  cpu      READY threads 32/32 (32) huge pages 97% 31/32 memory 65536 KB (21 ms)
[2023-05-21 18:48:39.719]  bench    benchmark finished in 59.062 seconds (16931.4 h/s) hash sum = 898B6E0431C28A6B
[2023-05-21 18:48:39.719]  bench    press Ctrl+C to exit
[2023-05-21 18:48:40.171]  cpu      stopped (1 ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment