cutechess-cli concurrency

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

zenpawn
Posts: 349
Joined: Sat Aug 06, 2016 8:31 pm
Location: United States

cutechess-cli concurrency

Post by zenpawn »

Any advice on the best concurrency setting to use on a standard i7 laptop such that a gauntlet can be played in the least amount of time without affecting the games? I've been using 4 for 40/30+1 time controls, and am just now venturing 6 for 40/60+1 games.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli concurrency

Post by Ferdy »

zenpawn wrote:Any advice on the best concurrency setting to use on a standard i7 laptop such that a gauntlet can be played in the least amount of time without affecting the games? I've been using 4 for 40/30+1 time controls, and am just now venturing 6 for 40/60+1 games.
How many cores does the processor of your laptop has? Does the processor supports hyper-threading?
zenpawn
Posts: 349
Joined: Sat Aug 06, 2016 8:31 pm
Location: United States

Re: cutechess-cli concurrency

Post by zenpawn »

Ferdy wrote: How many cores does the processor of your laptop has? Does the processor supports hyper-threading?
It's a quad-core (i7-4700MQ @ 2.40GHz) and has hyperthreading enabled.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli concurrency

Post by Ferdy »

zenpawn wrote:
Ferdy wrote: How many cores does the processor of your laptop has? Does the processor supports hyper-threading?
It's a quad-core (i7-4700MQ @ 2.40GHz) and has hyperthreading enabled.
You may try 6 or 7. But important is try to run same engine on the TC you like to test and see if you can get 50% or close to it after 1000 games. If you cannot get 50% or close to it then there could be an issue in hyper-threading, in that case you may try affinity of engine to a thread. Say engine1 and engine2 can only use threads 0 to 5, that is using cores 1, 2 and 3. Core1=threads 0 and 1, core2=threads 2 and 3, core3=threads 4 and 5. Core4=threads 6 and 7 are free from engine use. Try this setup using same engine, see if you can get 50% or close to it after some games.
zenpawn
Posts: 349
Joined: Sat Aug 06, 2016 8:31 pm
Location: United States

Re: cutechess-cli concurrency

Post by zenpawn »

Ferdy wrote: You may try 6 or 7. But important is try to run same engine on the TC you like to test and see if you can get 50% or close to it after 1000 games. If you cannot get 50% or close to it then there could be an issue in hyper-threading, in that case you may try affinity of engine to a thread. Say engine1 and engine2 can only use threads 0 to 5, that is using cores 1, 2 and 3. Core1=threads 0 and 1, core2=threads 2 and 3, core3=threads 4 and 5. Core4=threads 6 and 7 are free from engine use. Try this setup using same engine, see if you can get 50% or close to it after some games.
Thank you for this way to determine whether concurrency might be set too high. Regarding the affinity, I'm not seeing such options in the cutechess-cli documentation.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: cutechess-cli concurrency

Post by Ferdy »

zenpawn wrote:
Ferdy wrote: You may try 6 or 7. But important is try to run same engine on the TC you like to test and see if you can get 50% or close to it after 1000 games. If you cannot get 50% or close to it then there could be an issue in hyper-threading, in that case you may try affinity of engine to a thread. Say engine1 and engine2 can only use threads 0 to 5, that is using cores 1, 2 and 3. Core1=threads 0 and 1, core2=threads 2 and 3, core3=threads 4 and 5. Core4=threads 6 and 7 are free from engine use. Try this setup using same engine, see if you can get 50% or close to it after some games.
Thank you for this way to determine whether concurrency might be set too high. Regarding the affinity, I'm not seeing such options in the cutechess-cli documentation.
Search for cpu affinity on web.

Cutechess does not handle it.

I tried process lasso before.
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: cutechess-cli concurrency

Post by Nordlandia »

Process Laso let you select CPU affinity.

I recommend Process Laso by Bitsum

I use it on both laptops.

Erin - one question: Why do you use Cutechess-Cli when 64-bit version is available with 6-men adjudication.

https://github.com/cutechess/cutechess/ ... -304545748
zenpawn
Posts: 349
Joined: Sat Aug 06, 2016 8:31 pm
Location: United States

Re: cutechess-cli concurrency

Post by zenpawn »

Nordlandia wrote: Erin - one question: Why do you use Cutechess-Cli when 64-bit version is available with 6-men adjudication.

https://github.com/cutechess/cutechess/ ... -304545748
I use the command line so there's no GUI involvement; I've noticed strange delays in Arena. Also, it helps my sanity to not observe the game in progress. :)

That said, the link you provided also includes a CLI in the zip. Perhaps I'm not on the latest version (though I never mentioned a version number), so I'll check it out. I don't bother with adjudication as my engine is still quite capable of losing/drawing a won endgame. ;)