Home
last modified time | relevance | path

Searched refs:mempolicy (Results 1 – 22 of 22) sorted by relevance

/Linux-v5.10/include/linux/
Dmempolicy.h45 struct mempolicy { struct
65 extern void __mpol_put(struct mempolicy *pol);
66 static inline void mpol_put(struct mempolicy *pol) in mpol_put()
76 static inline int mpol_needs_cond_ref(struct mempolicy *pol) in mpol_needs_cond_ref()
81 static inline void mpol_cond_put(struct mempolicy *pol) in mpol_cond_put()
87 extern struct mempolicy *__mpol_dup(struct mempolicy *pol);
88 static inline struct mempolicy *mpol_dup(struct mempolicy *pol) in mpol_dup()
97 static inline void mpol_get(struct mempolicy *pol) in mpol_get()
103 extern bool __mpol_equal(struct mempolicy *a, struct mempolicy *b);
104 static inline bool mpol_equal(struct mempolicy *a, struct mempolicy *b) in mpol_equal()
[all …]
Dshmem_fs.h42 struct mempolicy *mpol; /* default memory policy for mappings */
Dsched.h48 struct mempolicy;
1118 struct mempolicy *mempolicy; member
Dmm_types.h371 struct mempolicy *vm_policy; /* NUMA policy for the VMA */
Dmm.h35 struct mempolicy;
595 int (*set_policy)(struct vm_area_struct *vma, struct mempolicy *new);
607 struct mempolicy *(*get_policy)(struct vm_area_struct *vma,
2518 struct mempolicy *, struct vm_userfaultfd_ctx);
/Linux-v5.10/mm/
Dmempolicy.c122 static struct mempolicy default_policy = {
128 static struct mempolicy preferred_node_policy[MAX_NUMNODES];
156 struct mempolicy *get_task_policy(struct task_struct *p) in get_task_policy()
158 struct mempolicy *pol = p->mempolicy; in get_task_policy()
176 int (*create)(struct mempolicy *pol, const nodemask_t *nodes);
177 void (*rebind)(struct mempolicy *pol, const nodemask_t *nodes);
180 static inline int mpol_store_user_nodemask(const struct mempolicy *pol) in mpol_store_user_nodemask()
193 static int mpol_new_interleave(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_interleave()
201 static int mpol_new_preferred(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_preferred()
212 static int mpol_new_bind(struct mempolicy *pol, const nodemask_t *nodes) in mpol_new_bind()
[all …]
DMakefile74 obj-$(CONFIG_NUMA) += mempolicy.o
Dshmem.c113 struct mempolicy *mpol;
1466 static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1478 static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
1480 struct mempolicy *mpol = NULL; in shmem_get_sbmpol()
1490 static inline void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) in shmem_show_mpol()
1493 static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo) in shmem_get_sbmpol()
2211 static int shmem_set_policy(struct vm_area_struct *vma, struct mempolicy *mpol) in shmem_set_policy()
2217 static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma, in shmem_get_policy()
Dhugetlb.c1097 struct mempolicy *mpol; in dequeue_huge_page_vma()
1894 struct mempolicy *mpol; in alloc_buddy_huge_page_with_mpol()
1929 struct mempolicy *mpol; in alloc_huge_page_vma()
Dslab.c3081 else if (current->mempolicy) in alternate_node_alloc()
3265 if (current->mempolicy || cpuset_do_slab_mem_spread()) { in __do_cache_alloc()
Dmmap.c1161 pgoff_t pgoff, struct mempolicy *policy, in vma_merge()
/Linux-v5.10/fs/proc/
Dinternal.h18 struct mempolicy;
295 struct mempolicy *task_mempolicy;
Dtask_mmu.c1860 struct mempolicy *pol; in show_numa_map()
/Linux-v5.10/Documentation/admin-guide/mm/
Dhugetlbpage.rst246 sysctl or attribute. When the ``nr_hugepages`` attribute is used, mempolicy
268 #. Regardless of mempolicy mode [see
271 specified in the mempolicy as if "interleave" had been specified.
287 Any of the other mempolicy modes may be used to specify a single node.
289 #. The nodes allowed mask will be derived from any non-default task mempolicy,
296 #. Any task mempolicy specified--e.g., using numactl--will be constrained by
328 resources exist, regardless of the task's mempolicy or cpuset constraints.
331 as we don't know until fault time, when the faulting task's mempolicy is
Dnuma_memory_policy.rst172 structure, struct mempolicy. Details of this structure will be
209 preferred_node member of struct mempolicy. When the internal
255 Without this flag, any time a mempolicy is rebound because of a
287 mempolicy is rebound because of a change in the set of allowed
307 if not already set, sets the node in the mempolicy nodemask.
333 To resolve use/free races, struct mempolicy contains an atomic reference
336 the structure back to the mempolicy kmem cache when the reference count
413 definitions are defined in <linux/mempolicy.h>.
/Linux-v5.10/fs/kernfs/
Dfile.c415 struct mempolicy *new) in kernfs_vma_set_policy()
435 static struct mempolicy *kernfs_vma_get_policy(struct vm_area_struct *vma, in kernfs_vma_get_policy()
440 struct mempolicy *pol; in kernfs_vma_get_policy()
/Linux-v5.10/kernel/
Dfork.c2030 p->mempolicy = mpol_dup(p->mempolicy); in copy_process()
2031 if (IS_ERR(p->mempolicy)) { in copy_process()
2032 retval = PTR_ERR(p->mempolicy); in copy_process()
2033 p->mempolicy = NULL; in copy_process()
2358 mpol_put(p->mempolicy); in copy_process()
/Linux-v5.10/kernel/sched/
Ddebug.c894 struct mempolicy *pol; in sched_show_numa()
900 pol = p->mempolicy; in sched_show_numa()
/Linux-v5.10/ipc/
Dshm.c460 static int shm_set_policy(struct vm_area_struct *vma, struct mempolicy *new) in shm_set_policy()
471 static struct mempolicy *shm_get_policy(struct vm_area_struct *vma, in shm_get_policy()
476 struct mempolicy *pol = NULL; in shm_get_policy()
/Linux-v5.10/Documentation/admin-guide/cgroup-v1/
Dcpusets.rst342 except perhaps as modified by the task's NUMA mempolicy or cpuset
349 or slab caches to ignore the task's NUMA mempolicy and be spread
353 is turned off, then the currently specified NUMA mempolicy once again
626 mempolicy MPOL_BIND, and the nodes to which it was bound overlap with
/Linux-v5.10/Documentation/filesystems/
Dproc.rst1639 cpuset. If it is due to a mempolicy's node(s) being exhausted, the allowed
1640 memory represents the set of mempolicy nodes. If it is due to a memory
1656 same system, cpuset, mempolicy, or memory controller resources to use at least
/Linux-v5.10/Documentation/admin-guide/sysctl/
Dvm.rst774 However, if a process limits using nodes by mempolicy/cpusets,