Home | History | Annotate | Download | only in cpuset

Lines Matching refs:CPUSET

3 # functions for cpuset test
38 CPUSET="/dev/cpuset"
90 CPUSET_CONTROLLER=`grep -w cpuset /proc/cgroups | cut -f1`
91 CPUSET_CONTROLLER_VALUE=`grep -w cpuset /proc/cgroups | cut -f4`
93 if [ "$CPUSET_CONTROLLER" = "cpuset" ] && [ "$CPUSET_CONTROLLER_VALUE" = "1" ]
99 tst_brkm TCONF "Cpuset is not supported"
119 # Create /dev/cpuset & mount the cgroup file system with cpuset
123 if [ -e "$CPUSET" ]
125 tst_resm TWARN "$CPUSET already exist.. overwriting"
130 mkdir "$CPUSET"
131 mount -t cpuset cpuset "$CPUSET" 2> /dev/null
135 " cpuset on $CPUSET..Exiting test"
142 grep "$CPUSET" /proc/mounts >/dev/null 2>&1 || {
143 rm -rf "$CPUSET" >/dev/null 2>&1
147 find "$CPUSET" -type d | sort | sed -n '2,$p' | tac | while read subdir
154 "$pid in the cpuset"
160 "$subdir in the cpuset"
164 umount "$CPUSET"
167 " cpuset on $CPUSET..Exiting test"
169 rmdir "$CPUSET" > /dev/null 2>&1
173 # set the cpuset's parameter
187 if [ "$path" != "$CPUSET" ]; then