| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | tmpfs.rst | 76 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 D | tmpfs.rst | 76 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 D | swap_state.c | 412 struct mempolicy *mpol, pgoff_t ilx) in __swap_cache_alloc() argument 439 if (mpol || !vmf) { in __swap_cache_alloc() 440 folio = folio_alloc_mpol(gfp, order, mpol, ilx, numa_node_id()); in __swap_cache_alloc() 516 struct mempolicy *mpol, pgoff_t ilx) in swap_cache_alloc_folio() argument 531 vmf, mpol, ilx); in swap_cache_alloc_folio() 643 swp_entry_t entry, gfp_t gfp, struct mempolicy *mpol, in swap_cache_read_folio() argument 652 folio = swap_cache_alloc_folio(entry, gfp, BIT(0), NULL, mpol, ilx); in swap_cache_read_folio() 684 struct vm_fault *vmf, struct mempolicy *mpol, pgoff_t ilx) in swapin_sync() argument 693 folio = swap_cache_alloc_folio(entry, gfp, orders, vmf, mpol, ilx); in swapin_sync() 714 struct mempolicy *mpol; in read_swap_cache_async() local [all …]
|
| H A D | swap.h | 317 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 D | shmem.c | 117 struct mempolicy *mpol; member 1768 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument 1772 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol() 1775 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol() 1777 seq_printf(seq, ",mpol=%s", buffer); in shmem_show_mpol() 1782 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() local 1783 if (sbinfo->mpol) { in shmem_get_sbmpol() 1785 mpol = sbinfo->mpol; in shmem_get_sbmpol() 1792 shmem_show_mpol(struct seq_file * seq,struct mempolicy * mpol) shmem_show_mpol() argument 1807 struct mempolicy *mpol; shmem_swapin_cluster() local 1928 struct mempolicy *mpol; shmem_alloc_folio() local 2049 struct mempolicy *mpol; shmem_swap_alloc_folio() local 2849 shmem_set_policy(struct vm_area_struct * vma,struct mempolicy * mpol) shmem_set_policy() argument 2875 struct mempolicy *mpol; shmem_get_pgoff_policy() local 4760 struct mempolicy *mpol = NULL; shmem_reconfigure() local 4855 struct mempolicy *mpol; shmem_show_options() local [all...] |
| H A D | mempolicy.c | 2322 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 2328 *mpol = get_vma_policy(vma, addr, hstate_vma(vma)->order, &ilx); in huge_node() 2329 *nodemask = policy_nodemask(gfp_flags, *mpol, ilx, &nid); in huge_node() 3206 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) in mpol_shared_policy_init() argument 3213 if (mpol) { in mpol_shared_policy_init() 3222 npol = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init() 3227 ret = mpol_set_nodemask(npol, &mpol->w.user_nodemask, scratch); in mpol_shared_policy_init() 3241 mpol_put(mpol); /* drop our incoming ref on sb mpol */ in mpol_shared_policy_init() 3416 int mpol_parse_str(char *str, struct mempolicy **mpol) in mpol_parse_str() argument 3536 *mpol = new; in mpol_parse_str()
|
| H A D | hugetlb.c | 2224 struct mempolicy *mpol = get_task_policy(current); in policy_mbind_nodemask() local 2230 if (mpol->mode == MPOL_BIND && in policy_mbind_nodemask() 2231 (apply_policy_zone(mpol, gfp_zone(gfp)) && in policy_mbind_nodemask() 2232 cpuset_nodemask_valid_mems_allowed(&mpol->nodes))) in policy_mbind_nodemask() 2233 return &mpol->nodes; in policy_mbind_nodemask() 2960 struct mempolicy *mpol; in alloc_hugetlb_folio() local 3023 nid = huge_node(vma, addr, gfp, &mpol, &nodemask); in alloc_hugetlb_folio() 3027 .mode = mpol ? mpol->mode : MPOL_DEFAULT, in alloc_hugetlb_folio() 3036 mpol_cond_put(mpol); in alloc_hugetlb_folio() 6252 struct mempolicy *mpol; in alloc_hugetlb_folio_vma() local [all …]
|
| H A D | zswap.c | 993 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, BIT(0), NULL, mpol, in zswap_writeback_entry()
|
| H A D | slub.c | 4612 struct mempolicy *mpol = current->mempolicy; in apply_strict_numa_policy() local 4614 if (mpol) { in apply_strict_numa_policy() 4622 if (mpol->mode != MPOL_BIND || in apply_strict_numa_policy() 4623 !node_isset(numa_mem_id(), mpol->nodes)) in apply_strict_numa_policy()
|
| /linux/include/linux/ |
| H A D | mempolicy.h | 124 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 D | shmem_fs.h | 85 struct mempolicy *mpol; /* default memory policy for mappings */ member
|
| /linux/kernel/futex/ |
| H A D | core.c | 296 struct mempolicy *mpol; in __futex_key_to_node() 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() 294 struct mempolicy *mpol; __futex_key_to_node() local
|
| /linux/virt/kvm/ |
| H A D | guest_memfd.c | 400 static int kvm_gmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in kvm_gmem_fault_user_mapping() 404 return mpol_set_shared_policy(&GMEM_I(inode)->policy, vma, mpol); in kvm_gmem_fault_user_mapping() 433 kvm_gmem_set_policy(struct vm_area_struct * vma,struct mempolicy * mpol) kvm_gmem_set_policy() argument
|