Lines Matching full:cpus
26 CPUS=$(lscpu | grep "^CPU(s):" | sed -e "s/.*:[[:space:]]*//")
27 [[ $CPUS -lt 8 ]] && skip_test "Test needs at least 8 cpus available!"
102 echo $EXPECTED_VAL > cpuset.cpus.partition
104 ACTUAL_VAL=$(cat cpuset.cpus.partition)
106 echo "cpuset.cpus.partition: expect $EXPECTED_VAL, found $EXPECTED_VAL"
115 ACTUAL_VAL=$(cat cpuset.cpus.effective)
117 echo "cpuset.cpus.effective: expect '$EXPECTED_VAL', found '$EXPECTED_VAL'"
142 echo 2-3 > cpuset.cpus
143 TYPE=$(cat cpuset.cpus.partition)
144 [[ $TYPE = member ]] || echo member > cpuset.cpus.partition
167 console_msg "Distribute all cpus to child partition"
173 echo 2-3 > cpuset.cpus
187 echo 2 > cpuset.cpus
191 echo 2-3 > cpuset.cpus
209 # P<v> = set cpus.partition (0:member, 1:root, 2:isolated, -1:root invalid)
268 # Incorrect change to cpuset.cpus invalidates partition root
270 # Adding CPUs to partition root that are not in parent's
271 # cpuset.cpus is allowed, but those extra CPUs are ignored.
274 # Taking away all CPUs from parent or itself if there are tasks
285 # cpuset.cpus can contains cpus not in parent's cpuset.cpus as long
289 # Deletion of CPUs distributed to child cgroup is allowed.
292 # To become a valid partition root, cpuset.cpus must overlap parent's
293 # cpuset.cpus.
304 # A non-exclusive cpuset.cpus change will invalidate partition and its siblings
363 PFILE=$CGRP/cpuset.cpus.partition
364 CFILE=$CGRP/cpuset.cpus
373 CPUS=${CMD#?}
374 COMM="echo $CPUS > $CFILE"
439 # Return 1 if the list of effective cpus isn't the same as the initial list.
454 ECPUS=$DIR/cpuset.cpus.effective
455 PRS=$DIR/cpuset.cpus.partition
462 # Check effective cpus
472 CPUS=$2
475 FILE=$CGRP/cpuset.cpus.effective
477 [[ $CPUS = $(cat $FILE) ]] || return 1
499 P*) FILE=$CGRP/cpuset.cpus.partition
544 echo $CPULIST > cpuset.cpus
545 echo root > cpuset.cpus.partition
610 NEWLIST=$(cat cpuset.cpus.effective)
612 echo "Effective cpus changed to $NEWLIST after test $I!"
620 echo member > cpuset.cpus.partition
651 echo 1 > cpuset.cpus
653 echo root > cpuset.cpus.partition
656 wait_inotify $PWD/cpuset.cpus.partition $PRS &
677 echo member > cpuset.cpus.partition