Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to allocate RandomX datasets and cpu cant bind memory but i have 300gb of free ram #1518

Closed
km7670672 opened this issue Jan 26, 2020 · 11 comments
Labels

Comments

@km7670672
Copy link

failed to allocate RandomX datasets and cpu cant bind memory but i have 300gb of free ram

My cpu is intel xeon gold 5118 i have 2 of them in one server but i dont knew how to fix it

@SChernykh
Copy link
Contributor

Can you post your config and miner console full output?

@km7670672
Copy link
Author

2020-01-27 10:45:18 (278 KB/s) - 'xmrig-5.5.1-xenial-x64.tar.gz.1' saved [4380571/4380571]

xmrig-5.5.1/
xmrig-5.5.1/config.json
xmrig-5.5.1/SHA256SUMS
xmrig-5.5.1/xmrig-notls
xmrig-5.5.1/xmrig

@SChernykh
Copy link
Contributor

Try to run xmrig as root, if it doesn't help - disable NUMA in config.

@km7670672
Copy link
Author

I have already tried to run as root not helped and how can i disable numa in the config i think i have tried but also doesnt worked

@km7670672
Copy link
Author

  • ABOUT XMRig/5.5.1 gcc/5.4.0
  • LIBS libuv/1.34.0 OpenSSL/1.1.1d hwloc/2.1.0
  • HUGE PAGES supported
  • 1GB PAGES disabled
  • CPU Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz (2) x64 AES
    L2:24.0 MB L3:33.0 MB 24C/48T NUMA:2
  • MEMORY 45.5/125.6 GB (36%)
  • DONATE 1%
  • ASSEMBLY auto:intel
  • POOL 128tx exploit #1 eu-de02.miningrigrentals.com:3333 algo rx/sfx
  • COMMANDS hashrate, pause, resume
  • OPENCL disabled
  • CUDA disabled
    [2020-01-27 11:27:38.722] net use pool eu-de02.miningrigrentals.com:3333 TLSv1.2 165.227.153.169
    [2020-01-27 11:27:38.722] net fingerprint (SHA-256): "af48a22249072cc5e508a28cf24612d06c1c583672f36c705b13a126c8da50fa"
    [2020-01-27 11:27:38.722] net new job from eu-de02.miningrigrentals.com:3333 diff 175004 algo rx/0 height 2020381
    [2020-01-27 11:27:38.725] msr msr kernel module is not available
    [2020-01-27 11:27:38.725] rx init dataset algo rx/0 (48 threads) seed a3a2a9049d3bc86d...
    [2020-01-27 11:27:38.725] rx allocated 2336 MB (2080+256) huge pages 0% 0/1168 +JIT (0 ms)
    [2020-01-27 11:27:40.978] rx dataset ready (2252 ms)
    [2020-01-27 11:27:40.978] cpu use profile rx (24 threads) scratchpad 2048 KB
    [2020-01-27 11:27:40.980] CPU #00 warning: "can't bind memory"
    [2020-01-27 11:27:41.000] CPU The new software AES algo 4 is slower than the old one #2 warning: "can't bind memory"
    [2020-01-27 11:27:41.020] CPU windows rebuild #4 warning: "can't bind memory"
    [2020-01-27 11:27:41.041] CPU Best miner yet : request for a additional featire #6 warning: "can't bind memory"
    [2020-01-27 11:27:41.061] CPU help me thanks #8 warning: "can't bind memory"
    [2020-01-27 11:27:41.081] CPU Wrong detect AES #10 warning: "can't bind memory"
    [2020-01-27 11:27:41.102] CPU . #12 warning: "can't bind memory"
    [2020-01-27 11:27:41.122] CPU DIfferent #14 warning: "can't bind memory"
    [2020-01-27 11:27:41.142] CPU gcc-win64 compile gives hasrate drop #16 warning: "can't bind memory"
    [2020-01-27 11:27:41.162] CPU Feature-request: show difficulty for the found share (logging) #18 warning: "can't bind memory"
    [2020-01-27 11:27:41.182] CPU cpu affinity setting bug #20 warning: "can't bind memory"
    [2020-01-27 11:27:41.202] CPU miner does not work #22 warning: "can't bind memory"
    [2020-01-27 11:27:41.223] CPU 128tx exploit #1 warning: "can't bind memory"
    [2020-01-27 11:27:41.243] CPU More detailed instructions to build on Windows #3 warning: "can't bind memory"
    [2020-01-27 11:27:41.263] CPU I can not make #5 warning: "can't bind memory"
    [2020-01-27 11:27:41.283] CPU Compiling on macOS #7 warning: "can't bind memory"
    [2020-01-27 11:27:41.303] CPU About static. #9 warning: "can't bind memory"
    [2020-01-27 11:27:41.324] CPU Compile for android  #11 warning: "can't bind memory"
    [2020-01-27 11:27:41.344] CPU Can not build xmrig under windows xp #13 warning: "can't bind memory"
    [2020-01-27 11:27:41.364] CPU Add option for log file path. #15 warning: "can't bind memory"
    [2020-01-27 11:27:41.384] CPU New hasharate logging creates extra line after getting 15m avg value #17 warning: "can't bind memory"
    [2020-01-27 11:27:41.405] CPU New version hashrate drop #19 warning: "can't bind memory"
    [2020-01-27 11:27:41.425] CPU make: *** [Makefile:84: all] Error 2 #21 warning: "can't bind memory"
    [2020-01-27 11:27:41.445] CPU Compatibility #23 warning: "can't bind memory"
    [2020-01-27 11:27:41.446] cpu READY threads 24/24 (24) huge pages 0% 0/24 memory 49152 KB (468 ms)
    [2020-01-27 11:27:56.093] cpu accepted (1/0) diff 175004 (298 ms)
    | CPU # | AFFINITY | 10s H/s | 60s H/s | 15m H/s |
    | 0 | 0 | 262.3 | n/a | n/a |
    | 1 | 2 | 263.9 | n/a | n/a |
    | 2 | 4 | 267.2 | n/a | n/a |
    | 3 | 6 | 268.5 | n/a | n/a |
    | 4 | 8 | 264.2 | n/a | n/a |
    | 5 | 10 | 267.5 | n/a | n/a |
    | 6 | 12 | 273.2 | n/a | n/a |
    | 7 | 14 | 265.2 | n/a | n/a |
    | 8 | 16 | 264.5 | n/a | n/a |
    | 9 | 18 | 262.0 | n/a | n/a |
    | 10 | 20 | 272.9 | n/a | n/a |
    | 11 | 22 | 263.2 | n/a | n/a |
    | 12 | 1 | 266.2 | n/a | n/a |
    | 13 | 3 | 250.2 | n/a | n/a |
    | 14 | 5 | 269.4 | n/a | n/a |
    | 15 | 7 | 266.7 | n/a | n/a |
    | 16 | 9 | 267.8 | n/a | n/a |
    | 17 | 11 | 266.7 | n/a | n/a |
    | 18 | 13 | 252.2 | n/a | n/a |
    | 19 | 15 | 265.3 | n/a | n/a |
    | 20 | 17 | 268.7 | n/a | n/a |
    | 21 | 19 | 265.3 | n/a | n/a |
    | 22 | 21 | 267.7 | n/a | n/a |
    | 23 | 23 | 266.4 | n/a | n/a |
    | - | - | 6367.3 | n/a | n/a |
    [2020-01-27 11:28:11.461] speed 10s/60s/15m 6367.3 n/a n/a H/s max 6381.2 H/s

But i again doesnt mine on all threads

@SChernykh
Copy link
Contributor

24 threads is correct for dual Xeon Gold 5118. You should enable huge pages, maybe this is why you get "can't bind memory" errors.

@Spudz76
Copy link
Contributor

Spudz76 commented Jan 27, 2020

Check ulimit -l and ensure it has not been turned down to moronic low levels.
Check hugepages.
What OS - I'm going to go ahead and guess CentOS since it's usually the one with moronic low defaults and "secure" as in won't run anything.

@km7670672
Copy link
Author

Check result is 64 and od is ubuntu 16.4 lts

@xmrig
Copy link
Owner

xmrig commented Feb 1, 2020

"can't bind memory" error means NUMA node where CPU located has no local memory, please check memory sticks installed in correct slots.
Thank you.

@xmrig xmrig added the question label Feb 1, 2020
@xmrig xmrig closed this as completed Feb 23, 2020
@kidigital101
Copy link

overheating
shutdown
open pc
clean heatsink and fan
cpu or memory burning up

@lexo-mfleuti
Copy link

I fiddled with this now for several hours and the solution is most probably not software related. I documented it here:
https://www.lexo.ch/blog/2022/06/solved-xmrig-cpu-xx-warning-cant-bind-memory-xmrig-does-not-run-on-all-cpu-cores/

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants