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!"
71 echo 0-6 > test/cpuset.cpus
72 echo root > test/cpuset.cpus.partition
73 cat test/cpuset.cpus.partition | grep -q invalid
75 echo member > test/cpuset.cpus.partition
76 echo "" > test/cpuset.cpus
114 echo $EXPECTED_VAL > cpuset.cpus.partition
116 ACTUAL_VAL=$(cat cpuset.cpus.partition)
118 echo "cpuset.cpus.partition: expect $EXPECTED_VAL, found $ACTUAL_VAL"
127 ACTUAL_VAL=$(cat cpuset.cpus.effective)
129 echo "cpuset.cpus.effective: expect '$EXPECTED_VAL', found '$ACTUAL_VAL'"
157 # P<v> = set cpus.partition (0:member, 1:root, 2:isolated)
158 # C<l> = add cpu-list to cpuset.cpus
159 # X<l> = add cpu-list to cpuset.cpus.exclusive
217 # Remote partition and cpuset.cpus.exclusive tests
256 # cpus.exclusive.effective clearing test
308 # Incorrect change to cpuset.cpus invalidates partition root
310 # Adding CPUs to partition root that are not in parent's
311 # cpuset.cpus is allowed, but those extra CPUs are ignored.
314 # Taking away all CPUs from parent or itself if there are tasks
325 # cpuset.cpus can contains cpus not in parent's cpuset.cpus as long
329 # Deletion of CPUs distributed to child cgroup is allowed.
332 # To become a valid partition root, cpuset.cpus must overlap parent's
333 # cpuset.cpus.
344 # A non-exclusive cpuset.cpus change will invalidate partition and its siblings
356 # Changes to cpuset.cpus.exclusive that violate exclusivity rule is rejected
407 PFILE=$CGRP/cpuset.cpus.partition
408 CFILE=$CGRP/cpuset.cpus
409 XFILE=$CGRP/cpuset.cpus.exclusive
418 CPUS=${CMD#?}
419 COMM="echo $CPUS > $XFILE"
423 CPUS=${CMD#?}
424 COMM="echo $CPUS > $CFILE"
489 # Return 1 if the list of effective cpus isn't the same as the initial list.
505 CPUS=$DIR/cpuset.cpus
506 ECPUS=$DIR/cpuset.cpus.effective
507 XCPUS=$DIR/cpuset.cpus.exclusive
508 XECPUS=$DIR/cpuset.cpus.exclusive.effective
509 PRS=$DIR/cpuset.cpus.partition
510 PCPUS=$DIR/.__DEBUG__.cpuset.cpus.subpartitions
511 ISCPUS=$DIR/cpuset.cpus.isolated
512 [[ -e $CPUS ]] && echo "$CPUS: $(cat $CPUS)"
523 # Check effective cpus
533 CPUS=$2
537 FILE=cpuset.cpus.exclusive.effective
539 FILE=cpuset.cpus.effective
544 [[ $CPUS = $(cat $CGRP/$FILE) ]] || return 1
566 P*) FILE=$CGRP/cpuset.cpus.partition
595 # Get isolated (including offline) CPUs by looking at
596 # /sys/kernel/debug/sched/domains and cpuset.cpus.isolated control file,
599 # Note that isolated CPUs from the sched/domains context include offline
600 # CPUs as well as CPUs in non-isolated 1-CPU partition. Those CPUs may
601 # not be included in the cpuset.cpus.isolated control file which contains
602 # only CPUs in isolated partitions.
606 # <isolcpus2> - cpuset.cpus.isolated value = <isolcpus1> if not defined
614 ISCPUS=${CGROUP2}/cpuset.cpus.isolated
643 # Use the sched domain in debugfs to check isolated CPUs, if available
690 # Check to see if there are unexpected isolated CPUs left
704 echo "Unexpected isolated CPUs: $ISOLCPUS"
770 # Compare the expected isolated CPUs with the actual ones,
781 NEWLIST=$(cat cpuset.cpus.effective)
788 NEWLIST=$(cat cpuset.cpus.effective)
791 echo "Effective cpus changed to $NEWLIST after test $I!"
807 echo 2-3 > cpuset.cpus
808 TYPE=$(cat cpuset.cpus.partition)
809 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition
832 console_msg "Distribute all cpus to child partition"
838 echo 2-3 > cpuset.cpus
852 echo 2 > cpuset.cpus
856 echo 2-3 > cpuset.cpus
896 echo 1 > cpuset.cpus
898 echo root > cpuset.cpus.partition
901 wait_inotify $PWD/cpuset.cpus.partition $PRS &
922 echo member > cpuset.cpus.partition