Home
last modified time | relevance | path

Searched refs:nodemask (Results 1 – 25 of 25) sorted by relevance

/linux-4.4.14/mm/
Doom_kill.c132 struct mem_cgroup *memcg, const nodemask_t *nodemask) in oom_unkillable_task() argument
144 if (!has_intersects_mems_allowed(p, nodemask)) in oom_unkillable_task()
160 const nodemask_t *nodemask, unsigned long totalpages) in oom_badness() argument
165 if (oom_unkillable_task(p, memcg, nodemask)) in oom_badness()
235 if (oc->nodemask && in constrained_alloc()
236 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
238 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
245 high_zoneidx, oc->nodemask) in constrained_alloc()
269 if (oom_unkillable_task(task, NULL, oc->nodemask)) in oom_scan_process_thread()
324 points = oom_badness(p, NULL, oc->nodemask, totalpages); in select_bad_process()
[all …]
Dvmscan.c75 nodemask_t *nodemask; member
2537 gfp_zone(sc->gfp_mask), sc->nodemask) { in shrink_zones()
2743 nodemask_t *nodemask) in throttle_direct_reclaim() argument
2781 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim()
2827 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages() argument
2834 .nodemask = nodemask, in try_to_free_pages()
2846 if (throttle_direct_reclaim(gfp_mask, zonelist, nodemask)) in try_to_free_pages()
Dinternal.h146 nodemask_t *nodemask; member
Dpage_alloc.c1714 ac->nodemask) { in unreserve_highatomic_pageblock()
2518 ac->nodemask) { in get_page_from_freelist()
2708 .nodemask = ac->nodemask, in __alloc_pages_may_oom()
2856 ac->nodemask); in __perform_reclaim()
2927 ac->high_zoneidx, ac->nodemask) in wake_all_kswapds()
3044 if (!(alloc_flags & ALLOC_CPUSET) && !ac->nodemask) { in __alloc_pages_slowpath()
3193 struct zonelist *zonelist, nodemask_t *nodemask) in __alloc_pages_nodemask() argument
3202 .nodemask = nodemask, in __alloc_pages_nodemask()
3237 ac.nodemask ? : &cpuset_current_mems_allowed, in __alloc_pages_nodemask()
Dhugetlb.c882 nodemask_t *nodemask; in dequeue_huge_page_vma() local
904 htlb_alloc_mask(h), &mpol, &nodemask); in dequeue_huge_page_vma()
907 MAX_NR_ZONES - 1, nodemask) { in dequeue_huge_page_vma()
1495 nodemask_t *nodemask; in __hugetlb_alloc_buddy_huge_page() local
1498 zl = huge_zonelist(vma, addr, gfp, &mpol, &nodemask); in __hugetlb_alloc_buddy_huge_page()
1500 page = __alloc_pages_nodemask(gfp, order, zl, nodemask); in __hugetlb_alloc_buddy_huge_page()
Dmempolicy.c1808 nodemask_t **nodemask) in huge_zonelist() argument
1813 *nodemask = NULL; /* assume !MPOL_BIND */ in huge_zonelist()
1821 *nodemask = &(*mpol)->v.nodes; in huge_zonelist()
Dcompaction.c1540 ac->nodemask) { in try_to_compact_pages()
Dmemcontrol.c1341 .nodemask = NULL, in mem_cgroup_out_of_memory()
/linux-4.4.14/include/linux/
Dcpuset.h49 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
127 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
134 current->mems_allowed = nodemask; in set_mems_allowed()
170 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument
232 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
Dnodemask.h140 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument
142 #define node_test_and_set(node, nodemask) \ argument
143 __node_test_and_set((node), &(nodemask))
219 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES) argument
225 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES) argument
Doom.h24 nodemask_t *nodemask; member
76 struct mem_cgroup *memcg, const nodemask_t *nodemask,
Dmempolicy.h150 struct mempolicy **mpol, nodemask_t **nodemask);
259 struct mempolicy **mpol, nodemask_t **nodemask) in huge_zonelist() argument
262 *nodemask = NULL; in huge_zonelist()
Dmmzone.h962 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
963 for (z = first_zones_zonelist(zlist, highidx, nodemask, &zone); \
965 z = next_zones_zonelist(++z, highidx, nodemask), \
Dgfp.h409 struct zonelist *zonelist, nodemask_t *nodemask);
/linux-4.4.14/Documentation/vm/
Dnuma_memory_policy.txt186 always preferred by passing an empty nodemask with this mode.
187 If an empty nodemask is passed, the policy cannot use the
217 MPOL_F_STATIC_NODES: This flag specifies that the nodemask passed by
223 nodemask (Bind, Interleave) is remapped to the new set of
236 3 is allowed from the user's nodemask, the "interleave" only
237 occurs over that node. If no nodes from the user's nodemask are
242 MPOL_PREFERRED policies that were created with an empty nodemask
245 MPOL_F_RELATIVE_NODES: This flag specifies that the nodemask passed
247 set of allowed nodes. The kernel stores the user-passed nodemask,
248 and if the allowed nodes changes, then that original nodemask will
[all …]
/linux-4.4.14/kernel/
Dsmp.c365 const struct cpumask *nodemask; in smp_call_function_any() local
374 nodemask = cpumask_of_node(cpu_to_node(cpu)); in smp_call_function_any()
375 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any()
376 cpu = cpumask_next_and(cpu, nodemask, mask)) { in smp_call_function_any()
Dcpuset.c2469 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument
2471 return nodes_intersects(*nodemask, current->mems_allowed); in cpuset_nodemask_valid_mems_allowed()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c570 nodemask_t *nodemask; in cfs_cpt_bind() local
578 nodemask = cptab->ctb_nodemask; in cfs_cpt_bind()
581 nodemask = cptab->ctb_parts[cpt].cpt_nodemask; in cfs_cpt_bind()
595 set_mems_allowed(*nodemask); in cfs_cpt_bind()
/linux-4.4.14/Documentation/
Dmemory-hotplug.txt418 status_change_nid_normal is set node id when N_NORMAL_MEMORY of nodemask
419 is (will be) set/clear, if this is -1, then nodemask status is not changed.
420 status_change_nid_high is set node id when N_HIGH_MEMORY of nodemask
421 is (will be) set/clear, if this is -1, then nodemask status is not changed.
422 status_change_nid is set node id when N_MEMORY of nodemask is (will be)
424 node loses all memory. If this is -1, then nodemask status is not changed.
Dprintk-formats.txt284 bitmap and its derivatives such as cpumask and nodemask:
289 For printing bitmap and its derivatives such as cpumask and nodemask,
/linux-4.4.14/tools/perf/bench/
Dnuma.c290 unsigned long nodemask; in bind_to_memnode() local
296 BUG_ON(g->p.nr_nodes > (int)sizeof(nodemask)); in bind_to_memnode()
297 nodemask = 1L << node; in bind_to_memnode()
299 ret = set_mempolicy(MPOL_BIND, &nodemask, sizeof(nodemask)*8); in bind_to_memnode()
300 dprintf("binding to node %d, mask: %016lx => %d\n", node, nodemask, ret); in bind_to_memnode()
/linux-4.4.14/arch/x86/mm/
Dnuma.c321 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument
329 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
/linux-4.4.14/kernel/irq/
Dmanage.c356 const struct cpumask *nodemask = cpumask_of_node(node); in setup_affinity() local
359 if (cpumask_intersects(mask, nodemask)) in setup_affinity()
360 cpumask_and(mask, mask, nodemask); in setup_affinity()
/linux-4.4.14/drivers/tty/
Dsysrq.c359 .nodemask = NULL, in moom_callback()
/linux-4.4.14/kernel/sched/
Dcore.c1550 const struct cpumask *nodemask = NULL; in select_fallback_rq() local
1560 nodemask = cpumask_of_node(nid); in select_fallback_rq()
1563 for_each_cpu(dest_cpu, nodemask) { in select_fallback_rq()