0

I am new at mining. My first experience is with monero with using xmr-stak on supportxmr pool. My problem is that when I mine with 4 cpu I get about 150 H/s. This is the default configs by the way, I mean when I compile the code, in the cpu file there is this:

"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 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },

],

But when I increase these numbers (I got 4 core and 8 process, I am using ubuntu, when I open the system monitor I see 8 cpu) like below, I got more lower (about 60) H/s.

"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 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
],

This happens when tried it with 5,6,7 or 8 cpu. Why is that? Should not it increase when I increase the number of cpus?

One more question, actually I think I am mining with bot cpu and gpu, how can I check that if I am using gpu for mining or not? Thanks,

JollyRoger
  • 103
  • 1
  • 2

2 Answers2

1

Whilst your CPU may have the ability to run 8 threads, it may not have enough cache for mining with 8 threads. With Monero, you need 2MB CPU cache per thread. So for 8 threads you'd need a CPU cache of 16MB available.

If you run more threads than you have cache for, it will slow down the hashing.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54
-1

You can log out of window manager,ssh or ALT + F7 into console and run xmr-stak from CLI ... Shave a few percent off your CPU load

Endogen
  • 812
  • 5
  • 11