Home
last modified time | relevance | path

Searched full:mpol (Results 1 – 13 of 13) sorted by relevance

/linux/Documentation/translations/zh_CN/filesystems/
H A Dtmpfs.rst76 mpol=default 采用进程分配策略
78 mpol=prefer:Node 倾向从给定的节点分配
79 mpol=bind:NodeList 只允许从指定的链表分配
80 mpol=interleave 倾向于依次从每个节点分配
81 mpol=interleave:NodeList 依次从每个节点分配
82 mpol=local 优先本地节点分配内存
86 分隔符的十进制数来表示。例如,mpol=bind0-3,5,7,9-15
104 例如,mpol=bind=staticNodeList相当于MPOL_BIND|MPOL_F_STATIC_NODES的分配策略
109 可以在以后通过“mount -o remount,mpol=Policy:NodeList MountPoint”添加到挂载点。
/linux/Documentation/translations/zh_TW/filesystems/
H A Dtmpfs.rst76 mpol=default 採用進程分配策略
78 mpol=prefer:Node 傾向從給定的節點分配
79 mpol=bind:NodeList 只允許從指定的鏈表分配
80 mpol=interleave 傾向於依次從每個節點分配
81 mpol=interleave:NodeList 依次從每個節點分配
82 mpol=local 優先本地節點分配內存
86 分隔符的十進制數來表示。例如,mpol=bind0-3,5,7,9-15
104 例如,mpol=bind=staticNodeList相當於MPOL_BIND|MPOL_F_STATIC_NODES的分配策略
109 可以在以後通過“mount -o remount,mpol=Policy:NodeList MountPoint”添加到掛載點。
/linux/include/linux/
H A Dmempolicy.h124 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol);
126 struct vm_area_struct *vma, struct mempolicy *mpol);
145 struct mempolicy **mpol, nodemask_t **nodemask);
164 extern int mpol_parse_str(char *str, struct mempolicy **mpol);
215 struct mempolicy *mpol) in mpol_shared_policy_init() argument
261 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
263 *mpol = NULL; in huge_node()
284 static inline int mpol_parse_str(char *str, struct mempolicy **mpol) in mpol_parse_str() argument
H A Dgfp.h325 struct mempolicy *mpol, pgoff_t ilx, int nid);
338 struct mempolicy *mpol, pgoff_t ilx, int nid) in folio_alloc_mpol_noprof() argument
/linux/mm/
H A Dswap_state.c516 * @mpol: NUMA memory allocation policy to be applied
530 struct mempolicy *mpol, pgoff_t ilx, in swap_cache_alloc_folio() argument
548 folio = folio_alloc_mpol(gfp_mask, 0, mpol, ilx, numa_node_id()); in swap_cache_alloc_folio()
599 struct mempolicy *mpol; in read_swap_cache_async() local
607 mpol = get_vma_policy(vma, addr, 0, &ilx); in read_swap_cache_async()
608 folio = swap_cache_alloc_folio(entry, gfp_mask, mpol, ilx, in read_swap_cache_async()
610 mpol_cond_put(mpol); in read_swap_cache_async()
684 * @mpol: NUMA memory allocation policy to be applied
699 struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead() argument
727 swp_entry(swp_type(entry), offset), gfp_mask, mpol, ilx, in swap_cluster_readahead()
[all …]
H A Dmempolicy.c485 /* Slow path of a mpol destructor. */
1192 * Take a refcount on the mpol, because we are about to in do_get_mempolicy()
2315 * huge_node(@vma, @addr, @gfp_flags, @mpol)
2319 * @mpol: pointer to mempolicy pointer for reference counted mempolicy
2328 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument
2334 *mpol = get_vma_policy(vma, addr, hstate_vma(vma)->order, &ilx); in huge_node()
2335 *nodemask = policy_nodemask(gfp_flags, *mpol, ilx, &nid); in huge_node()
2441 * @nid: Preferred node (usually numa_node_id() but @mpol may override it).
3203 * @mpol: struct mempolicy to install
3205 * Install non-NULL @mpol in inode's shared policy rb-tree.
[all …]
H A Dhugetlb.c1342 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma() local
1355 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_hugetlb_folio_vma()
1357 if (mpol_is_preferred_many(mpol)) { in dequeue_hugetlb_folio_vma()
1369 mpol_cond_put(mpol); in dequeue_hugetlb_folio_vma()
2176 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol() local
2181 nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); in alloc_buddy_hugetlb_folio_with_mpol()
2182 if (mpol_is_preferred_many(mpol)) { in alloc_buddy_hugetlb_folio_with_mpol()
2193 mpol_cond_put(mpol); in alloc_buddy_hugetlb_folio_with_mpol()
2244 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask() local
2250 if (mpol->mode == MPOL_BIND && in policy_mbind_nodemask()
[all …]
H A Dzswap.c993 struct mempolicy *mpol; in zswap_writeback_entry() local
1003 mpol = get_task_policy(current); in zswap_writeback_entry()
1004 folio = swap_cache_alloc_folio(swpentry, GFP_KERNEL, mpol, in zswap_writeback_entry()
H A Dslub.c4493 struct mempolicy *mpol = current->mempolicy; in __slab_alloc_node() local
4495 if (mpol) { in __slab_alloc_node()
4503 if (mpol->mode != MPOL_BIND || in __slab_alloc_node()
4504 !node_isset(numa_mem_id(), mpol->nodes)) in __slab_alloc_node()
4714 struct mempolicy *mpol = current->mempolicy; in alloc_from_pcs() local
4716 if (mpol) { in alloc_from_pcs()
4724 if (mpol->mode != MPOL_BIND || in alloc_from_pcs()
4725 !node_isset(numa_mem_id(), mpol->nodes)) in alloc_from_pcs()
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_numa_mpol.c182 /* MPOL test. Does not work as expected */ in TEST()
202 ksft_test_result_fail("Failed to wake 0 with MPOL: %m\n"); in TEST()
209 ksft_test_result_pass("futex2 MPOL hints test passed\n"); in TEST()
211 ksft_test_result_skip("futex2 MPOL hints test requires libnuma 2.0.18+\n"); in TEST()
/linux/kernel/futex/
H A Dcore.c339 struct mempolicy *mpol; in __futex_key_to_node() local
345 mpol = READ_ONCE(vma->vm_policy); in __futex_key_to_node()
346 if (!mpol) in __futex_key_to_node()
349 switch (mpol->mode) { in __futex_key_to_node()
351 node = first_node(mpol->nodes); in __futex_key_to_node()
355 if (mpol->home_node != NUMA_NO_NODE) in __futex_key_to_node()
356 node = mpol->home_node; in __futex_key_to_node()
/linux/ipc/
H A Dshm.c571 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shm_set_policy() argument
577 err = sfd->vm_ops->set_policy(vma, mpol); in shm_set_policy()
585 struct mempolicy *mpol = vma->vm_policy; in shm_get_policy() local
588 mpol = sfd->vm_ops->get_policy(vma, addr, ilx); in shm_get_policy()
589 return mpol; in shm_get_policy()
/linux/virt/kvm/
H A Dguest_memfd.c433 static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in kvm_gmem_set_policy() argument
437 return mpol_set_shared_policy(&GMEM_I(inode)->policy, vma, mpol); in kvm_gmem_set_policy()