fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

MEMORY ALLOC FAILED: VirtualAlloc failed. #105

Open PQFitz opened 7 years ago

PQFitz commented 7 years ago

Hi Bro,

Windows Server 2016 e3 2683 v3 *2

[2017-05-11 14:05:58] : Starting single thread, affinity: 0. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 2. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 4. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 6. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 8. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 10. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 12. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 14. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 16. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 18. [2017-05-11 14:05:58] : Starting single thread, affinity: 20. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 22. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 24. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 26. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 28. [2017-05-11 14:05:58] : Starting single thread, affinity: 30. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 32. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed. [2017-05-11 14:05:58] : Starting single thread, affinity: 34. [2017-05-11 14:05:58] : MEMORY ALLOC FAILED: VirtualAlloc failed.

config:

"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 16 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 18 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 24 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 26 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 28 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 30 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 32 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 34 }, ],

voidnecron commented 7 years ago

Did you adjust the gpedit.msc settings with Lock Pages as the config.txt suggests?

a4arpan commented 7 years ago

Same on Mac can someone help me?

puchat3k commented 7 years ago

I have same issue. Windows 10, 32GBs of RAM. I did adjust the Lock Pages policy.

imrecsoka commented 7 years ago

I have noticed that by the time the benchmarking is done for multipool miner or nicehash miner then i get the MEMORY ALLOC FAILED: VirtualAlloc failed. errors and then the results are skewed. How is it possible to completely always lock the memory or whatever the term is ? I have allocated my user access to this i the local policy editor area... its just that after a few attempts of benchmarks runs then the errors come through almost as if there is a memory leak.

ZombiePm commented 6 years ago

image not help me ntrights -u %USERNAME% +r SeLockMemoryPrivilege

ReekoD commented 6 years ago

TRY

"use_slow_memory" : "warn" or "use_slow_memory" : "always"

^^

thx me => Wms22R5oyfhBseVksNMNAtGxUs9zJRdk4Z2gwmopsu3yAiAAabcUvyYh4tGtH1Zy2xSBsmBZdAQck669zt5kJ7vS2vVQ4qmm6

ZombiePm commented 6 years ago

"use_slow_memory" : "always" helps me

ReekoD commented 6 years ago

Я молю тебя, мой друг

alextrezvy commented 6 years ago

I have the same warning: "MEMORY ALLOC FAILED: VirtualAlloc failed". I've verified the user is allowed to lock pages in 'gpedit' console. 2ReekoD: bad joke.

Pixels303 commented 6 years ago

1: disable user account control setting by sliding the slider to the bottom, available from control panel/user accounts. 2: run nicehashminerlegacy.exe and bin\xmr-stak\xmr-stak.exe as administrator by selecting properties of those executables and clicking the run as administrator checkbox in the compatibility tab voiala, works.