fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

Increasing bfactor and bsleep gives 0 hashrate on GPU #1353

Closed phxn closed 6 years ago

phxn commented 6 years ago

I'm using a GTX970 with the following settings, this enables me to use my PC normally.

{ "index" : 0, "threads" : 13, "blocks" : 39, "bfactor" : 12, "bsleep" : 25, "affine_to_cpu" : false, "sync_mode" : 3, },

When I want to watch more intensive video (madVR) I try to increase the bfactor and bsleep to 25 and 100 respectively. This used to reduce the load enough for me to watch 1080p videos in MPC-HC without issue, but in this latest version my GPU is giving a 0 hashrate with these settings.

Any idea what I could be doing wrong here?

Cheers

Spudz76 commented 6 years ago

I usually have nicer luck with sync_mode:0 and sometimes locking affinity helps. Are you running --noCPU so it's just the one GPU thread?

I have noticed some users launching with start /low which sets the priority of the processes so they should wait for more important MPC-HC activity to happen before getting in the way.

Spudz76 commented 6 years ago

My Win7 machine will shut off (bad PSU) if I run xmr-stak on the only GTX970/Windows combo I have available right now... or I would test some things

Spudz76 commented 6 years ago

Previously though, I did experience similar using the same ~125 or so for bsleep worked out well for at least 720p in PotPlayer / I think also fine for 1080p / but that was on my former GTX770 and before this PSU got angry/toastier (also had CPU mining running on a few cores). BF4 shuts off the whole computer too, if it's on anything but low/performance mode. So I could run xmr-stak but only on lame intensity which will not get in the way of video playback because it's so slowed down anyway...

phxn commented 6 years ago

Thank you for the reply @Spudz76.

No I always run the CPU miner as my processor is more than powerful enough to mine and carry out regular desktop tasks.

I will try the sync_mode setting and the low priority mode and see how it goes. In the past when increasing bsleep and bfactor I'd see only a slightly lower hashrate but it wouldn't affect video playback.

JerichoJones commented 6 years ago

@phxn Is this resolved?

phxn commented 6 years ago

@JerichoJones nope :(

psychocrypt commented 6 years ago

please set bfactor to 12 and post the log of the minet from the first 3min. Please press also the key h to show the hash rate report

phxn commented 6 years ago

Here it is, I just noticed I'm getting 0H/s on some...?


xmr-stak 2.4.3 26a5d65f

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on NVIDIA mining code by KlausT and psychocrypt. Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

[2018-04-23 20:00:30] : Mining coin: monero7 [2018-04-23 20:00:30] : Starting NVIDIA GPU thread 0, no affinity. [2018-04-23 20:00:31] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2018-04-23 20:00:31] : WARNING: backend AMD (OpenCL) disabled. [2018-04-23 20:00:31] : Starting 1x thread, affinity: 0. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 2. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 4. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 6. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 8. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 10. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 1. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Starting 1x thread, affinity: 3. [2018-04-23 20:00:31] : hwloc: memory pinned [2018-04-23 20:00:31] : Fast-connecting to pool.supportxmr.com:7777 pool ... [2018-04-23 20:00:31] : Pool pool.supportxmr.com:7777 connected. Logging in... [2018-04-23 20:00:32] : Difficulty changed. Now: 25000. [2018-04-23 20:00:32] : Pool logged in. [2018-04-23 20:00:36] : Difficulty changed. Now: 42857. [2018-04-23 20:00:36] : New block detected. [2018-04-23 20:00:40] : Result accepted by the pool. [2018-04-23 20:01:19] : Result accepted by the pool. HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 32.1 | (na) | (na) | 1 | 37.5 | (na) | (na) | | 2 | 41.6 | (na) | (na) | 3 | 38.8 | (na) | (na) | | 4 | 40.1 | (na) | (na) | 5 | 39.8 | (na) | (na) | | 6 | 35.1 | (na) | (na) | 7 | 34.6 | (na) | (na) | Totals (CPU): 299.5 0.0 0.0 H/s

HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | 404.9 | (na) | (na) | Totals (NVIDIA): 404.9 0.0 0.0 H/s

Totals (ALL): 704.4 0.0 0.0 H/s Highest: 728.2 H/s

[2018-04-23 20:01:32] : Result accepted by the pool. [2018-04-23 20:01:33] : Result accepted by the pool. [2018-04-23 20:01:36] : Difficulty changed. Now: 79110. [2018-04-23 20:01:36] : New block detected. [2018-04-23 20:02:02] : Result accepted by the pool. [2018-04-23 20:02:26] : New block detected. HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 33.8 | 32.2 | (na) | 1 | 38.8 | 37.7 | (na) | | 2 | 43.3 | 41.7 | (na) | 3 | 40.2 | 38.9 | (na) | | 4 | 41.9 | 40.4 | (na) | 5 | 41.5 | 40.3 | (na) | | 6 | 36.0 | 34.8 | (na) | 7 | 35.7 | 34.6 | (na) | Totals (CPU): 311.1 300.6 0.0 H/s

HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | 403.8 | 401.5 | (na) | Totals (NVIDIA): 403.8 401.5 0.0 H/s

Totals (ALL): 714.9 702.0 0.0 H/s Highest: 728.2 H/s

[2018-04-23 20:02:36] : Difficulty changed. Now: 60120. [2018-04-23 20:02:36] : New block detected. HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 33.9 | 35.2 | (na) | 1 | 39.4 | 40.1 | (na) | | 2 | 43.6 | 44.8 | (na) | 3 | 40.8 | 41.6 | (na) | | 4 | 42.5 | 43.4 | (na) | 5 | 42.3 | 43.0 | (na) | | 6 | 36.5 | 37.1 | (na) | 7 | 35.9 | 36.5 | (na) | Totals (CPU): 314.8 321.6 0.0 H/s

HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | 403.2 | 403.9 | (na) | Totals (NVIDIA): 403.2 403.9 0.0 H/s

Totals (ALL): 718.0 725.5 0.0 H/s Highest: 728.8 H/s

[2018-04-23 20:03:36] : Difficulty changed. Now: 40620. [2018-04-23 20:03:36] : New block detected.

psychocrypt commented 6 years ago

Where do you god zero hash rate. I can see 700h/s in total.

phxn commented 6 years ago

Totals (NVIDIA): 403.2 403.9 0.0 H/s

I usually see 800H/s+ total.

If I raise bfactor/bsleep to 25/100 it doesn't seem to use my GPU at all.

psychocrypt commented 6 years ago

Does this mean the issue is solved?

phxn notifications@github.com schrieb am Mo., 23. Apr. 2018, 21:09:

Totals (NVIDIA): 403.2 403.9 0.0 H/s

I usually see 800H/s+

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak/issues/1353#issuecomment-383688791, or mute the thread https://github.com/notifications/unsubscribe-auth/AYsxtlfkAW3NAOI2n0RnSyYY4MWJO_t4ks5tricAgaJpZM4TLPqi .

phxn commented 6 years ago

No? I need to be able to lessen the load on my GPU sometimes, for that I need to raise bsleep and bfactor. When I raise bsleep and bfactor I get 0H/s from my GPU and then it appears to stop doing anything.


xmr-stak 2.4.3 26a5d65f

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on NVIDIA mining code by KlausT and psychocrypt. Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

[2018-04-23 20:19:26] : Mining coin: monero7 [2018-04-23 20:19:26] : Starting NVIDIA GPU thread 0, no affinity. [2018-04-23 20:19:26] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. [2018-04-23 20:19:26] : WARNING: backend AMD (OpenCL) disabled. [2018-04-23 20:19:26] : Starting 1x thread, affinity: 0. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 2. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 4. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 6. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 8. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 10. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 1. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Starting 1x thread, affinity: 3. [2018-04-23 20:19:26] : hwloc: memory pinned [2018-04-23 20:19:26] : Fast-connecting to pool.supportxmr.com:7777 pool ... [2018-04-23 20:19:26] : Pool pool.supportxmr.com:7777 connected. Logging in... [2018-04-23 20:19:27] : Difficulty changed. Now: 25000. [2018-04-23 20:19:27] : Pool logged in. [2018-04-23 20:20:12] : Difficulty changed. Now: 20000. [2018-04-23 20:20:12] : New block detected. HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 29.4 | (na) | (na) | 1 | 34.9 | (na) | (na) | | 2 | 40.9 | (na) | (na) | 3 | 38.6 | (na) | (na) | | 4 | 38.7 | (na) | (na) | 5 | 38.8 | (na) | (na) | | 6 | 34.3 | (na) | (na) | 7 | 38.6 | (na) | (na) | Totals (CPU): 294.2 0.0 0.0 H/s

HASHRATE REPORT - NVIDIA | ID | 10s | 60s | 15m | | 0 | (na) | (na) | (na) | Totals (NVIDIA): 0.0 0.0 0.0 H/s

Totals (ALL): 294.2 0.0 0.0 H/s Highest: 0.0 H/s

psychocrypt commented 6 years ago

please run the miner longer than 1 min. It could be that your gpu is now so slow that the 10sec hash rate can not be calculated. please post your nvidia.txt files. I am not sure if bfactor 15 is possible.

phxn commented 6 years ago

I ran it for 3 minutes, it stops posting hash rates, pressing H does nothing to show hashrates.

So, is there any bfactor/bsleep number I can use on a GTX970 that will slightly lessen the load? I use 12/25 for "max performance".

phxn commented 6 years ago

nvidia.txt

/*

"gpu_threads_conf" : [ // gpu: GeForce GTX 970 architecture: 52 // memory: 3373/4096 MiB // smx: 13 { "index" : 0, "threads" : 13, "blocks" : 39, "bfactor" : 12, "bsleep" : 25, "affine_to_cpu" : false, "sync_mode" : 3, },

],

Spudz76 commented 6 years ago

I tune for lowest bfactor possible, and turn up the bsleep (125+ms) to give windows time to do things in between hashkernel execs. Large bfactor (over 6) has never worked properly for me, I don't think that's possible. Essentially if you already have a low diff from the pool plus you chop that up into divide-by-bfactor chunks, you end up doing like 100 nonces per kernel run, which probably returns faster than expected (too small) and ends up in race condition territory.

Also you are introducing bfactor*bsleep of doing nothing for every work round. So eventually the duty cycle is doing mostly no work and a bunch of waiting.