JayDDee / cpuminer-opt

Optimized multi algo CPU miner
Other
776 stars 546 forks source link

cpuminer-opt 3.19.3 / File system error reading verthash.dat #359

Closed UselessGuru closed 2 years ago

UselessGuru commented 2 years ago
cpuminer-Avx2.exe --algo verthash --data-file verthash.dat --url stratum+tcp://verthash.mine.zergpool.com:4534 --user ****************** --pass ********,c=BTC,pl=0 --hash-meter --quiet --threads 5 --api-bind=4000

         **********  cpuminer-opt 3.19.3  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

[2022-01-11 20:52:21] File system error reading verthash.dat
[2022-01-11 20:52:21] FAIL: verthash algorithm failed to initialize

But verthash.dat exists in miner directory.

JayDDee commented 2 years ago

The error means the file was found but wasn't readable. It may be corrupt, delete it and recreate it.

JayDDee commented 2 years ago

Correction, I have reproduced it. Do you have huge pages?

JayDDee commented 2 years ago

I found the bug. If huge pages aren't available memory allocation fails. It works in v3.19.2, will be fixed in v3.19.4.

JayDDee commented 2 years ago

cpuminer-opt-3.19.4 is released, please retest.

JayDDee commented 2 years ago

No problems reported, closing.