/linux-6.1.9/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.1.9/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.1.9/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-6.1.9/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-6.1.9/mm/ |
D | shmem.c | 112 struct mempolicy *mpol; member 1448 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument 1452 if (!mpol || mpol->mode == MPOL_DEFAULT) in shmem_show_mpol() 1455 mpol_to_str(buffer, sizeof(buffer), mpol); in shmem_show_mpol() 1462 struct mempolicy *mpol = NULL; in shmem_get_sbmpol() local 1463 if (sbinfo->mpol) { in shmem_get_sbmpol() 1465 mpol = sbinfo->mpol; in shmem_get_sbmpol() 1466 mpol_get(mpol); in shmem_get_sbmpol() 1469 return mpol; in shmem_get_sbmpol() 1472 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol() argument [all …]
|
D | mempolicy.c | 2018 struct mempolicy **mpol, nodemask_t **nodemask) in huge_node() argument 2023 *mpol = get_vma_policy(vma, addr); in huge_node() 2025 mode = (*mpol)->mode; in huge_node() 2028 nid = interleave_nid(*mpol, vma, addr, in huge_node() 2031 nid = policy_node(gfp_flags, *mpol, numa_node_id()); in huge_node() 2033 *nodemask = &(*mpol)->nodes; in huge_node() 2774 void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol) in mpol_shared_policy_init() argument 2781 if (mpol) { in mpol_shared_policy_init() 2789 new = mpol_new(mpol->mode, mpol->flags, &mpol->w.user_nodemask); in mpol_shared_policy_init() 2794 ret = mpol_set_nodemask(new, &mpol->w.user_nodemask, scratch); in mpol_shared_policy_init() [all …]
|
D | hugetlb.c | 1362 struct mempolicy *mpol; in dequeue_huge_page_vma() local 1380 nid = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in dequeue_huge_page_vma() 1382 if (mpol_is_preferred_many(mpol)) { in dequeue_huge_page_vma() 1397 mpol_cond_put(mpol); in dequeue_huge_page_vma() 2450 struct mempolicy *mpol; in alloc_buddy_huge_page_with_mpol() local 2455 nid = huge_node(vma, addr, gfp_mask, &mpol, &nodemask); in alloc_buddy_huge_page_with_mpol() 2456 if (mpol_is_preferred_many(mpol)) { in alloc_buddy_huge_page_with_mpol() 2468 mpol_cond_put(mpol); in alloc_buddy_huge_page_with_mpol() 2495 struct mempolicy *mpol; in alloc_huge_page_vma() local 2502 node = huge_node(vma, address, gfp_mask, &mpol, &nodemask); in alloc_huge_page_vma() [all …]
|