c - Get the location of a memory in NUMA -


i working on numa system 2 nodes. got pointer pointing memory, not know node in. there way can node number of memory?

(the reason getting node mask of current thread not work that, memory of node full, thread affined current node, may still allocate memory on adjacent node. therefore, seeking direct way memory location.)

you may want check numa api: http://linux.die.net/man/3/numa. cursory look, numa_alloc_onnode() , numa_get_run_node_mask() stand out useful.

may combination of functions in api can address reason why want know node number.


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -