You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On two systems I tested, numa_preferred always returns 0 if not explicitly initialized. That means that even when I start a process explicitly on some processor on NUMA node ~= 0, using the default memory allocation policy (local alloc), numa_preferred will return 0. The memory will be allocated correctly on the local numa node.
Good catch. I see in the gist that you use a multi-threaded test. does it work for single-threaded process? I.e. does it has something to do with the way we implement the initialization of libnuma?
On two systems I tested,
numa_preferred
always returns 0 if not explicitly initialized. That means that even when I start a process explicitly on some processor on NUMA node ~= 0, using the default memory allocation policy (local alloc),numa_preferred
will return 0. The memory will be allocated correctly on the local numa node.https://gist.github.com/angainor/d09c367631880ae99e1acf7f6653128b
I suggest we add the following function to
numa_tools
:While this will not return the preferred node, it will return the thread-local node id, which is often what we want.
The text was updated successfully, but these errors were encountered: