/linux-6.6.21/Documentation/translations/zh_TW/filesystems/ |
D | tmpfs.rst | 77 mpol=default 採用進程分配策略 79 mpol=prefer:Node 傾向從給定的節點分配 80 mpol=bind:NodeList 只允許從指定的鍊表分配 81 mpol=interleave 傾向於依次從每個節點分配 82 mpol=interleave:NodeList 依次從每個節點分配 83 mpol=local 優先本地節點分配內存 87 分隔符的十進位數來表示。例如,mpol=bind0-3,5,7,9-15 105 例如,mpol=bind=staticNodeList相當於MPOL_BIND|MPOL_F_STATIC_NODES的分配策略 107 請注意,如果內核不支持NUMA,那麼使用mpol選項掛載tmpfs將會失敗;nodelist指定不 109 revocery內核),或者具有較少的節點在線,建議從自動模式中省略mpol選項掛載選項。 [all …]
|
/linux-6.6.21/Documentation/translations/zh_CN/filesystems/ |
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-6.6.21/include/linux/ |
D | mempolicy.h | 128 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol); 148 struct mempolicy **mpol, nodemask_t **nodemask); 169 extern int mpol_parse_str(char *str, struct mempolicy **mpol); 211 struct mempolicy *mpol) in mpol_shared_policy_init() argument 252 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 254 *mpol = NULL; in huge_node() 275 static inline int mpol_parse_str(char *str, struct mempolicy **mpol) in mpol_parse_str() argument
|
D | shmem_fs.h | 67 struct mempolicy *mpol; /* default memory policy for mappings */ member
|
/linux-6.6.21/Documentation/filesystems/ |
D | tmpfs.rst | 165 mpol=default use the process allocation policy 167 mpol=prefer:Node prefers to allocate memory from the given Node 168 mpol=bind:NodeList allocates memory only from nodes in NodeList 169 mpol=interleave prefers to allocate from each node in turn 170 mpol=interleave:NodeList allocates from each node of NodeList in turn 171 mpol=local prefers to allocate memory from the local node 176 largest node numbers in the range. For example, mpol=bind:0-3,5,7,9-15 198 For example, mpol=bind=static:NodeList, is the equivalent of an 201 Note that trying to mount a tmpfs with an mpol option will fail if the 206 online, then it is advisable to omit the mpol option from automatic [all …]
|
/linux-6.6.21/mm/ |
D | shmem.c | 115 struct mempolicy *mpol; member 1553 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument 1557 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol() 1560 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol() 1567 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() local 1568 if (sbinfo->mpol) { in shmem_get_sbmpol() 1570 mpol = sbinfo->mpol; in shmem_get_sbmpol() 1571 mpol_get(mpol); in shmem_get_sbmpol() 1574 return mpol; in shmem_get_sbmpol() 1577 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument [all …]
|
D | mempolicy.c | 2035 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 2040 *mpol = get_vma_policy(vma, addr); in huge_node() 2042 mode = (*mpol)->mode; in huge_node() 2045 nid = interleave_nid(*mpol, vma, addr, in huge_node() 2048 nid = policy_node(gfp_flags, *mpol, numa_node_id()); in huge_node() 2050 *nodemask = &(*mpol)->nodes; in huge_node() 2792 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) in mpol_shared_policy_init() argument 2799 if (mpol) { in mpol_shared_policy_init() 2807 new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init() 2812 ret = mpol_set_nodemask(new, &mpol->w.user_nodemask, scratch); in mpol_shared_policy_init() [all …]
|
D | hugetlb.c | 1402 struct mempolicy *mpol; in dequeue_hugetlb_folio_vma() local 1420 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_hugetlb_folio_vma() 1422 if (mpol_is_preferred_many(mpol)) { in dequeue_hugetlb_folio_vma() 1439 mpol_cond_put(mpol); in dequeue_hugetlb_folio_vma() 2479 struct mempolicy *mpol; in alloc_buddy_hugetlb_folio_with_mpol() local 2484 nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); in alloc_buddy_hugetlb_folio_with_mpol() 2485 if (mpol_is_preferred_many(mpol)) { in alloc_buddy_hugetlb_folio_with_mpol() 2497 mpol_cond_put(mpol); in alloc_buddy_hugetlb_folio_with_mpol() 2525 struct mempolicy *mpol; in alloc_hugetlb_folio_vma() local 2532 node = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in alloc_hugetlb_folio_vma() [all …]
|