[LTP] LTP-cpuset test cases

Cyril Hrubis chrubis@suse.cz
Tue Oct 8 13:51:52 CEST 2019


Hi!
> cleanup(): Looks like removing /dev/cpuset folder or subfolders are not making load-balance state of system to be normal.
> With below fix, no more crash are being observed.
> 
> --- a/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> +++ b/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
> @@ -154,6 +154,9 @@ cleanup()
>                                                         "$pid in the cpuset"
>                         fi
>                 done < "$subdir/tasks"
> +
> +               /bin/echo 0 > $subdir/cpuset.sched_load_balance
> +
>                 rmdir "$subdir"
>                 if [ $? -ne 0 ]; then
>                         tst_brkm TFAIL "Couldn't remove subdir - "
> @@ -161,6 +164,9 @@ cleanup()
>                 fi
>         done
> 
> +       /bin/echo 0 > $CPUSET/cpuset.sched_load_balance
> +       /bin/echo 0 > $CPUSET_TMP/cpuset.sched_load_balance
> +
>         umount "$CPUSET"
>         if [ $? -ne 0 ]; then
>                 tst_brkm TFAIL "Couldn't umount cgroup filesystem with"

Looks like a kernel bug to me.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list