public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] LTP-cpuset test cases
Date: Tue, 8 Oct 2019 13:51:52 +0200	[thread overview]
Message-ID: <20191008115151.GC13411@rei.lan> (raw)
In-Reply-To: <MA1PR0101MB1815CC5CCC0A10DA6F658DE6989A0@MA1PR0101MB1815.INDPRD01.PROD.OUTLOOK.COM>

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

  reply	other threads:[~2019-10-08 11:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-07 16:11 [LTP] LTP-cpuset test cases Prabhakar Kushwaha
2019-10-07 18:31 ` Cyril Hrubis
2019-10-08 11:43   ` Prabhakar Kushwaha
2019-10-08 11:51     ` Cyril Hrubis [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-10-07 16:06 Prabhakar Kushwaha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191008115151.GC13411@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox