LUX-Core / rx2-cpuminer

rx2 cpu miner
Other
7 stars 5 forks source link

Cache allocation failed - Linux Compile #2

Open WyvernTKC opened 3 years ago

WyvernTKC commented 3 years ago

[2021-02-18 22:47:19] Starting Stratum on stratum+tcp://pool.letshash.it:9009 [2021-02-18 22:47:19] 5 miner threads started, using 'rx2' algorithm. [2021-02-18 22:47:22] Stratum difficulty set to 0.00128 (0.00001) [2021-02-18 22:47:22] rx2 block 1613888, diff 0.018 init rx2 seed = 00000000000570792358fd5e43f877c0fd19eaefc30812c0a1c0fb1ad55c6b62 Cache allocation failed cpuminer: RandomX/src/randomx.cpp:120: void randomx_init_cache(randomx_cache, const void, size_t): Assertion `cache != nullptr' failed. Aborted

djm34 commented 3 years ago

You need to give the command line you are using.... Are you using --rdx-large-page true ?

If yes, on linux you need to set: sudo sysctl -w vm.nr_hugepages=3280 (or higher, I advise to check how much memory cpuminer is using on your system...

to make that setting permanent: udo bash -c "echo vm.nr_hugepages=3280 >> /etc/sysctl.conf"

BeaconStudio4 commented 3 years ago

same issue.. changing sysctl page size did not work. I tried a number of --rdx settings.. always errors on line 120. Also, had to revert a few Windows MSR settings to compile in Ubuntu 20.04.2 with the last commit; see issue #10.

djm34 commented 3 years ago

use the previous version (without msr support) for linux, this will be fixed soon. regarding the "settings" you need to give more details about those which fails. please don't be like the other guy, give the command line you used, so there is a chance to address your question correctly. (if you're posting just for venting without expecting an answer, please do that on discord :D )

bkeevil commented 3 years ago

Using version 1.1.0

./cpuminer -a rx2 -o stratum+tcp://rx2.na.mine.zergpool.com:8335 -t 4 --rdx-large-page false -u <wallet_address> -p c=BCH

gives:

Cache allocation failed
cpuminer: RandomX/src/randomx.cpp:120: void randomx_init_cache(randomx_cache*, const void*, size_t): Assertion `cache != nullptr' failed.

EDIT: I got the same error on 0.0.1 and 1.2.0-alpha