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

CPU threads massive hashrate differences #640

Closed
jimk98 opened this issue Dec 21, 2017 · 11 comments
Closed

CPU threads massive hashrate differences #640

jimk98 opened this issue Dec 21, 2017 · 11 comments

Comments

@jimk98
Copy link

jimk98 commented Dec 21, 2017

Just curious as to why i have such a massive difference on my thread hashrates. Am i going wrong somewhere?

Any help or input would be appreciated and if any other info is needed ill see what i can do.

HASHRATE REPORT - CPU
| ID | 10s | 60s | 15m | ID | 10s | 60s | 15m |
| 0 | 70.4 | 70.1 | 72.2 | 1 | 15.0 | 15.0 | 14.6 |
| 2 | 15.1 | 15.1 | 14.7 |


"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" : 3 },

],


Basic information

AMD Athlon 860K
GTX 645 & GT 640 (Until new GPUs arrive)

Compile issues

Windows 10 64 Bit

Stability issue

GPU both overclocked
CPU Stock freq and voltages

@bomb-on
Copy link

bomb-on commented Dec 21, 2017

How many threads are reported in your Task Manager/Performance tab?

@jimk98
Copy link
Author

jimk98 commented Dec 21, 2017

Task manager reports 4 cores and 8 logical processors

@psychocrypt
Copy link
Collaborator

psychocrypt commented Dec 21, 2017 via email

@jimk98
Copy link
Author

jimk98 commented Dec 21, 2017

I Don't.

The autoconfig only uses one thread. What is the proper way to go about manually setting it up?

@psychocrypt
Copy link
Collaborator

psychocrypt commented Dec 21, 2017 via email

@bomb-on
Copy link

bomb-on commented Dec 21, 2017

@jimk98 Autogenerated cpu.txt has a nice explanation how to use this:

affine_to_cpu -  This can be either false (no affinity), or the CPU core number. Note that on hyperthreading 
                 systems it is better to assign threads to physical cores. On Windows this usually means selecting 
                 even or odd numbered cpu numbers. For Linux it will be usually the lower CPU numbers, so for a 4 
                 physical core CPU you should select cpu numbers 0-3.

In general, if you are using hyperthreading, you should use even or odd mubers:

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

If you are not using hyperthreading, you will have ordered numbers, but keep in mind to leave at least 1 core free:

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
]

@jimk98
Copy link
Author

jimk98 commented Dec 21, 2017

[2017-12-21 14:58:29] : Start mining: MONERO
[2017-12-21 14:58:29] : Starting NVIDIA GPU thread 0, no affinity.
[2017-12-21 14:58:29] : Starting NVIDIA GPU thread 1, no affinity.
[2017-12-21 14:58:29] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver.
[2017-12-21 14:58:29] : WARNING: backend AMD disabled.
[2017-12-21 14:58:29] : Autoconf FAILED: Failed to allocate a PU.. Create config for a single thread.
[2017-12-21 14:58:29] : CPU configuration stored in file 'cpu.txt'
[2017-12-21 14:58:29] : Starting 1x thread, no affinity.
[2017-12-21 14:58:29] : Fast-connecting to monerohash.com:3333 pool ...
[2017-12-21 14:58:29] : Pool monerohash.com:3333 connected. Logging in...
[2017-12-21 14:58:30] : Difficulty changed. Now: 5000.
[2017-12-21 14:58:30] : Pool logged in.

@PadaKwaak
Copy link

I'm also having the same issue where each time I start up xmr-stak 2.1.0 30888a3 it gives me a different total H/s with my i7 8700k @ 4.8GHz on all cores, 2x 8GB DDR4 @ 3200MHz CL16, Windows 10 x64 v1709.

Most of the time I can get 370H/s and if I'm lucky I can launch it and then get 460H/s. I'm not sure if it has to do with Windows 10's RAM random memory allocation or something of that sort.
So I often restart my PC using shutdown.exe /r /t 0 and even after the restart I may have to try launching xmr-stak twice to get a decent hash rate.

I have not tried Linux yet to see if its more consistent.

My config looks like:

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

For instance here is how it would look for 370H/s:

HASHRATE REPORT - CPU
| ID |  10s |  60s |  15m | ID |  10s |  60s |  15m |
|  0 | 45.8 | (na) | (na) |  1 | 51.2 | (na) | (na) |
|  2 | 89.6 | (na) | (na) |  3 | 51.1 | (na) | (na) |
|  4 | 87.3 | (na) | (na) |  5 | 45.2 | (na) | (na) |
-----------------------------------------------------
Totals:   370.3 (na) (na) H/s
Highest:  371.1 H/s

And this is how it looks at 468.5H/s (via HTTP in daemon mode):

| ID |  10s |  60s |  15m |
|  0 | 75.0 | 73.9 | (na) |
|  1 | 79.8 | 79.2 | (na) |
|  2 | 82.6 | 82.0 | (na) |
|  3 | 80.6 | 79.9 | (na) |
|  4 | 77.4 | 76.4 | (na) |
|  5 | 73.0 | 72.6 | (na) |
-----------------------------------------------------
Totals:   468.5 464.0 (na) H/s
Highest:  468.4 H/s

@JerichoJones
Copy link

How-TO and tuning your hardware is not within the scope of Github support and will most likely be ignored. It is just not possible for us to know how to tune every model/version of a component.

How-TO and tuning type questions are better suited to forums such as REDDIT/r/moneromining.
There is a much larger audience of people that have probably
already been through and resolved the same issue.

Make sure you have reviewed the documentation on the Github as well as running:

	xmr-stak --help

^^ This will answer most How-TO type questions. ^^

@greydaymine
Copy link

Try changing your low power setting from false to 5.

@d0n-miner1
Copy link

RESULT REPORT
Difficulty : 168893
Good results : 102 / 105 (97.1 %)
Avg result time : 21.9 sec
Pool-side hashes : 17227086

Top 10 best results found:
| 0 | 13354601 | 1 | 4609371 |
| 2 | 4294687 | 3 | 2565175 |
| 4 | 2266072 | 5 | 2017985 |
| 6 | 1713267 | 7 | 1559368 |
| 8 | 1493351 | 9 | 1448663 |

Hi Psychocrypt.
Nice work.

But can someboy explain what these numbers actually means?
What am I looking at here?

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

No branches or pull requests

8 participants