Comments (14)
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.
@giosal @TheXev How do you set your config.txt?
from xmr-stak-cpu.
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.
nicehash/NiceHashMiner#639 Seems @giosal started this issue too.
from xmr-stak-cpu.
@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.
@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.
from xmr-stak-cpu.
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.
from xmr-stak-cpu.
@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.
I tried adding all the threads into config file, but it still mined on first 32 cores...
from xmr-stak-cpu.
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.
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.
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)
- Getting only 140 h/s with AMD Threadripper 1950x HOT 1
- The program locks on this part HOT 1
- Can't enable all logical processors on multi cpu
- SOCKET ERROR - [pool.sumokoin.com:443] SEND error: An established connection was aborted by the software in your host machine. HOT 5
- We can doante it,Can you updata this version xmr-stak-cpu for us to mine xmr v7?thank you HOT 1
- Panda Antivirus showing xmr-stak-cpu.exe as trojan HOT 2
- cent os 7 , Result rejected by the pool. HOT 3
- Low hashrate on Xeon E5-2620 HOT 2
- remote throttling ? HOT 2
- Invalid config file 'config.txt'. Missing value "print_m otd". HOT 2
- stak crashes on one rig HOT 1
- hwloc: can't bind memory on linux
- Anybody who know how I can update to hardforked monero algorithm? HOT 3
- [2019-07-17 09:04:46] : JSON config parse error(offset 6151): Invalid escape character in string. HOT 1
- Linux how to compile all dependencies in the executable HOT 1
- [CUDA] Error gpu 0: <C:/xmr-stak/xmr-stak-rx-win64-1.0.1/xmrstak/blackend/nvidia/RandomX/randomx.cu>:33
- [xmr-stak-rx-linux-1.0.5-cpu] hwloc 2.2.0 received invalid information from the operating system.
- xmr-stak flowchart
- error with httpd? during build and compile HOT 2
- Error gpu, can't use more than 4 gpu.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmr-stak-cpu.