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

Advanced threads mode #563

Closed
xmrig opened this Issue Apr 19, 2018 · 6 comments

Comments

Projects
None yet
6 participants
@xmrig
Owner

xmrig commented Apr 19, 2018

In v2.6.0-beta3 added advanced threads mode and extended low power modes.

Advanced threads mode

Now threads field in config can accept object with individual threads configuration:

"threads": [
        {"low_power_mode": true,  "affine_to_cpu": 0 },
        {"low_power_mode": false, "affine_to_cpu": 1 },
        {"low_power_mode": 1,     "affine_to_cpu": 2 },
        {"low_power_mode": 3,     "affine_to_cpu": false }
],

low_power_mode number between 1 and 5 or boolean, false equal to 1 and true equal to 2. When set to a number N greater than 1, this mode will increase the cache usage and single thread performance by N times.
affine_to_cpu This can be either false (no affinity), or the CPU core number.

Changed huge pages allocation strategy, now each thread allocate huge pages by self.

Backward compatibility

  • Miner can work with config from previous versions, where is threads set as number or null.
  • Options av and cpu-affinity has no effect in advanced mode.
  • New option hw-aes works only in advanced mode.
  • Threads array compatible with xmr-stak.

New --av modes

  • --av=5 Triple hash mode
  • --av=6 Quard hash mode
  • --av=7 Penta hash mode
  • --av=8 Triple hash mode (Software AES)
  • --av=9 Quard hash mode (Software AES)
  • --av=10 Penta hash mode (Software AES)

@xmrig xmrig added the META label Apr 19, 2018

@xmrig xmrig added this to the v2.6 milestone Apr 19, 2018

This was referenced Apr 19, 2018

@septuig

This comment has been minimized.

Show comment
Hide comment
@septuig

septuig Apr 20, 2018

How to config "Advanced threads mode" with CN7.
My CPUs:
CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (2) x64 AES-NI
CPU L2/L3: 10.0 MB/50.0 MB
Thank you.

septuig commented Apr 20, 2018

How to config "Advanced threads mode" with CN7.
My CPUs:
CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (2) x64 AES-NI
CPU L2/L3: 10.0 MB/50.0 MB
Thank you.

@sergneo

This comment has been minimized.

Show comment
Hide comment
@sergneo

sergneo Apr 20, 2018

the beta3 version does not have AES CPU like Core2 Duo Quad Xeon running a bit slower

sergneo commented Apr 20, 2018

the beta3 version does not have AES CPU like Core2 Duo Quad Xeon running a bit slower

@2010phenix

This comment has been minimized.

Show comment
Hide comment
@2010phenix

2010phenix Apr 22, 2018

Who extremely want Advanced threads mode for big L3 cache and without L4 cache
Any test and good Hashrate up ?

2010phenix commented Apr 22, 2018

Who extremely want Advanced threads mode for big L3 cache and without L4 cache
Any test and good Hashrate up ?

@xmrig

This comment has been minimized.

Show comment
Hide comment
@xmrig

xmrig Apr 22, 2018

Owner

Advanced mode it not just additional x3 x4 and x5 hashing modes, it possibility to mix together threads with different memory requirements and human friendly CPU affinity. Very common case mix x1 and x2 threads was not possible before.

  • It good for Aeon (cryptonight-lite) x4 (lite) equal to x2 mode, both require same 4 MB of cache.
  • It may useful in no so good case, virtual servers where number of vCPU cores limited, but it depends very much on neighbors.
  • CPUs with big L4 cache (128 MB) was successfully tested, when it was added in xmr-stak.
Owner

xmrig commented Apr 22, 2018

Advanced mode it not just additional x3 x4 and x5 hashing modes, it possibility to mix together threads with different memory requirements and human friendly CPU affinity. Very common case mix x1 and x2 threads was not possible before.

  • It good for Aeon (cryptonight-lite) x4 (lite) equal to x2 mode, both require same 4 MB of cache.
  • It may useful in no so good case, virtual servers where number of vCPU cores limited, but it depends very much on neighbors.
  • CPUs with big L4 cache (128 MB) was successfully tested, when it was added in xmr-stak.
@nsummy

This comment has been minimized.

Show comment
Hide comment
@nsummy

nsummy Apr 23, 2018

I want to personally thank you for adding in the pentahash mode. I am testing it out right now. The XMR-Stak version has an issue where it will eventually dip down to half the hash rate. Stopping and starting the miner fixes it immediately. They claim its throttling or overheating, but I know its not. I'll update here as to whether the same thing happens. Thank you!

nsummy commented Apr 23, 2018

I want to personally thank you for adding in the pentahash mode. I am testing it out right now. The XMR-Stak version has an issue where it will eventually dip down to half the hash rate. Stopping and starting the miner fixes it immediately. They claim its throttling or overheating, but I know its not. I'll update here as to whether the same thing happens. Thank you!

@artcannibal

This comment has been minimized.

Show comment
Hide comment
@artcannibal

artcannibal May 3, 2018

Hi,
how to set "affine_to_cpu": to CPU socket 2 or 3 or 4 in multiprocessor platform?
And additiona question:
New Intel CPU (like Xeon Silver 4114) has a lot of L2 cache +L3 cache (20Mb+28Mb in dual platform), will new versions of xmrig support to use them for more prefomance?

artcannibal commented May 3, 2018

Hi,
how to set "affine_to_cpu": to CPU socket 2 or 3 or 4 in multiprocessor platform?
And additiona question:
New Intel CPU (like Xeon Silver 4114) has a lot of L2 cache +L3 cache (20Mb+28Mb in dual platform), will new versions of xmrig support to use them for more prefomance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment