Comments (2)
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.
- 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.
Thank you very much for your quick response!
from numactl.
Related Issues (20)
- numactl --localalloc on Mysql HOT 3
- Why does node bitmask->size always increase? HOT 2
- [numastat]`numastat -p $pid` statistics errors occur when huge pages are used. HOT 6
- [numastat]Add more info to list of known fields in meminfo HOT 2
- [numastat]`numastat -m` get incorrect huge pages memory HOT 3
- [migspeed]`migspeed 0 1` get error `from mask: Invalid argument` HOT 3
- [numactl] `numactl --length=4096 --shm abc -p0 --verify` reports "numactl: Need a policy first to verify" HOT 2
- [numactl]`numactl --length=xxx --shm xxx -px ` doesn't work HOT 2
- Fail gracefully if sysfs is not mounted HOT 2
- The minimum version of the kernel required for version 2.0.16? HOT 1
- `check_arg_order` in `test/bind_range` fails on `aarch64` HOT 1
- `check_arg_order` in `test/bind_range` & `test/checktopology` fail on Linux `ppc64le`
- numactl -N fails for nodes with no memory HOT 2
- Add minimum workflow permissions HOT 1
- numactl --dump doesn't merge neighboring pages' policies correctly
- Publish numactl-devel for s390x HOT 5
- Add Security Policy HOT 2
- How can numactl cpunodebind work properly with isolated cpus? HOT 3
- Can you use libnuma to migrate transparent huge page? HOT 4
- Add CLI switch to print out the version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from numactl.