/Linux-v4.19/Documentation/cgroup-v1/ |
D | cpusets.txt | 45 the resources within a task's current cpuset. They form a nested 56 policy, are both filtered through that task's cpuset, filtering out any 57 CPUs or Memory Nodes not in that cpuset. The scheduler will not 64 cpusets and which CPUs and Memory Nodes are assigned to each cpuset, 65 specify and query to which cpuset a task is assigned, and list the 66 task pids assigned to a cpuset. 100 The kernel cpuset patch provides the minimum essential kernel 121 - Each task in the system is attached to a cpuset, via a pointer 124 allowed in that task's cpuset. 126 those Memory Nodes allowed in that task's cpuset. [all …]
|
D | memcg_test.txt | 138 For NUMA, migration is an another special case. To do easy test, cpuset 141 mount -t cgroup -o cpuset none /opt/cpuset 143 mkdir /opt/cpuset/01 144 echo 1 > /opt/cpuset/01/cpuset.cpus 145 echo 0 > /opt/cpuset/01/cpuset.mems 146 echo 1 > /opt/cpuset/01/cpuset.memory_migrate 147 mkdir /opt/cpuset/02 148 echo 1 > /opt/cpuset/02/cpuset.cpus 149 echo 1 > /opt/cpuset/02/cpuset.mems 150 echo 1 > /opt/cpuset/02/cpuset.memory_migrate [all …]
|
/Linux-v4.19/kernel/cgroup/ |
D | cpuset.c | 79 struct cpuset { struct 139 static inline struct cpuset *css_cs(struct cgroup_subsys_state *css) in css_cs() argument 141 return css ? container_of(css, struct cpuset, css) : NULL; in css_cs() 145 static inline struct cpuset *task_cs(struct task_struct *task) in task_cs() 150 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() 181 static inline bool is_cpuset_online(struct cpuset *cs) in is_cpuset_online() 186 static inline int is_cpu_exclusive(const struct cpuset *cs) in is_cpu_exclusive() 191 static inline int is_mem_exclusive(const struct cpuset *cs) in is_mem_exclusive() 196 static inline int is_mem_hardwall(const struct cpuset *cs) in is_mem_hardwall() 201 static inline int is_sched_load_balance(const struct cpuset *cs) in is_sched_load_balance() [all …]
|
/Linux-v4.19/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 63 cpu_set_t cpuset; in main() local 64 CPU_ZERO(&cpuset); in main() 65 CPU_SET(0, &cpuset); in main() 66 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | iopl.c | 47 cpu_set_t cpuset; in main() local 48 CPU_ZERO(&cpuset); in main() 49 CPU_SET(0, &cpuset); in main() 50 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ioperm.c | 90 cpu_set_t cpuset; in main() local 91 CPU_ZERO(&cpuset); in main() 92 CPU_SET(0, &cpuset); in main() 93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ldt_gdt.c | 437 cpu_set_t cpuset; in threadproc() local 438 CPU_ZERO(&cpuset); in threadproc() 439 CPU_SET(1, &cpuset); in threadproc() 440 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in threadproc() 532 cpu_set_t cpuset; in do_multicpu_tests() local 537 CPU_ZERO(&cpuset); in do_multicpu_tests() 538 CPU_SET(1, &cpuset); in do_multicpu_tests() 539 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests() 544 CPU_ZERO(&cpuset); in do_multicpu_tests() 545 CPU_SET(0, &cpuset); in do_multicpu_tests() [all …]
|
D | test_vdso.c | 139 cpu_set_t cpuset; in test_getcpu() local 140 CPU_ZERO(&cpuset); in test_getcpu() 141 CPU_SET(cpu, &cpuset); in test_getcpu() 142 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in test_getcpu()
|
D | fsgsbase.c | 391 cpu_set_t cpuset; in main() local 392 CPU_ZERO(&cpuset); in main() 393 CPU_SET(0, &cpuset); in main() 394 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | test_vsyscall.c | 319 cpu_set_t cpuset; in test_getcpu() local 320 CPU_ZERO(&cpuset); in test_getcpu() 321 CPU_SET(cpu, &cpuset); in test_getcpu() 322 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in test_getcpu()
|
/Linux-v4.19/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 32 cpu_set_t cpuset; in set_cpu() local 37 CPU_ZERO(&cpuset); in set_cpu() 38 CPU_SET(cpu, &cpuset); in set_cpu() 40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu() 137 cpu_set_t cpuset; in bench_thread() local 149 CPU_ZERO(&cpuset); in bench_thread() 150 CPU_SET(cpu, &cpuset); in bench_thread() 152 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in bench_thread()
|
D | context_switch.c | 81 cpu_set_t cpuset; in start_thread_on() local 84 CPU_ZERO(&cpuset); in start_thread_on() 85 CPU_SET(cpu, &cpuset); in start_thread_on() 94 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in start_thread_on() 112 cpu_set_t cpuset; in start_process_on() local 123 CPU_ZERO(&cpuset); in start_process_on() 124 CPU_SET(cpu, &cpuset); in start_process_on() 126 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in start_process_on()
|
/Linux-v4.19/tools/testing/selftests/powerpc/tm/ |
D | tm-tmspr.c | 44 cpu_set_t cpuset; in tfiar_tfhar() local 46 CPU_ZERO(&cpuset); in tfiar_tfhar() 48 CPU_SET(cpu, &cpuset); in tfiar_tfhar() 49 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
|
D | tm-trap.c | 254 cpu_set_t cpuset; in tm_trap_test() local 271 CPU_ZERO(&cpuset); in tm_trap_test() 272 CPU_SET(0, &cpuset); in tm_trap_test() 284 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_trap_test()
|
D | tm-unavailable.c | 341 cpu_set_t cpuset; in tm_unavailable_test() local 346 CPU_ZERO(&cpuset); in tm_unavailable_test() 347 CPU_SET(0, &cpuset); in tm_unavailable_test() 355 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_unavailable_test()
|
/Linux-v4.19/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 27 cpu_set_t cpuset; in main() local 50 CPU_ZERO(&cpuset); in main() 51 CPU_SET(cpu, &cpuset); in main() 53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/Linux-v4.19/tools/power/cpupower/bench/ |
D | system.c | 90 cpu_set_t cpuset; in set_cpu_affinity() local 92 CPU_ZERO(&cpuset); in set_cpu_affinity() 93 CPU_SET(cpu, &cpuset); in set_cpu_affinity() 97 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/Linux-v4.19/samples/bpf/ |
D | test_overhead_user.c | 86 cpu_set_t cpuset; in loop() local 88 CPU_ZERO(&cpuset); in loop() 89 CPU_SET(cpu, &cpuset); in loop() 90 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
|
D | map_perf_test_user.c | 329 cpu_set_t cpuset; in loop() local 332 CPU_ZERO(&cpuset); in loop() 333 CPU_SET(cpu, &cpuset); in loop() 334 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
|
/Linux-v4.19/tools/perf/bench/ |
D | futex-wake.c | 95 cpu_set_t cpuset; in block_threads() local 102 CPU_ZERO(&cpuset); in block_threads() 103 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 105 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
D | futex-requeue.c | 89 cpu_set_t cpuset; in block_threads() local 96 CPU_ZERO(&cpuset); in block_threads() 97 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 99 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
D | futex-lock-pi.c | 120 cpu_set_t cpuset; in create_threads() local 135 CPU_ZERO(&cpuset); in create_threads() 136 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in create_threads() 138 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in create_threads()
|
D | futex-hash.c | 121 cpu_set_t cpuset; in bench_futex_hash() local 169 CPU_ZERO(&cpuset); in bench_futex_hash() 170 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in bench_futex_hash() 172 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset); in bench_futex_hash()
|
D | futex-wake-parallel.c | 143 cpu_set_t cpuset; in block_threads() local 150 CPU_ZERO(&cpuset); in block_threads() 151 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 153 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
/Linux-v4.19/tools/virtio/ringtest/ |
D | main.c | 78 cpu_set_t cpuset; in set_affinity() local 93 CPU_ZERO(&cpuset); in set_affinity() 94 CPU_SET(cpu, &cpuset); in set_affinity() 96 ret = pthread_setaffinity_np(self, sizeof(cpu_set_t), &cpuset); in set_affinity()
|