Coder Social home page Coder Social logo

Comments (2)

tthsqe12 avatar tthsqe12 commented on September 4, 2024

The official stockfish only shares the main hash among cores and has per-thread tables for everything else, so numa awareness is a moo point in official. asmFish currently shares the cmh table among threads in the same node. For your machine you have essential three options

  1. setoption name nodeaffinity value all
    This is the default and will try to use all of the nodes in your machine.
  2. setoption name nodeaffinity value none
    This disables numa awareness and tells the OS nothing about where to put stuff.
  3. setoption name nodeaffinity value 0 (or setoption name nodeaffinity value 1)
    This tell the OS to try put all of the stuff on node 0 (or node 1)

Option 2) is probably what you want since the OS should be smart enough to put everything on the same node if you request the same number of threads as there are cores on each node. The problem with 3) is with multiple instances - if you are running more than one instance of the program and they are both pinned to node 0, then they are going to be fighting for time. Option 1) is also not good for this same reason, since multiple instances will be using the nodes in the same way.

from asmfish.

tthsqe12 avatar tthsqe12 commented on September 4, 2024

You can see what the program is doing like this. Node number -1 is a dummy node. If you are running on a windows box, you will get a group number in addition to a 64bit mask.

$ ./pfish
pedantFishL_2017-05-25_popcnt
setoption name nodeaffinity value all
info string node 0 parent 0 cores 4 mask 0x000000000000000f
setoption name threads value 4
isready
info string node 0 has threads 0 1 2 3
readyok

setoption name nodeaffinity value none
info string node -1 parent -1 cores 1 mask 0x0000000000000000
info string node -1 has threads 0 1 2 3

setoption name nodeaffinity value 0
info string node 0 parent 0 cores 4 mask 0x000000000000000f
info string node 0 has threads 0 1 2 3

quit

from asmfish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.