Lines Matching full:cpus

25 SUBPARTS_CPUS=$CGROUP2/.__DEBUG__.cpuset.cpus.subpartitions
26 CPULIST=$(cat $CGROUP2/cpuset.cpus.effective)
29 [[ $NR_CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!"
79 echo 0-6 > test/cpuset.cpus
80 echo root > test/cpuset.cpus.partition
81 cat test/cpuset.cpus.partition | grep -q invalid
83 echo member > test/cpuset.cpus.partition
84 echo "" > test/cpuset.cpus
88 # If isolated CPUs have been reserved at boot time (as shown in
89 # cpuset.cpus.isolated), these isolated CPUs should be outside of CPUs 0-8
92 # these isolated CPUs are leftover from previous run and have just been
95 # These pre-isolated CPUs should stay in an isolated state throughout the
98 BOOT_ISOLCPUS=$(cat $CGROUP2/cpuset.cpus.isolated)
101 BOOT_ISOLCPUS=$(cat $CGROUP2/cpuset.cpus.isolated)
106 skip_test "Pre-isolated CPUs ($BOOT_ISOLCPUS) overlap CPUs to be tested"
107 echo "Pre-isolated CPUs: $BOOT_ISOLCPUS"
146 echo $EXPECTED_VAL > cpuset.cpus.partition
148 ACTUAL_VAL=$(cat cpuset.cpus.partition)
150 echo "cpuset.cpus.partition: expect $EXPECTED_VAL, found $ACTUAL_VAL"
159 ACTUAL_VAL=$(cat cpuset.cpus.effective)
161 echo "cpuset.cpus.effective: expect '$EXPECTED_VAL', found '$ACTUAL_VAL'"
196 # P<v> = set cpus.partition (0:member, 1:root, 2:isolated)
197 # C<l> = add cpu-list to cpuset.cpus
198 # X<l> = add cpu-list to cpuset.cpus.exclusive
201 # CX<l> = add cpu-list to both cpuset.cpus and cpuset.cpus.exclusive
204 # ECPUs - effective CPUs of cpusets
206 # ISOLCPUS - isolated CPUs (<icpus>[,<icpus2>])
209 # sched-debug matching which includes offline CPUs and single-CPU partitions
210 # while the second one is for matching cpuset.cpus.isolated.
265 # Remote partition and cpuset.cpus.exclusive tests
310 # cpus.exclusive.effective clearing test
355 # Incorrect change to cpuset.cpus[.exclusive] invalidates partition root
357 # Adding CPUs to partition root that are not in parent's
358 # cpuset.cpus is allowed, but those extra CPUs are ignored.
361 # Taking away all CPUs from parent or itself if there are tasks
372 # cpuset.cpus can contains cpus not in parent's cpuset.cpus as long
376 # Deletion of CPUs distributed to child cgroup is allowed.
379 # To become a valid partition root, cpuset.cpus must overlap parent's
380 # cpuset.cpus.
391 # A non-exclusive cpuset.cpus change will invalidate partition and its siblings
396 # cpuset.cpus can overlap with sibling cpuset.cpus.exclusive but not subsumed by it
399 # Child partition root that try to take all CPUs from parent partition
405 # Clearing of cpuset.cpus with a preset cpuset.cpus.exclusive shouldn't
406 # affect cpuset.cpus.exclusive.effective.
409 # cpuset.cpus can contain CPUs that overlap a sibling cpuset with cpus.exclusive
411 # in cpuset.cpus of a local partition that overlaps sibling exclusive CPUs will
427 # Changes to cpuset.cpus.exclusive that violate exclusivity rule is rejected
430 # cpuset.cpus cannot be a subset of sibling cpuset.cpus.exclusive
441 # rtest (cpuset.cpus.exclusive=1-7)
451 # Only CPUs 1-7 should be used.
472 # p1 as member, will get its effective CPUs from its parent rtest
529 PFILE=$CGRP/cpuset.cpus.partition
530 CFILE=$CGRP/cpuset.cpus
531 XFILE=$CGRP/cpuset.cpus.exclusive
538 CPUS=${CMD#?}
539 COMM="echo $CPUS > $XFILE"
543 CPUS=${CMD#??}
544 COMM="echo $CPUS > $CFILE; echo $CPUS > $XFILE"
547 C*) CPUS=${CMD#?}
548 COMM="echo $CPUS > $CFILE"
627 CPUS=$DIR/cpuset.cpus
628 ECPUS=$DIR/cpuset.cpus.effective
629 XCPUS=$DIR/cpuset.cpus.exclusive
630 XECPUS=$DIR/cpuset.cpus.exclusive.effective
631 PRS=$DIR/cpuset.cpus.partition
632 PCPUS=$DIR/.__DEBUG__.cpuset.cpus.subpartitions
633 ISCPUS=$DIR/cpuset.cpus.isolated
634 [[ -e $CPUS ]] && echo "$CPUS: $(cat $CPUS)"
660 # Check effective cpus
675 FILE=cpuset.cpus.exclusive.effective
677 FILE=cpuset.cpus.effective
703 P*) FILE=$CGRP_DIR/cpuset.cpus.partition
733 DOMS=$(cat $CGRP_DIR/cpuset.cpus.effective)
742 # Get isolated (including offline) CPUs by looking at
743 # /sys/kernel/debug/sched/domains and cpuset.cpus.isolated control file,
746 # Note that isolated CPUs from the sched/domains context include offline
747 # CPUs as well as CPUs in non-isolated 1-CPU partition. Those CPUs may
748 # not be included in the cpuset.cpus.isolated control file which contains
749 # only CPUs in isolated partitions as well as those that are isolated at
754 # <isolcpus2> - cpuset.cpus.isolated value = <isolcpus1> if not defined
759 ISCPUS=${CGROUP2}/cpuset.cpus.isolated
777 # Appending pre-isolated CPUs
779 # to make appending those CPUs easier.
787 # Check cpuset.cpus.isolated cpumask
799 # Use the sched domain in debugfs to check isolated CPUs, if available
847 # Check to see if there are unexpected isolated CPUs left beyond the boot
862 echo "Unexpected isolated CPUs: $ISOLCPUS"
872 # $4 - Expected isolated CPUs
893 # Compare the expected isolated CPUs with the actual ones,
907 _NEWLIST=$(cat $CGROUP2/cpuset.cpus.effective)
914 _NEWLIST=$(cat $CGROUP2/cpuset.cpus.effective)
917 echo "Effective cpus changed to $_NEWLIST after test $_NR!"
995 echo "1-7" > cpuset.cpus
996 echo "1-7" > cpuset.cpus.exclusive
1060 echo 2-3 > cpuset.cpus
1061 TYPE=$(cat cpuset.cpus.partition)
1062 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition
1085 console_msg "Distribute all cpus to child partition"
1091 echo 2-3 > cpuset.cpus
1105 echo 2 > cpuset.cpus
1109 echo 2-3 > cpuset.cpus
1150 echo 1 > cpuset.cpus
1152 echo root > cpuset.cpus.partition
1155 wait_inotify $PWD/cpuset.cpus.partition $PRS &
1176 echo member > cpuset.cpus.partition
1184 echo member > cpuset.cpus.partition
1185 echo "" > cpuset.cpus