xmr-stak-cpu icon indicating copy to clipboard operation
xmr-stak-cpu copied to clipboard

MEMORY ALLOC FAILED: VirtualAlloc failed.

Open PQFitz opened this issue 7 years ago • 10 comments

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 }, ],

PQFitz avatar May 11 '17 06:05 PQFitz

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

voidnecron avatar May 12 '17 12:05 voidnecron

Same on Mac can someone help me?

a4arpan avatar Jun 15 '17 07:06 a4arpan

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

puchat3k avatar Jun 17 '17 14:06 puchat3k

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.

imrecsoka avatar Jun 17 '17 23:06 imrecsoka

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

ZombiePm avatar Sep 22 '17 19:09 ZombiePm

TRY

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

^^

thx me => Wms22R5oyfhBseVksNMNAtGxUs9zJRdk4Z2gwmopsu3yAiAAabcUvyYh4tGtH1Zy2xSBsmBZdAQck669zt5kJ7vS2vVQ4qmm6

ReekoD avatar Sep 22 '17 19:09 ReekoD

"use_slow_memory" : "always" helps me

ZombiePm avatar Sep 22 '17 19:09 ZombiePm

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

ReekoD avatar Sep 22 '17 19:09 ReekoD

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.

alextrezvy avatar Jan 30 '18 08:01 alextrezvy

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.

Pixels303 avatar Feb 02 '18 04:02 Pixels303