Giter Club home page Giter Club logo

Comments (14)

TheXev avatar TheXev commented on August 22, 2024

On my system with a Core i5-6600k, It is only using the first two cores, and not the other two.

from xmr-stak-cpu.

cfxks1989 avatar cfxks1989 commented on August 22, 2024

@giosal @TheXev How do you set your config.txt?

from xmr-stak-cpu.

TheXev avatar TheXev commented on August 22, 2024

I figured it out. 3 threads is the best way to go on the i5-6600k. I didn't realise that using all the cores used too much L3 cache (my CPU has 6MBs, so 3MBs works best).

I get around 160H/s using memory lock and 3 threads (or only three cores). Using four threads dropped me to around 120H/s, so def not worth it.

However, I was attempting to setup the miner via NiceHash's front end. They have a buggy thread setting that seems backwards, so I will report that bug to them.

from xmr-stak-cpu.

TheXev avatar TheXev commented on August 22, 2024

nicehash/NiceHashMiner#639 Seems @giosal started this issue too.

from xmr-stak-cpu.

giosal avatar giosal commented on August 22, 2024

@cfxks1989
Here's my config:
"cpu_thread_num": 32, "cpu_threads_conf": [ { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 0 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 1 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 2 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 3 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 4 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 5 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 6 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 7 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 8 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 9 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 10 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 11 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 12 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 13 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 14 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 15 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 16 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 17 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 18 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 19 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 20 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 21 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 22 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 23 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 24 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 25 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 26 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 27 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 28 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 29 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 30 }, { "low_power_mode": false, "no_prefetch": false, "affine_to_cpu": 31 } ], "use_slow_memory": "warn", "nicehash_nonce": true, "pool_address": "cryptonight.eu.nicehash.com:3355", "wallet_address": "1Q7otTPqPZDdnRteYknxx2hhWjga7PyvUS.amazon", "pool_password": "x", "call_timeout": 10, "retry_time": 10, "verbose_level": 3, "h_print_time": 60, "httpd_port": 4000, "prefer_ipv4": true

@TheXev , yes I did.
NHM launches two instances of miner, but they are both mining on CPU0
In NHM they use "less threads" so active thread number would be total_threads-less_threads

from xmr-stak-cpu.

TheXev avatar TheXev commented on August 22, 2024

@giosal What CPU are you using? 32 threads way overkill.

"cpu_thread_num": 3,
"cpu_threads_conf": [
{
"low_power_mode": false,
"no_prefetch": false,
"affine_to_cpu": 0
},
{
"low_power_mode": false,
"no_prefetch": false,
"affine_to_cpu": 1
},
{
"low_power_mode": false,
"no_prefetch": false,
"affine_to_cpu": 2
}
],
"use_slow_memory": "warn",
"nicehash_nonce": true,
"pool_address": "",
"wallet_address": "",
"pool_password": "x",
"call_timeout": 10,
"retry_time": 10,
"verbose_level": 3,
"h_print_time": 60,
"httpd_port": 4000,
"prefer_ipv4": true

from xmr-stak-cpu.

giosal avatar giosal commented on August 22, 2024

from xmr-stak-cpu.

TheXev avatar TheXev commented on August 22, 2024

The model is important, because then you can look up the L3 cache. Generally you want to take the L3 cache and divide by two. I have 6MBs of L3 cache on my CPU, so 3 is the setting I picked. I tried 4 to use all cores, and it didn't work nearly as well.

You can find the full explanation in the original config.txt https://github.com/fireice-uk/xmr-stak-cpu/blob/master/config.txt

from xmr-stak-cpu.

UNIcodeX avatar UNIcodeX commented on August 22, 2024

from xmr-stak-cpu.

giosal avatar giosal commented on August 22, 2024

@TheXev , It's an Intel Xeon E5-2686 v4
I understand what you are saying, but the thing here is that I have 2 of them - CPU0 and CPU1, so 64 threads in total
And the miner is using only CPU0.
If do it via NHM, it launches two instance of miner, but both of them start mining on CPU0
As for L3 cache, it has 45 MB but may be bigger or smaller, as this are in fact Virtual CPUs

from xmr-stak-cpu.

giosal avatar giosal commented on August 22, 2024

I tried adding all the threads into config file, but it still mined on first 32 cores...

from xmr-stak-cpu.

fireice-uk avatar fireice-uk commented on August 22, 2024

Fist of all you will get nonce errors if you use that many cores with Nicehash. Secondly my guess is you are using Windows. Please read the instructions in config.txt

from xmr-stak-cpu.

giosal avatar giosal commented on August 22, 2024

Ok, I read that in case of nicehash nonce true, number of threads is limited to 32, but I head the same problem when using on the VM with 2 CPUs, 8 threads each.
It used only 8 threads of first CPU

from xmr-stak-cpu.

fireice-uk avatar fireice-uk commented on August 22, 2024

Sorry guys but this is way too much traffic than I can deal with in my spare time. The appropriate place to direct queries regarding nicehash fork is https://github.com/nicehash/xmr-stak-cpu

from xmr-stak-cpu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.