Searched refs:cpuset (Results 1 - 25 of 67) sorted by last modified time

123

/linux-master/mm/
H A Dhugetlb.c17 #include <linux/cpuset.h>
4890 * Only enforce MPOL_BIND policy which overlaps with cpuset policy
5132 * When cpuset is configured, it breaks the strict hugetlb page
5134 * reservation is completely rubbish in the presence of cpuset because
5136 * current cpuset. Application can still potentially OOM'ed by kernel
5137 * with lack of free htlb page in cpuset that the task is in.
5138 * Attempt to enforce strict accounting with cpuset is almost
5139 * impossible (or too ugly) because cpuset is too fluid that
5142 * The change of semantics for shared hugetlb mapping with cpuset is
5146 * semantics that cpuset ha
[all...]
H A Dfilemap.c36 #include <linux/cpuset.h>
H A Dvmscan.c35 #include <linux/cpuset.h>
981 /* Demotion ignores all cpuset and mempolicy settings */
H A Dpage_alloc.c34 #include <linux/cpuset.h>
3188 * See also cpuset_node_allowed() comment in kernel/cgroup/cpuset.c.
3409 * fallback to ignore cpuset restriction if our nodes
3874 * Ignore cpuset mems for non-blocking __GFP_HIGH (probably
4016 * It's possible that cpuset's mems_allowed and the nodemask from
4018 * policy_nodemask(), but it's possible to race with cpuset update in
4023 * when it does not intersect with the cpuset restrictions) or the
4036 * to fail, check if the cpuset changed during allocation and if so,
4080 * there was a cpuset modification and we are retrying - otherwise we
4089 * Check for insane configurations where the cpuset does
[all...]
H A Doom_kill.c34 #include <linux/cpuset.h>
85 * and whether or not it has the same set of allowed cpuset nodes.
102 * cpuset is irrelevant. Only return true if its
110 * check the mems of tsk's cpuset.
294 /* Check this allocation failure is caused by cpuset's wall function */
420 * memcg, not in the same cpuset, or bound to a disjoint set of mempolicy nodes
1071 * does not panic for cpuset, mempolicy, or memcg allocation
H A Dmigrate.c28 #include <linux/cpuset.h>
H A Dmempolicy.c90 #include <linux/cpuset.h>
2561 * If mpol_dup() sees current->cpuset == cpuset_being_rebound, then it
2564 * keeps mempolicies cpuset relative after its cpuset moves. See
2565 * further kernel/cpuset.c update_nodemask().
2568 * cpuset's mems), so we needn't do rebind work for current task.
3253 * the mempolicy in a specific context [cpuset] at a later time.
H A Dslub.c27 #include <linux/cpuset.h>
2677 * between allocation and the cpuset
/linux-master/init/
H A Dmain.c52 #include <linux/cpuset.h>
/linux-master/kernel/
H A Dcpu.c37 #include <linux/cpuset.h>
/linux-master/kernel/sched/
H A Dcore.c42 #include <linux/cpuset.h>
3174 * for groups of tasks (ie. cpuset), so that load balancing is not
3281 * up the cpuset hierarchy until we find a suitable mask.
3304 * task, so override it based on its cpuset hierarchy.
3561 enum { cpuset, possible, fail } state = cpuset; enumerator in enum:__anon483
3590 case cpuset:
3613 if (state != cpuset) {
8386 * We must have raced with a concurrent cpuset update.
8387 * Just reset the cpumask to the cpuset'
[all...]
/linux-master/tools/testing/selftests/kvm/
H A Darch_timer.c103 cpu_set_t cpuset; local
106 CPU_ZERO(&cpuset);
107 CPU_SET(new_pcpu, &cpuset);
112 sizeof(cpuset), &cpuset);
/linux-master/arch/powerpc/mm/
H A Dnuma.c21 #include <linux/cpuset.h>
/linux-master/tools/testing/selftests/mm/
H A Dhugetlb_reparenting_test.sh135 echo 0 >$CGROUP_ROOT/a/cpuset.mems
136 echo 0 >$CGROUP_ROOT/a/cpuset.cpus
142 echo 0 >$CGROUP_ROOT/a/b/cpuset.mems
143 echo 0 >$CGROUP_ROOT/a/b/cpuset.cpus
158 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.mems
159 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.cpus
H A Dcharge_reserved_hugetlb.sh107 if [ -e "$cgroup_path/$name/cpuset.cpus" ]; then
108 echo 0 >$cgroup_path/$name/cpuset.cpus
110 if [ -e "$cgroup_path/$name/cpuset.mems" ]; then
111 echo 0 >$cgroup_path/$name/cpuset.mems
/linux-master/tools/perf/
H A Dbuiltin-c2c.c65 unsigned long *cpuset; member in struct:c2c_hist_entry
146 c2c_he->cpuset = bitmap_zalloc(c2c.cpus_cnt);
147 if (!c2c_he->cpuset)
168 zfree(&c2c_he->cpuset);
183 zfree(&c2c_he->cpuset);
232 __set_bit(sample->cpu, c2c_he->cpuset);
1204 bitmap_and(set, c2c_he->cpuset, c2c.nodes[node], c2c.cpus_cnt);
1321 scnprintf(buf, 10, "%d", bitmap_weight(c2c_he->cpuset, c2c.cpus_cnt));
/linux-master/tools/testing/selftests/bpf/
H A Dtest_progs.c366 cpu_set_t cpuset; local
369 CPU_ZERO(&cpuset);
371 CPU_SET(i, &cpuset);
373 err = sched_setaffinity(0, sizeof(cpuset), &cpuset);
379 err = pthread_setaffinity_np(pthread_self(), sizeof(cpuset), &cpuset);
H A Dbench.c445 cpu_set_t cpuset; local
448 CPU_ZERO(&cpuset);
449 CPU_SET(cpu, &cpuset);
450 err = pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset);
/linux-master/samples/bpf/
H A Dmap_perf_test_user.c333 cpu_set_t cpuset; local
336 CPU_ZERO(&cpuset);
337 CPU_SET(cpu, &cpuset);
338 sched_setaffinity(0, sizeof(cpuset), &cpuset);
/linux-master/kernel/cgroup/
H A Dcpuset.c2 * kernel/cpuset.c
27 #include <linux/cpuset.h>
53 * There could be abnormal cpuset configurations for cpu or memory
84 [PERR_INVCPUS] = "Invalid cpu list in cpuset.cpus.exclusive",
87 [PERR_NOTEXCL] = "Cpu list in cpuset.cpus not exclusive",
90 [PERR_CPUSEMPTY] = "cpuset.cpus is empty",
94 struct cpuset { struct
103 * cpuset.cpus and cpuset.mems, and won't be limited by the
107 * in the cpuset
[all...]
/linux-master/fs/proc/
H A Dbase.c80 #include <linux/cpuset.h>
3311 ONE("cpuset", S_IRUGO, proc_cpuset_show),
3660 ONE("cpuset", S_IRUGO, proc_cpuset_show),
H A Darray.c83 #include <linux/cpuset.h>
/linux-master/drivers/base/
H A Darch_topology.c17 #include <linux/cpuset.h>
/linux-master/tools/perf/bench/
H A Dfutex-wake-parallel.c150 cpu_set_t *cpuset; local
157 cpuset = CPU_ALLOC(nrcpus);
158 BUG_ON(!cpuset);
166 CPU_ZERO_S(size, cpuset);
167 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
169 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) {
170 CPU_FREE(cpuset);
175 CPU_FREE(cpuset);
180 CPU_FREE(cpuset);
H A Dfutex-wake.c100 cpu_set_t *cpuset; local
106 cpuset = CPU_ALLOC(nrcpus);
107 BUG_ON(!cpuset);
115 CPU_ZERO_S(size, cpuset);
116 CPU_SET_S(perf_cpu_map__cpu(cpu, i % perf_cpu_map__nr(cpu)).cpu, size, cpuset);
118 if (pthread_attr_setaffinity_np(&thread_attr, size, cpuset)) {
119 CPU_FREE(cpuset);
124 CPU_FREE(cpuset);
129 CPU_FREE(cpuset);

Completed in 410 milliseconds

123