Which settings are best?

nilsherolindemann's Avatar

nilsherolindemann

31 Dec, 2013 11:08 PM

First, thanks for Stockfish.
Using it regulary for analysis (Houdini 1.5 before)

Which settings regarding Threads and Hash should i use?
a) What is best? 1 Thread, 2 Threads or 4 Threads?
b) Is a Hash of 1024 MB wise or can i use more / should i use less?
c) Are there other options to tweak the Stockfish?

Infos about my system:

Stockfish DD x64, Gui: Scid 4.5, OS: Windows 7, Architecture: x64

CPU (This is what Everest says about my CPU - i dont know much about CPUs):

CPU Type: 2x , 2300 MHz
Instruction Set: x86, x86-64, MMX, SSE, SSE2, SSE3
Original Clock: 2300 MHz
L2 Cache: 256 KB (On-Die, ATC, Full-Speed)

Multi CPU:
CPU #0: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2294 MHz
CPU #1: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2294 MHz
CPU #2: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2294 MHz
CPU #3: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz, 2294 MHz

RAM: 8 GB

Happy New 2014,

Nils

  1. Support Staff 1 Posted by Daylen Yang on 31 Dec, 2013 11:31 PM

    Daylen Yang's Avatar

    Your processor has 2 physical cores and 4 threads. Use 2 threads for analysis. You have 8 GB of RAM, so you can use a 4 GB hash size.

  2. 2 Posted by nilsherolindema... on 31 Dec, 2013 11:57 PM

    nilsherolindemann's Avatar

    Thank you!
    BTW, i looked into task manager, when using 2 threads, and the value for stockfish in column 'cpu' was '50', then i used 3 threads and the value was '75' - i could have had that idea a bit earlier... thanks also for the RAM hint, i was not sure if stockfish has an upper limit. Peace.

  3. 3 Posted by Geoff on 04 Jan, 2014 10:46 AM

    Geoff's Avatar

    My laptop has an Intel Core i3 (which has 2 cores and 4 threads) and 3 GB of main memory and is running Windows 7 Home Premium. I am using Arena.

    I have the polyglot configuration file in the same directory as the executable stockfish-dd-64-modern and the opening book Book.bin.

    The polyglot file has the default Threads = 1 and Hash = 128.

    From what has been said, I should set Threads = 2 for my processor, but I am unclear about the units for Hash. Are they MB? Do I set Hash to half my main memory? Should I set:

    Hash = 15000

    ?

    Any help greatly appreciated!

  4. 4 Posted by Geoff on 04 Jan, 2014 06:37 PM

    Geoff's Avatar

    Sorry, I meant

    Hash = 1500

    I have got Stockfish running but it is not using an opening book, despite setting up a mainbook and ticked mainbook and enginebook under Book =>Manage in Arena. Do I have to set OwnBook = true in the polyglot file?

  5. Support Staff 5 Posted by Daylen Yang on 04 Jan, 2014 06:52 PM

    Daylen Yang's Avatar

    Hash is specified in MB (megabytes). For your system you should set it to be 1024 or 1536. To use the Stockfish opening book you have to set OwnBook to true.

  6. Daylen Yang closed this discussion on 06 Jan, 2014 05:15 AM.

  7. Geoff Fergusson re-opened this discussion on 24 Jan, 2014 08:21 PM

  8. 6 Posted by Geoff Fergusson on 24 Jan, 2014 08:21 PM

    Geoff Fergusson's Avatar

    Hello Daylen.

    Thank you very much for your help. I have written step by step instructions
    for installing Stockfish DD in Arena 3.0 and the Shredder GUI:

    http://empiricalrabbit.blogspot.co.uk/

    Please let me know if I have got anything wrong, or if the text can be
    improved. There appears to be an issue with Shredder DD telling the GUI
    that Threads is 1, when it has been set to 2 in the polyglot file. If I set
    Threads to 2 in Arena 3.0 it retains this information on start up, but
    Shredder does not. There is a work around for Shredder though. Thanks again.

    Regards,
    Geoff.

  9. 7 Posted by kgddThhLdr yfgZ... on 25 Jan, 2014 12:37 AM

    kgddThhLdr yfgZAQRhJs's Avatar

    The issue is possibly a simple miscommunication between the Shredder GUI and Stockfish. Is there no way to address the engine's internal settings from within the Shredder GUI?

    Because Stockfish, like any other UCI engine will allow you to specify the number of threads, the hash size, etc, etc directly. Which actually is what the GUIs are doing, only in a more attractive manner, usually. ;)

  10. 8 Posted by Geoff Fergusson on 26 Jan, 2014 07:51 PM

    Geoff Fergusson's Avatar

    Hello Armin,

    As I said, there is a workaround that I describe in my article. It is possible to create a new engine that sends the correct number of threads to the GUI. It would be much easier if Stockfish itself sent the correct number of threads (i.e. the number set in the polyglot file) to the GUI, rather than 1. As I have said, this does not cause a problem with Arena 3.0, because it saves the number of threads set by the user. Shredder does not save this information. It takes the number of threads from the engine every time it is loaded, and the user has to override this information every time, or set up a new engine.

    Regards,
    Geoff.

    Sent from my iPad

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac