Home
last modified time | relevance | path

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

12

/linux-6.1.9/Documentation/translations/zh_CN/core-api/
Dmemory-hotplug.rst73 - status_change_nid_normal是当nodemask的N_NORMAL_MEMORY被设置/清除时设置节
74 点id,如果是-1,则nodemask状态不改变。
76 - status_change_nid是当nodemask的N_MEMORY被(将)设置/清除时设置的节点id。这
78 存。如果这个值为-1,那么nodemask的状态就不会改变。
Dprintk-formats.rst533 位图及其衍生物,如cpumask和nodemask
541 对于打印位图(bitmap)及其派生的cpumask和nodemask,%*pb输出以字段宽度为位数的位图,
545 nodemask_pr_args()来方便打印cpumask和nodemask
/linux-6.1.9/include/linux/
Dcpuset.h81 int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask);
168 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
175 current->mems_allowed = nodemask; in set_mems_allowed()
221 static inline int cpuset_nodemask_valid_mems_allowed(nodemask_t *nodemask) in cpuset_nodemask_valid_mems_allowed() argument
288 static inline void set_mems_allowed(nodemask_t nodemask) in set_mems_allowed() argument
Dnodemask.h153 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument
155 #define node_test_and_set(node, nodemask) \ argument
156 __node_test_and_set((node), &(nodemask))
232 #define nodes_full(nodemask) __nodes_full(&(nodemask), MAX_NUMNODES) argument
238 #define nodes_weight(nodemask) __nodes_weight(&(nodemask), MAX_NUMNODES) argument
Dmempolicy.h148 struct mempolicy **mpol, nodemask_t **nodemask);
252 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
255 *nodemask = NULL; in huge_node()
Dgfp.h178 nodemask_t *nodemask);
180 nodemask_t *nodemask);
183 nodemask_t *nodemask, int nr_pages,
360 int nid, nodemask_t *nodemask);
Doom.h34 nodemask_t *nodemask; member
Dmmzone.h1520 #define for_each_zone_zonelist_nodemask(zone, z, zlist, highidx, nodemask) \ argument
1521 for (z = first_zones_zonelist(zlist, highidx, nodemask), zone = zonelist_zone(z); \
1523 z = next_zones_zonelist(++z, highidx, nodemask), \
1526 #define for_next_zone_zonelist_nodemask(zone, z, highidx, nodemask) \ argument
1529 z = next_zones_zonelist(++z, highidx, nodemask), \
Dmm.h1849 extern void __show_free_areas(unsigned int flags, nodemask_t *nodemask, int max_zone_idx);
1850 static void __maybe_unused show_free_areas(unsigned int flags, nodemask_t *nodemask) in show_free_areas() argument
1852 __show_free_areas(flags, nodemask, MAX_NR_ZONES - 1); in show_free_areas()
2615 extern void __show_mem(unsigned int flags, nodemask_t *nodemask, int max_zone_idx);
2616 static inline void show_mem(unsigned int flags, nodemask_t *nodemask) in show_mem() argument
2618 __show_mem(flags, nodemask, MAX_NR_ZONES - 1); in show_mem()
2628 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...);
/linux-6.1.9/tools/testing/selftests/kvm/x86_64/
Dxapic_ipi_test.c259 unsigned long nodemask = 0; in do_migrations() local
260 unsigned long nodemasks[sizeof(nodemask) * 8]; in do_migrations()
275 r = get_mempolicy(NULL, &nodemask, sizeof(nodemask) * 8, in do_migrations()
281 sizeof(nodemask) * 8, nodemask); in do_migrations()
287 for (i = 0, bit = 1; i < sizeof(nodemask) * 8; i++, bit <<= 1) { in do_migrations()
288 if (nodemask & bit) { in do_migrations()
289 nodemasks[nodes] = nodemask & bit; in do_migrations()
/linux-6.1.9/lib/
Dshow_mem.c11 void __show_mem(unsigned int filter, nodemask_t *nodemask, int max_zone_idx) in __show_mem() argument
17 __show_free_areas(filter, nodemask, max_zone_idx); in __show_mem()
/linux-6.1.9/Documentation/admin-guide/mm/
Dnuma_memory_policy.rst217 is always preferred by passing an empty nodemask with this
218 mode. If an empty nodemask is passed, the policy cannot use
250 satisfied from the nodemask specified in the policy. If there is
251 a memory pressure on all nodes in the nodemask, the allocation
258 This flag specifies that the nodemask passed by
263 change in the set of allowed nodes, the preferred nodemask (Preferred
264 Many), preferred node (Preferred) or nodemask (Bind, Interleave) is
277 3 is allowed from the user's nodemask, the "interleave" only
278 occurs over that node. If no nodes from the user's nodemask are
283 MPOL_PREFERRED policies that were created with an empty nodemask
[all …]
/linux-6.1.9/mm/
Doom_kill.c94 const nodemask_t *mask = oc->nodemask; in oom_cpuset_eligible()
285 if (oc->nodemask && in constrained_alloc()
286 !nodes_subset(node_states[N_MEMORY], *oc->nodemask)) { in constrained_alloc()
288 for_each_node_mask(nid, *oc->nodemask) in constrained_alloc()
295 highest_zoneidx, oc->nodemask) in constrained_alloc()
445 nodemask_pr_args(oc->nodemask)); in dump_oom_summary()
464 __show_mem(SHOW_MEM_FILTER_NODES, oc->nodemask, gfp_zone(oc->gfp_mask)); in dump_header()
1147 oc->nodemask = NULL; in out_of_memory()
Dpage_alloc.c2934 ac->nodemask) { in unreserve_highatomic_pageblock()
4191 ac->nodemask) { in get_page_from_freelist()
4324 static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask) in warn_alloc_show_mem() argument
4340 __show_mem(filter, nodemask, gfp_zone(gfp_mask)); in warn_alloc_show_mem()
4343 void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...) in warn_alloc() argument
4359 nodemask_pr_args(nodemask)); in warn_alloc()
4365 warn_alloc_show_mem(gfp_mask, nodemask); in warn_alloc()
4394 .nodemask = ac->nodemask, in __alloc_pages_may_oom()
4651 ac->highest_zoneidx, ac->nodemask) { in should_compact_retry()
4759 ac->nodemask); in __perform_reclaim()
[all …]
Dhugetlb.c1364 nodemask_t *nodemask; in dequeue_huge_page_vma() local
1380 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_huge_page_vma()
1383 page = dequeue_huge_page_nodemask(h, gfp_mask, nid, nodemask); in dequeue_huge_page_vma()
1386 nodemask = NULL; in dequeue_huge_page_vma()
1390 page = dequeue_huge_page_nodemask(h, gfp_mask, nid, nodemask); in dequeue_huge_page_vma()
1530 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument
1549 for_each_node_mask(node, *nodemask) { in alloc_gigantic_page()
1562 return alloc_contig_pages(nr_pages, gfp_mask, nid, nodemask); in alloc_gigantic_page()
1567 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument
1575 int nid, nodemask_t *nodemask) in alloc_gigantic_page() argument
[all …]
Dmempolicy.c1956 nodemask_t nodemask = pol->nodes; in offset_il_node() local
1969 nnodes = nodes_weight(nodemask); in offset_il_node()
1973 nid = first_node(nodemask); in offset_il_node()
1975 nid = next_node(nid, nodemask); in offset_il_node()
2018 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
2024 *nodemask = NULL; in huge_node()
2033 *nodemask = &(*mpol)->nodes; in huge_node()
Dvmscan.c79 nodemask_t *nodemask; member
6322 sc->reclaim_idx, sc->nodemask) { in shrink_zones()
6459 sc->nodemask) { in do_try_to_free_pages()
6562 nodemask_t *nodemask) in throttle_direct_reclaim() argument
6600 gfp_zone(gfp_mask), nodemask) { in throttle_direct_reclaim()
6642 gfp_t gfp_mask, nodemask_t *nodemask) in try_to_free_pages() argument
6650 .nodemask = nodemask, in try_to_free_pages()
6670 if (throttle_direct_reclaim(sc.gfp_mask, zonelist, nodemask)) in try_to_free_pages()
Dinternal.h213 nodemask_t *nodemask; member
Dcompaction.c2268 ac->highest_zoneidx, ac->nodemask) { in compaction_zonelist_suitable()
2589 ac->highest_zoneidx, ac->nodemask) { in try_to_compact_pages()
/linux-6.1.9/Documentation/core-api/
Dmemory-hotplug.rst65 - status_change_nid_normal is set node id when N_NORMAL_MEMORY of nodemask
66 is (will be) set/clear, if this is -1, then nodemask status is not changed.
67 - status_change_nid is set node id when N_MEMORY of nodemask is (will be)
69 node loses all memory. If this is -1, then nodemask status is not changed.
Dprintk-formats.rst562 bitmap and its derivatives such as cpumask and nodemask
570 For printing bitmap and its derivatives such as cpumask and nodemask,
576 printing cpumask and nodemask.
/linux-6.1.9/kernel/
Dsmp.c848 const struct cpumask *nodemask; in smp_call_function_any() local
857 nodemask = cpumask_of_node(cpu_to_node(cpu)); in smp_call_function_any()
858 for (cpu = cpumask_first_and(nodemask, mask); cpu < nr_cpu_ids; in smp_call_function_any()
859 cpu = cpumask_next_and(cpu, nodemask, mask)) { in smp_call_function_any()
/linux-6.1.9/arch/x86/mm/
Dnuma.c335 static void __init numa_nodemask_from_meminfo(nodemask_t *nodemask, in numa_nodemask_from_meminfo() argument
343 node_set(mi->blk[i].nid, *nodemask); in numa_nodemask_from_meminfo()
/linux-6.1.9/kernel/irq/
Dmanage.c619 const struct cpumask *nodemask = cpumask_of_node(node); in irq_setup_affinity() local
622 if (cpumask_intersects(&mask, nodemask)) in irq_setup_affinity()
623 cpumask_and(&mask, &mask, nodemask); in irq_setup_affinity()
/linux-6.1.9/drivers/tty/
Dsysrq.c390 .nodemask = NULL, in moom_callback()

12