Giter VIP home page Giter VIP logo

Comments (2)

luochenglcs avatar luochenglcs commented on June 29, 2024 1

First, it is clear that task refers to thread.

from numa manuals:
numa_run_on_node() runs the current task and its children on a specific node. They will not migrate to CPUs of other nodes until the node affinity is reset with a new call to numa_run_on_node_mask(). Passing -1 permits the kernel to schedule on all nodes again. On success, 0 is returned; on error -1 is returned, and errno is set to indicate the error.

  1. spawn 1 thread for each NUMA domain, for each thread restrict it to a different NUMA domain as:
    numa_run_on_node(i);
  • This restricts the thread and its children to run only on the CPU of the specified node.

2、From each thread spawn X threads, where X is the number of cores inside of each domain.

  • The child thread inherits the attributes of its parent thread and can run only on the CPU of the specified node.

I think this will meet your requirements.

from numactl.

ikabadzhov avatar ikabadzhov commented on June 29, 2024

Thank you very much for your quick response!

from numactl.

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.