If we have an application which has two memory allocations malloc and numa_alloc(1) (assume we have two numa nodes 0 & 1), malloc shall be using memory on node 0 and numa_alloc shall be allocated on node 1.
In this application if we have local varibales like int x, or sem_t tst; where are these local variables allocated; on node 0 or 1 ?
If they get allocated on node 1, is there any way we can restrict all application related allocations need to be done on node 0 and node 1 to be used only for numa allocations ?