41#define NUMA_QUERY_CHUNK_SIZE 16
43#define NUMA_QUERY_CHUNK_SIZE 1024
57 if (get_mempolicy(NULL, NULL, 0, 0, 0) < 0 && (errno == EPERM))
78 unsigned long next = 0;
87 unsigned long count_chunk =
Min(count -
next,
88 NUMA_QUERY_CHUNK_SIZE);
97 ret = numa_move_pages(pid, count_chunk, &pages[
next], NULL, &status[
next], 0);
116 return numa_max_node();
Assert(PointerIsAligned(start, uint64))
#define CHECK_FOR_INTERRUPTS()
int pg_numa_query_pages(int pid, unsigned long count, void **pages, int *status)
int pg_numa_get_max_node(void)