From: Thomas Gleixner <tglx@linutronix.de>
To: Zhouyi Zhou <zhouzhouyi@gmail.com>
Cc: fweisbec@gmail.com, mingo@kernel.org, dave@stgolabs.net,
paulmck@kernel.org, josh@joshtriplett.org, mpe@ellerman.id.au,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH linux-next][RFC]torture: avoid offline tick_do_timer_cpu
Date: Sun, 27 Nov 2022 13:40:28 +0100 [thread overview]
Message-ID: <87v8n0woxv.ffs@tglx> (raw)
In-Reply-To: <CAABZP2xNTbrx9iV+KH3VZx1c9Yi97+izNA=XSJQBuOJ4WENFZg@mail.gmail.com>
Zhouyi,
On Sun, Nov 27 2022 at 10:45, Zhouyi Zhou wrote:
> On Sun, Nov 27, 2022 at 1:05 AM Thomas Gleixner <tglx@linutronix.de> wrote:
>
> So, I should construct my patch as:
> We avoid ... by ...
Not "We avoid".
Avoid this behaviour by ....
>> No. We are not exporting this just to make a bogus test case happy.
>>
>> Fix the torture code to handle -EBUSY correctly.
> I am going to do a study on this, for now, I do a grep in the kernel tree:
> find . -name "*.c"|xargs grep cpuhp_setup_state|wc -l
> The result of the grep command shows that there are 268
> cpuhp_setup_state* cases.
> which may make our task more complicated.
Why? The whole point of this torture thing is to stress the
infrastructure.
There are quite some reasons why a CPU-hotplug or a hot-unplug operation
can fail, which is not a fatal problem, really.
So if a CPU hotplug operation fails, then why can't the torture test
just move on and validate that the system still behaves correctly?
That gives us more coverage than just testing the good case and giving
up when something unexpected happens.
I even argue that the torture test should inject random failures into
the hotplug state machine to achieve extended code coverage.
Thanks,
tglx
next prev parent reply other threads:[~2022-11-27 12:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 3:51 [PATCH linux-next][RFC]torture: avoid offline tick_do_timer_cpu Zhouyi Zhou
2022-11-22 1:37 ` Paul E. McKenney
2022-11-23 2:23 ` Zhouyi Zhou
2022-11-23 18:49 ` Paul E. McKenney
2022-11-24 2:35 ` Zhouyi Zhou
2022-11-23 22:25 ` Frederic Weisbecker
2022-11-23 23:00 ` Paul E. McKenney
2022-11-23 22:36 ` Frederic Weisbecker
2022-11-24 2:18 ` Zhouyi Zhou
2022-11-26 17:05 ` Thomas Gleixner
2022-11-27 2:45 ` Zhouyi Zhou
2022-11-27 12:40 ` Thomas Gleixner [this message]
2022-11-27 17:53 ` Paul E. McKenney
2022-11-28 3:00 ` Zhouyi Zhou
2022-11-28 8:12 ` Thomas Gleixner
2022-11-28 15:16 ` Paul E. McKenney
2023-07-06 7:09 ` Christophe Leroy
2023-07-06 8:13 ` Zhouyi Zhou
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=87v8n0woxv.ffs@tglx \
--to=tglx@linutronix.de \
--cc=dave@stgolabs.net \
--cc=fweisbec@gmail.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mingo@kernel.org \
--cc=mpe@ellerman.id.au \
--cc=paulmck@kernel.org \
--cc=zhouzhouyi@gmail.com \
/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