当在Linux中使用numactl时,我们假设我是这样做的:
numactl --membind=0,1,2 ./prog是否会在所有NUMA节点0、1和2上分配./prog的内存?或者,如果NUMA节点0的内存不够,那么仅在NUMA节点1和2上分配内存吗?谢谢。
发布于 2013-02-03 09:10:54
numactl的手册上写着:
--membind=nodes, -m nodes
Only allocate memory from nodes. Allocation will fail when there is not enough
memory available on these nodes.因此,如果节点0没有足够的内存,则将在节点1、2上分配内存。每个节点分配的内存实际比率可能取决于内存放置策略。
https://stackoverflow.com/questions/14669900
复制相似问题