Lines Matching refs:nodes
12 * node are merged, otherwise pages from all nodes can be merged
47 static struct tst_nodemap *nodes;
59 memory = SAFE_MALLOC(nodes->cnt * sizeof(char *));
60 for (i = 0; i < nodes->cnt; i++) {
69 numa_bitmask_setbit(bm, nodes->map[i]);
75 numa_bitmask_clearbit(bm, nodes->map[i]);
88 nr_pages * nodes->cnt);
98 "%ld", nr_pages * nodes->cnt);
102 ksm_group_check(1, 1, nr_pages * nodes->cnt - 1, 0, 0, 0,
103 nr_pages * nodes->cnt);
109 ksm_group_check(1, nodes->cnt, nr_pages * nodes->cnt - nodes->cnt,
110 0, 0, 0, nr_pages * nodes->cnt);
114 for (i = 0; i < nodes->cnt; i++)
127 nodes = tst_get_nodemap(TST_NUMA_MEM, nr_pages * page_size / 1024);
128 if (nodes->cnt <= 1)
129 tst_brk(TCONF, "Test requires at least two NUMA memory nodes");