xmrig / xmrig-nvidia

Monero (XMR) NVIDIA miner
GNU General Public License v3.0
699 stars 260 forks source link

XMRIG keeps crashing at start! #159

Open DRiccardi92 opened 6 years ago

DRiccardi92 commented 6 years ago

Hello.

My XMRIG Nvidia keeps crashing when i start it.

My config file:

{ "algo": "cryptonight", "background": false, "colors": true, "donate-level": 1, "log-file": null, "print-time": 60, "retries": 5, "retry-pause": 5, "threads": [ { "index": 0, "threads": 64, "blocks": 18, "bfactor": 6, "bsleep": 25, "affine_to_cpu": false }, { "index": 1, "threads": 32, "blocks": 15, "bfactor": 6, "bsleep": 25, "affine_to_cpu": false }, { "index": 2, "threads": 32, "blocks": 15, "bfactor": 6, "bsleep": 25, "affine_to_cpu": false } ], "pools": [ { "url": "de.minexmr.com:5555", "user": "xxxxx", "pass": "x", "keepalive": true, "nicehash": false, "variant": 1 } ], "api": { "port": 0, "access-token": null, "worker-id": null } }

0=GTX 1060 3gb 1+2=GTX 750 Ti

start command: xmrig-nvidia.exe --donate-level 1 -o de.minexmr.com:5555 -u wallet -p x --variant 1 -k

C:\Users\Rauch\Downloads\xmrig-nvidia-2.6.1-cuda9-win64>xmrig-nvidia.exe --donat e-level 1 -o de.minexmr.com:5555 -u wallet -p x --variant 1 -k

Is XMRIG overwriting my ThreadsxBlocks config? Because of this 34x27 etc.

Thanks in Advance!

Edit: Trying to mine monero7

GrannyCryptomaster commented 6 years ago

That command line isn't working with xmrig.

Please... Move the folder of the miner in a dedicated folder in root, like c:\miners\xmrig... The specific Windows folders have limitations and can block miners from working properly.

Use "variant" : -1

For GTX 3GB use TxB 32x36. I see you use windows. Please use bfactor 8 and bsleep 100 for all cards. You will see increased and stable hashrates. For 750 Ti, you have 640 CUDA cores, so let's try to use TxB = 640. B should be SMX x3 or x4 (better more blocks than more threads). So try TxB 32x20. (One thread is assigned to one core). You should also meet the requested video memory for all those threads. Cryptonight uses 2MB/thread (CN-heavy uses 4MB/thread). Windows also reservs some memory on each card (20%). So TxB 32x20 should work on 2GB cards. If not, try to use B 15, 10 or 5.

Don't use parameters in command line; it's confusing and can create errors. Put all parameters in config.json. If you want different configs, use more files and just change their names to config.json before start (or use more folders). Use the start.cmd as it comes with the miner, in the zip file.

More reading: https://github.com/xmrig/xmrig-nvidia/issues/100

DRiccardi92 commented 6 years ago

Hello granny, wow that really helped. It starts now with about 1130 H/s.

Now theres another problem: When the Miner is running, there is a really high latency time on my internet connection (Bout 10.000ms - 30.000 ms). And my Internet connection isnt working properly. Is that a router problem? Or something bad in my configs? Xmr-Stak-Nvidia works good, thats with the new algo only.

GrannyCryptomaster commented 6 years ago

The high latency is not caused by the miner. Is caused by a bad router, bad wiring or something wrong at ISP side, or by a long distance (many nodes) from you to the pool server. For start: 1.Check if there is a new firmware available for your router. Install. Reset the settings to default. 2.With or without new firmware, try reseting the settings of the router from it's GUI (before doing these 2 steps... write down your configs, or do screen shots, to be able to make the proper settings). 3.Do some speed tests on speedtest.net. You should have 0 packet loss. 4.Ping google.com and some local sites (at command prompt: ping -n 25 -l 128 www.google.com). 5.If all looks ok, now you must try to find the best pool server. One rule is to choose the pool that's closest to you as geographical position, or one in your country. Choose a few pools with higher hashrate and good reputation. For best results, ping all these pools and choose the one with the lowest ping.

... and change the password on that router and the password for wifi. The default one (the one that is on router's back, like... user: admin, password: 12345) is as bad as not having one. Someone can hack it and install a miner (LOL) or can crack the wifi password (if it's too short) and use your connection.

metalurgus commented 6 years ago

There is a chance that you have software network interface (like vpn), and high cpu load caused by miner eill result in lower network interface priority, which can cause such latency

GrannyCryptomaster commented 6 years ago

Yes, I forgot... don't use VPN when mining.

DRiccardi92 commented 6 years ago

Okay, I did some speedtests. Ping is between 13-26ms.

Pool is minexmr.com. Pinging de.minexmr.com gets 435ms

cpu load is 0% while mining. Primary GPU is Onboard gpu of CPU, so that i can mine without lagging OS.

This doesnt happen with other Miners like Nicehash, XMR-Stak-Nvidia, CCMiner, etc.

The Problem is, Im forced to use XMRStak (New) or XMRig, cause only them are able to mine the new Monero PoW Algo. :/

Its just confusing that I cant visit any Sites while XMRig is running, i get timeout all the time. The Shares (Accepted) Take between 100ms (Normal) up to 50.000 ms (slow) If i close the miner, everything works perfect (In terms of internet).

GrannyCryptomaster commented 6 years ago

I don't know what can cause it... Maybe is the miner that dosen't like something in your rig. I did't have any such problems...

I recommend uninstalling all Geforce and CUDA drivers, and fresh-install: 1.vcredist x86 and x64 all versions from 2012 to 2017. 2.Geforce driver 388.71 (only the graphics driver). 3.CUDA 9.1 and all patches. Use xmrig-cuda9.1 and Windows x64bit. Windows update disabled during mining.

You don't need port forwarding for minig. You need that only for monitoring from internet.

GrannyCryptomaster commented 6 years ago

Also, I remember I got such highs once, when I overclocked to much. Try with stock settings first. Then use for GTX 1060 core at 1999 till 2050, and mem +450/+500 on hynix, or higher if it has Samsung memory.

ghost commented 6 years ago

I think that bsleep of 100 creates unnecessary delay. I've used bf 6 and bsleep of 25 on cards that are not connected to displays.

DRiccardi92 commented 6 years ago

Ive got a solution!

I fixed it by increasing Bfactor to 10-12, now my Internet works while mining. I dont know why, but it seems that the bfactor made everything stuck in my internet. :)

GrannyCryptomaster commented 6 years ago

I already told you to increase bfactor and bsleep to 8x100. 6x25 is too agresive for Windows. And not just for the card with the monitor cable in it, like some sais... All the cards need this.