what configuration for Stockfish should I use?

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

Moderator: Ras

chesskobra
Posts: 347
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

what configuration for Stockfish should I use?

Post by chesskobra »

I recently got a new machine Intel Core i7-13700 (16-core, cache de 24MB, 2.1 GHz até 5.1GHz), 13th generation, 32 GB RAM, NVIDIA GeForce RTX 4060 8GB GDDR6 (the NVIDIA card is not yet functioning under Ubuntu 22.04). What stockfish configuration should I make?

If this information is relevant, lscpu command shows

CPU(s): 24
Thread(s) per core: 2
Core(s) per socket: 16
Socket(s): 1
smatovic
Posts: 3220
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: what configuration for Stockfish should I use?

Post by smatovic »

You have 8 performance cores and 8 efficiency cores:

https://www.intel.com/content/www/us/en ... tions.html

Total Cores 16
# of Performance-cores 8
# of Efficient-cores 8
Total Threads 24

The efficiency cores give less NPS, might want to consider when running benchmarks or tournaments.

People use engines for different reasons, to play, for tournaments, for test-suites, for analyzing.....config depends.

--
Srdja
chesskobra
Posts: 347
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: what configuration for Stockfish should I use?

Post by chesskobra »

Thank you for your response. I will use for occasional analysis via scipts or scid vs pc, and sometimes some casual games (for fun) between engines (under cutechess-gui or xboard). I am not a serious engine tester. How do I know what cores (efficiency or something else) are being used and how many are used?

If I load stockfish as an engine in xboard, and open the engine configuration window, will it automatically fill the right parameters depending on the machine I have? Similarly in cutechess, if I select stockfish by browsing my /usr/local/games, it fills some parameters. Is it doing it by probing what hardware I have?

One curious fact I observed. I ran a script called chess-artist by Ferdinand Mosca to find puzzles from Tal's games from the book by Soltis. The book has 30 games of Tal. My laptop, on which I ran the script with just 1 thread, found nearly 140 puzzles from 30 games, while on my new machine, where I ran the script with 12 threads, found only about 38 puzzles. I would like to understand what could be the differences. If there is some 'right' configuration for analysis, given this hardware, I would like to run the script with that configuration.
smatovic
Posts: 3220
Joined: Wed Mar 10, 2010 10:18 pm
Location: Hamburg, Germany
Full name: Srdja Matovic

Re: what configuration for Stockfish should I use?

Post by smatovic »

I start XBoard via command line, there is the option -smpCores to set the amount of threads.

I think for analyzing you want to max out your machine, RAM for Hash Table (depending on thinking time) and threads for engine. Depending on your PC usage beside analysis, you want to spare some RAM and CPU for the OS++, Windows users like to spare 1 to 2 CPU cores for the OS, Linux is here more efficient IMHO, Ubuntu Linux with desktop environment consumes 1GB to 2GB RAM w/o any further programs running.

In Linux command line there is the "top" command, and by pressing "1" it shows CPU resp. thread utilization, dunno how to distinct here between P and E cores. I can imagine if you run 8 to 16 threads under full load, chess engines, they will run on P your cores.

Can not tell about the puzzles.

--
Srdja