Lines Matching full:cpus
28 CPUS=$(lscpu | grep "^CPU(s)" | sed -e "s/.*:[[:space:]]*//")
29 [[ $CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!"
82 echo $EXPECTED_VAL > cpuset.cpus.partition
84 ACTUAL_VAL=$(cat cpuset.cpus.partition)
86 echo "cpuset.cpus.partition: expect $EXPECTED_VAL, found $EXPECTED_VAL"
95 ACTUAL_VAL=$(cat cpuset.cpus.effective)
97 echo "cpuset.cpus.effective: expect '$EXPECTED_VAL', found '$EXPECTED_VAL'"
122 echo 2-3 > cpuset.cpus
123 TYPE=$(cat cpuset.cpus.partition)
124 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition
147 console_msg "Distribute all cpus to child partition"
153 echo 2-3 > cpuset.cpus
167 echo 2 > cpuset.cpus
171 echo 2-3 > cpuset.cpus
189 # P<v> = set cpus.partition (0:member, 1:root, 2:isolated, -1:root invalid)
248 # Incorrect change to cpuset.cpus invalidates partition root
250 # Adding CPUs to partition root that are not in parent's
251 # cpuset.cpus is allowed, but those extra CPUs are ignored.
254 # Taking away all CPUs from parent or itself if there are tasks
264 # cpuset.cpus can contains cpus not in parent's cpuset.cpus as long
268 # Deletion of CPUs distributed to child cgroup is allowed.
271 # To become a valid partition root, cpuset.cpus must overlap parent's
272 # cpuset.cpus.
283 # A non-exclusive cpuset.cpus change will invalidate partition and its siblings
342 PFILE=$CGRP/cpuset.cpus.partition
343 CFILE=$CGRP/cpuset.cpus
352 CPUS=${CMD#?}
353 COMM="echo $CPUS > $CFILE"
418 # Return 1 if the list of effective cpus isn't the same as the initial list.
433 ECPUS=$DIR/cpuset.cpus.effective
434 PRS=$DIR/cpuset.cpus.partition
441 # Check effective cpus
451 CPUS=$2
454 FILE=$CGRP/cpuset.cpus.effective
456 [[ $CPUS = $(cat $FILE) ]] || return 1
478 P*) FILE=$CGRP/cpuset.cpus.partition
523 echo $CPULIST > cpuset.cpus
524 echo root > cpuset.cpus.partition
592 NEWLIST=$(cat cpuset.cpus.effective)
594 echo "Effective cpus changed to $NEWLIST after test $I!"
602 echo member > cpuset.cpus.partition
633 echo 1 > cpuset.cpus
635 echo root > cpuset.cpus.partition
638 wait_inotify $PWD/cpuset.cpus.partition $PRS &
659 echo member > cpuset.cpus.partition