/Linux-v6.1/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-v6.1/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-v6.1/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 | 50 struct mempolicy *mpol; /* default memory policy for mappings */ member
|
/Linux-v6.1/Documentation/filesystems/ |
D | tmpfs.rst | 94 mpol=default use the process allocation policy 96 mpol=prefer:Node prefers to allocate memory from the given Node 97 mpol=bind:NodeList allocates memory only from nodes in NodeList 98 mpol=interleave prefers to allocate from each node in turn 99 mpol=interleave:NodeList allocates from each node of NodeList in turn 100 mpol=local prefers to allocate memory from the local node 105 largest node numbers in the range. For example, mpol=bind:0-3,5,7,9-15 127 For example, mpol=bind=static:NodeList, is the equivalent of an 130 Note that trying to mount a tmpfs with an mpol option will fail if the 135 online, then it is advisable to omit the mpol option from automatic [all …]
|
/Linux-v6.1/mm/ |
D | shmem.c | 112 struct mempolicy *mpol; member 1450 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument 1454 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol() 1457 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol() 1464 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() local 1465 if (sbinfo->mpol) { in shmem_get_sbmpol() 1467 mpol = sbinfo->mpol; in shmem_get_sbmpol() 1468 mpol_get(mpol); in shmem_get_sbmpol() 1471 return mpol; in shmem_get_sbmpol() 1474 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument [all …]
|
D | mempolicy.c | 2017 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 2022 *mpol = get_vma_policy(vma, addr); in huge_node() 2024 mode = (*mpol)->mode; in huge_node() 2027 nid = interleave_nid(*mpol, vma, addr, in huge_node() 2030 nid = policy_node(gfp_flags, *mpol, numa_node_id()); in huge_node() 2032 *nodemask = &(*mpol)->nodes; in huge_node() 2773 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) in mpol_shared_policy_init() argument 2780 if (mpol) { in mpol_shared_policy_init() 2788 new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init() 2793 ret = mpol_set_nodemask(new, &mpol->w.user_nodemask, scratch); in mpol_shared_policy_init() [all …]
|
D | hugetlb.c | 1214 struct mempolicy *mpol; in dequeue_huge_page_vma() local 1232 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_huge_page_vma() 1234 if (mpol_is_preferred_many(mpol)) { in dequeue_huge_page_vma() 1249 mpol_cond_put(mpol); in dequeue_huge_page_vma() 2302 struct mempolicy *mpol; in alloc_buddy_huge_page_with_mpol() local 2307 nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); in alloc_buddy_huge_page_with_mpol() 2308 if (mpol_is_preferred_many(mpol)) { in alloc_buddy_huge_page_with_mpol() 2320 mpol_cond_put(mpol); in alloc_buddy_huge_page_with_mpol() 2347 struct mempolicy *mpol; in alloc_huge_page_vma() local 2354 node = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in alloc_huge_page_vma() [all …]
|