I am writing a C program on a linux machine which requires to allocate a gigantic array of 10 to 20 GBs.
After allocating the space, I want to know which core owns which pages for that array.
By “owns”, I mean which core is responsible for the coherence of which page.
Is there any function or shell command to get this info?
Note: I am using Debian with gcc4.7.
You can set the ownership using
move_pages()ornuma_tonode_memory().