/linux/Documentation/admin-guide/cgroup-v1/ |
A D | cpusets.rst | 174 - cpuset.cpus: list of CPUs in that cpuset 175 - cpuset.mems: list of Memory Nodes in that cpuset 247 A cpuset that is cpuset.mem_exclusive *or* cpuset.mem_hardwall is "hardwalled", 637 If a cpuset has its 'cpuset.cpus' modified, then each task in that cpuset 697 /sys/fs/cgroup/cpuset tasks file for that cpuset. 704 mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset 741 # mount -t cgroup -o cpuset cpuset /sys/fs/cgroup/cpuset 762 cpuset.cpu_exclusive cpuset.mems 763 cpuset.cpus cpuset.sched_load_balance 771 the cpuset. [all …]
|
A D | memcg_test.rst | 168 mount -t cgroup -o cpuset none /opt/cpuset 170 mkdir /opt/cpuset/01 171 echo 1 > /opt/cpuset/01/cpuset.cpus 172 echo 0 > /opt/cpuset/01/cpuset.mems 173 echo 1 > /opt/cpuset/01/cpuset.memory_migrate 174 mkdir /opt/cpuset/02 175 echo 1 > /opt/cpuset/02/cpuset.cpus 176 echo 1 > /opt/cpuset/02/cpuset.mems 177 echo 1 > /opt/cpuset/02/cpuset.memory_migrate 181 under cpuset.:: [all …]
|
/linux/kernel/cgroup/ |
A D | cpuset.c | 88 struct cpuset { struct 213 static inline struct cpuset *parent_cs(struct cpuset *cs) in parent_cs() 422 struct cpuset *cs; in guarantee_online_cpus() 565 static struct cpuset *alloc_trial_cpuset(struct cpuset *cs) in alloc_trial_cpuset() 613 static int validate_change(struct cpuset *cur, struct cpuset *trial) in validate_change() 690 static int cpusets_overlap(struct cpuset *a, struct cpuset *b) in cpusets_overlap() 706 struct cpuset *cp; in update_domain_attr_tree() 1035 struct cpuset *cs; in rebuild_sched_domains_locked() 1127 struct cpuset *cs, struct cpuset *parent) in compute_effective_cpumask() 1194 struct cpuset *parent = parent_cs(cpuset); in update_parent_subparts_cpumask() [all …]
|
/linux/tools/testing/selftests/powerpc/benchmarks/ |
A 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()
|
A D | context_switch.c | 78 cpu_set_t cpuset; in start_thread_on() local 81 CPU_ZERO(&cpuset); in start_thread_on() 82 CPU_SET(cpu, &cpuset); in start_thread_on() 109 cpu_set_t *cpuset; in start_process_on() local 123 cpuset = CPU_ALLOC(ncpus); in start_process_on() 124 if (!cpuset) { in start_process_on() 128 CPU_ZERO_S(size, cpuset); in start_process_on() 129 CPU_SET_S(cpu, size, cpuset); in start_process_on() 131 if (sched_setaffinity(0, size, cpuset)) { in start_process_on() 133 CPU_FREE(cpuset); in start_process_on() [all …]
|
/linux/tools/testing/selftests/x86/ |
A D | sysret_ss_attrs.c | 55 cpu_set_t cpuset; in main() local 56 CPU_ZERO(&cpuset); in main() 57 CPU_SET(0, &cpuset); in main() 58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
A 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()
|
A 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 …]
|
A D | iopl.c | 174 cpu_set_t cpuset; in main() local 176 CPU_ZERO(&cpuset); in main() 177 CPU_SET(0, &cpuset); in main() 178 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
/linux/tools/testing/selftests/powerpc/tm/ |
A D | tm-poison.c | 29 cpu_set_t cpuset; in tm_poison_test() local 42 CPU_ZERO(&cpuset); in tm_poison_test() 43 CPU_SET(cpu, &cpuset); in tm_poison_test() 44 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0); in tm_poison_test()
|
A D | tm-trap.c | 253 cpu_set_t cpuset; in tm_trap_test() local 274 CPU_ZERO(&cpuset); in tm_trap_test() 275 CPU_SET(cpu, &cpuset); in tm_trap_test() 287 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_trap_test()
|
A D | tm-unavailable.c | 344 cpu_set_t cpuset; in tm_unavailable_test() local 353 CPU_ZERO(&cpuset); in tm_unavailable_test() 354 CPU_SET(cpu, &cpuset); in tm_unavailable_test() 362 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_unavailable_test()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | test_overhead.c | 49 cpu_set_t cpuset; in setaffinity() local 52 CPU_ZERO(&cpuset); in setaffinity() 53 CPU_SET(cpu, &cpuset); in setaffinity() 54 sched_setaffinity(0, sizeof(cpuset), &cpuset); in setaffinity()
|
/linux/tools/power/cpupower/bench/ |
A D | system.c | 77 cpu_set_t cpuset; in set_cpu_affinity() local 79 CPU_ZERO(&cpuset); in set_cpu_affinity() 80 CPU_SET(cpu, &cpuset); in set_cpu_affinity() 84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/linux/tools/testing/selftests/intel_pstate/ |
A D | aperf.c | 31 cpu_set_t cpuset; in main() local 54 CPU_ZERO(&cpuset); in main() 55 CPU_SET(cpu, &cpuset); in main() 57 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/linux/tools/testing/selftests/vm/ |
A D | hugetlb_reparenting_test.sh | 129 echo 0 >$CGROUP_ROOT/a/cpuset.mems 130 echo 0 >$CGROUP_ROOT/a/cpuset.cpus 136 echo 0 >$CGROUP_ROOT/a/b/cpuset.mems 137 echo 0 >$CGROUP_ROOT/a/b/cpuset.cpus 152 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.mems 153 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.cpus
|
/linux/samples/bpf/ |
A D | test_overhead_user.c | 87 cpu_set_t cpuset; in loop() local 89 CPU_ZERO(&cpuset); in loop() 90 CPU_SET(cpu, &cpuset); in loop() 91 sched_setaffinity(0, sizeof(cpuset), &cpuset); in loop()
|
/linux/tools/testing/selftests/bpf/ |
A D | test_tcpnotify_user.c | 82 cpu_set_t cpuset; in main() local 87 CPU_ZERO(&cpuset); in main() 88 CPU_SET(0, &cpuset); in main() 89 pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in main()
|
/linux/tools/perf/bench/ |
A D | futex-wake.c | 100 cpu_set_t cpuset; in block_threads() local 107 CPU_ZERO(&cpuset); in block_threads() 108 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 110 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
A D | futex-hash.c | 125 cpu_set_t cpuset; in bench_futex_hash() local 179 CPU_ZERO(&cpuset); in bench_futex_hash() 180 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in bench_futex_hash() 182 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset); in bench_futex_hash()
|
A D | futex-lock-pi.c | 123 cpu_set_t cpuset; in create_threads() local 138 CPU_ZERO(&cpuset); in create_threads() 139 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in create_threads() 141 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in create_threads()
|
A D | futex-requeue.c | 126 cpu_set_t cpuset; in block_threads() local 133 CPU_ZERO(&cpuset); in block_threads() 134 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 136 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
/linux/tools/testing/selftests/vDSO/ |
A D | vdso_test_correctness.c | 169 cpu_set_t cpuset; in test_getcpu() local 170 CPU_ZERO(&cpuset); in test_getcpu() 171 CPU_SET(cpu, &cpuset); in test_getcpu() 172 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in test_getcpu()
|
/linux/tools/testing/selftests/kvm/ |
A D | steal_time.c | 260 cpu_set_t cpuset; in main() local 270 CPU_ZERO(&cpuset); in main() 271 CPU_SET(0, &cpuset); in main() 273 pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in main() 274 pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in main()
|
/linux/tools/virtio/ringtest/ |
A 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()
|