Home
last modified time | relevance | path

Searched refs: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的分配策略
106 请注意,如果内核不支持NUMA,那么使用mpol选项挂载tmpfs将会失败;nodelist指定不
108 revocery内核),或者具有较少的节点在线,建议从自动模式中省略mpol选项挂载选项。
[all …]
/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的分配策略
106 請注意,如果內核不支持NUMA,那麼使用mpol選項掛載tmpfs將會失敗;nodelist指定不
108 revocery內核),或者具有較少的節點在線,建議從自動模式中省略mpol選項掛載選項。
[all …]
/linux/mm/
H A Dswap_state.c430 struct mempolicy *mpol, pgoff_t ilx) in __swap_cache_alloc()
457 if (mpol || !vmf) { in __swap_cache_alloc()
458 folio = folio_alloc_mpol(gfp, order, mpol, ilx, numa_node_id()); in __swap_cache_alloc()
519 * @mpol: NUMA memory allocation policy to be applied in swap_cache_alloc_folio()
536 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_alloc_folio()
551 vmf, mpol, ilx);
705 swp_entry_t entry, gfp_t gfp, struct mempolicy *mpol,
714 folio = __swap_cache_alloc_folio(entry, gfp, BIT(0), NULL, mpol, ilx); in read_swap_cache_async() local
736 * @mpol: NUMA memory allocation policy to be applied in swap_cache_read_folio_sync()
747 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_ in __swapin_nr_pages()
412 __swap_cache_alloc(struct swap_cluster_info * ci,swp_entry_t targ_entry,gfp_t gfp,unsigned int order,struct vm_fault * vmf,struct mempolicy * mpol,pgoff_t ilx) __swap_cache_alloc() argument
516 swap_cache_alloc_folio(swp_entry_t targ_entry,gfp_t gfp,unsigned long orders,struct vm_fault * vmf,struct mempolicy * mpol,pgoff_t ilx) swap_cache_alloc_folio() argument
643 swap_cache_read_folio(struct swap_io_ctx * ctx,swp_entry_t entry,gfp_t gfp,struct mempolicy * mpol,pgoff_t ilx,bool readahead) swap_cache_read_folio() argument
684 swapin_sync(swp_entry_t entry,gfp_t gfp,unsigned long orders,struct vm_fault * vmf,struct mempolicy * mpol,pgoff_t ilx) swapin_sync() argument
731 swap_cache_read_folio_sync(swp_entry_t entry,gfp_t gfp,struct mempolicy * mpol,pgoff_t ilx) swap_cache_read_folio_sync() argument
821 swap_cluster_readahead(swp_entry_t entry,gfp_t gfp_mask,struct mempolicy * mpol,pgoff_t ilx) swap_cluster_readahead() argument
916 swap_vma_readahead(swp_entry_t targ_entry,gfp_t gfp_mask,struct mempolicy * mpol,pgoff_t targ_ilx,struct vm_fault * vmf) swap_vma_readahead() argument
990 struct mempolicy *mpol; swapin_readahead() local
[all...]
H A Dswap.h317 struct mempolicy *mpol, pgoff_t ilx);
331 struct mempolicy *mpol, pgoff_t ilx);
335 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx);
403 gfp_t gfp_mask, struct mempolicy *mpol, pgoff_t ilx) in swap_cluster_readahead() argument
416 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync() argument
H A Dshmem.c118 struct mempolicy *mpol;
2039 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_alloc_and_add_folio()
2043 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_alloc_and_add_folio()
2046 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_swap_alloc_folio()
2048 seq_printf(seq, ",mpol=%s", buffer); in shmem_swap_alloc_folio()
2053 struct mempolicy *mpol = NULL; in shmem_swap_alloc_folio()
2054 if (sbinfo->mpol) { in shmem_swap_alloc_folio()
2056 mpol = sbinfo->mpol; in shmem_swap_alloc_folio()
117 struct mempolicy *mpol; global() member
1768 shmem_show_mpol(struct seq_file * seq,struct mempolicy * mpol) shmem_show_mpol() argument
1782 struct mempolicy *mpol = NULL; shmem_get_sbmpol() local
1792 shmem_show_mpol(struct seq_file * seq,struct mempolicy * mpol) shmem_show_mpol() argument
1807 struct mempolicy *mpol; shmem_swapin_cluster() local
1931 struct mempolicy *mpol; shmem_alloc_folio() local
2052 struct mempolicy *mpol; shmem_swap_alloc_folio() local
2852 shmem_set_policy(struct vm_area_struct * vma,struct mempolicy * mpol) shmem_set_policy() argument
2878 struct mempolicy *mpol; shmem_get_pgoff_policy() local
4763 struct mempolicy *mpol = NULL; shmem_reconfigure() local
4858 struct mempolicy *mpol; shmem_show_options() local
[all...]
H A Dmempolicy.c510 /* Slow path of a mpol destructor. */ in mpol_rebind_nodemask()
1218 * Take a refcount on the mpol, because we are about to in do_get_mempolicy()
2343 * huge_node(@vma, @addr, @gfp_flags, @mpol)
2347 * @mpol: pointer to mempolicy pointer for reference counted mempolicy
2356 struct mempolicy **mpol, nodemask_t **nodemask) in init_nodemask_of_mempolicy()
2362 *mpol = get_vma_policy(vma, addr, hstate_vma(vma)->order, &ilx); in init_nodemask_of_mempolicy()
2363 *nodemask = policy_nodemask(gfp_flags, *mpol, ilx, &nid); in init_nodemask_of_mempolicy()
2471 * @nid: Preferred node (usually numa_node_id() but @mpol may override it). in alloc_pages_mpol()
3243 * @mpol: struct mempolicy to install in mpol_shared_policy_init()
3245 * Install non-NULL @mpol i
2322 huge_node(struct vm_area_struct * vma,unsigned long addr,gfp_t gfp_flags,struct mempolicy ** mpol,nodemask_t ** nodemask) huge_node() argument
3206 mpol_shared_policy_init(struct shared_policy * sp,struct mempolicy * mpol) mpol_shared_policy_init() argument
3416 mpol_parse_str(char * str,struct mempolicy ** mpol) mpol_parse_str() argument
[all...]
H A Dhugetlb.c2264 struct mempolicy *mpol = get_task_policy(current); in gather_surplus_pages()
2270 if (mpol->mode == MPOL_BIND && in gather_surplus_pages()
2271 (apply_policy_zone(mpol, gfp_zone(gfp)) && in gather_surplus_pages()
2272 cpuset_nodemask_valid_mems_allowed(&mpol->nodes))) in gather_surplus_pages()
2273 return &mpol->nodes; in gather_surplus_pages()
3018 struct mempolicy *mpol; in alloc_hugetlb_folio()
3080 /* Takes reference on mpol. */ in alloc_hugetlb_folio()
3081 nid = huge_node(vma, addr, gfp, &mpol, &nodemask); in alloc_hugetlb_folio()
3085 .mode = mpol ? mpol in alloc_hugetlb_folio()
2224 struct mempolicy *mpol = get_task_policy(current); policy_mbind_nodemask() local
2960 struct mempolicy *mpol; alloc_hugetlb_folio() local
6252 struct mempolicy *mpol; alloc_hugetlb_folio_vma() local
[all...]
H A Dzswap.c1011 struct mempolicy *mpol; in zswap_writeback_entry()
1021 mpol = get_task_policy(current); in zswap_writeback_entry()
1022 folio = __swap_cache_alloc_folio(swpentry, GFP_KERNEL, BIT(0), NULL, mpol, in zswap_writeback_entry()
993 struct mempolicy *mpol; zswap_writeback_entry() local
H A Dslub.c4649 struct mempolicy *mpol = current->mempolicy; in slab_post_alloc_hook()
4651 if (mpol) { in slab_post_alloc_hook()
4659 if (mpol->mode != MPOL_BIND || in slab_post_alloc_hook()
4660 !node_isset(numa_mem_id(), mpol->nodes)) in slab_post_alloc_hook()
4612 struct mempolicy *mpol = current->mempolicy; apply_strict_numa_policy() local
/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 Dshmem_fs.h91 struct mempolicy *mpol; /* default memory policy for mappings */
85 struct mempolicy *mpol; /* default memory policy for mappings */ global() member
/linux/kernel/futex/
H A Dcore.c296 struct mempolicy *mpol; in __futex_key_to_node() local
302 mpol = READ_ONCE(vma->vm_policy); in __futex_key_to_node()
303 if (!mpol) in __futex_key_to_node()
306 switch (mpol->mode) { in __futex_key_to_node()
308 node = first_node(mpol->nodes); in __futex_key_to_node()
312 if (mpol->home_node != NUMA_NO_NODE) in __futex_key_to_node()
313 node = mpol->home_node; in __futex_key_to_node()
/linux/virt/kvm/
H A Dguest_memfd.c490 static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in kvm_gmem_error_folio()
494 return mpol_set_shared_policy(&GMEM_I(inode)->policy, vma, mpol); in kvm_gmem_free_folio()
400 kvm_gmem_set_policy(struct vm_area_struct * vma,struct mempolicy * mpol) kvm_gmem_set_policy() argument