Closed entak closed 4 years ago
I have the same error, but only on machine with AMD CPU. Intel CPU does not have this error.
Few more observations: -I do have it on Intel CPU as well - i5 8500, AMD is Ryzen 3900X -lowering number of mining threads has no effect - tried with single thread -running miner under Win10
I am getting this (MEMORY ALLOC FAILED: VirtualAlloc failed) on GPU (RX560) on an AMD CPU host (FX-8350).
how do you enabled large page support. Try to run sudo sysctl -w vm.nr_hugepages=1280
maybe your number of large pages is to low!
I am using Win OS, so through the Local Security Policy. I didn't find any option to set large pages count there ...
Same problem here, but I noticed that occurs only if I use --noTest parameter.
can you please post the output with and without --noTest
Sure...
WITH --noTest
xmr-stak-rx 1.0.1-rx 7a9361b22
|___/ https://ryo-currency.com |___/
[2019-12-01 19:53:03] : Mining coin: randomx [2019-12-01 19:53:03] : Starting 1x thread, affinity: 2. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 4. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 6. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 1. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 3. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 5. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 7. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 8. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 10. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 12. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 14. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : Starting 1x thread, affinity: 9. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 11. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Starting 1x thread, affinity: 13. [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : hwloc: memory pinned [2019-12-01 19:53:03] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2019-12-01 19:53:03] : Fast-connecting to pool.supportxmr.com:5555 pool ... [2019-12-01 19:53:03] : Pool pool.supportxmr.com:5555 connected. Logging in...
WITHOUT --noTest
xmr-stak-rx 1.0.1-rx 7a9361b22
|___/ https://ryo-currency.com |___/
[2019-12-01 19:56:16] : Mining coin: randomx [2019-12-01 19:56:16] : Starting 1x thread, affinity: 2. [2019-12-01 19:56:16] : hwloc: memory pinned [2019-12-01 19:56:16] : Starting 1x thread, affinity: 4. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 6. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 1. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 3. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 5. [2019-12-01 19:56:16] : hwloc: memory pinned [2019-12-01 19:56:16] : Starting 1x thread, affinity: 7. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 8. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 10. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 12. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 14. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 9. [2019-12-01 19:56:16] : hwloc: memory pinned [2019-12-01 19:56:16] : Starting 1x thread, affinity: 11. [2019-12-01 19:56:16] : Starting 1x thread, affinity: 13. [2019-12-01 19:56:16] : hwloc: memory pinned [2019-12-01 19:56:16] : Fast-connecting to pool.supportxmr.com:5555 pool ... [2019-12-01 19:56:16] : Pool pool.supportxmr.com:5555 connected. Logging in...
Miner is compiled by myself with Visual Studio 2017.
I can confirm that --noTest causes the issue, without this option, memory is allocated fine and hashrate jumps to almost double. --noTest/test outputs attached, but only extra information there is the MEMORY ALLOC error line. I am running pre-compiled binaries.
same issue on windows 10 , i do not use noTest switch.
btw there is a new version 1.0.2 available. I think your issue is not fixed but an issue with memory pinning is fixed.
@psychocrypt I can confirm that even in 1.0.2 issue is not fixed.
thanks for the report, fixed by #2624
It still fails for me on Windows 8.1. (Even without the flag). And that with the latest version.
Why is it mining based on CPU only? It should mine with GPU also. Any help is appreciated.
Since switch to randomx, I see the MEMORY ALLOC FAILED: VirtualAlloc failed for each working cpu thread. HW is the same (was working fine - without the error - before the switch), cpu config auto-generated. I googled a bit and done following: -run miner as admin -checked that locking pages in Local Security Policy is allowed for the account -restarted the system, run the mining as a very first thing -increased Virtual RAM Size (I did not find any tips how much to increase it, so tried to set it to 40GB virtual RAM on machine with 8GB physical RAM, 5 mining threads)
None of the above helped. Any tips? Or logs where can I find closer info about the issue? Thx in advance.