Re: [PATCH] RCU torture testing

From: Paul E. McKenney
Date: Mon Oct 03 2005 - 10:25:59 EST


On Mon, Oct 03, 2005 at 04:36:28PM +0200, Arjan van de Ven wrote:
> On Mon, 2005-10-03 at 07:30 -0700, Paul E. McKenney wrote:
> > On Sun, Oct 02, 2005 at 11:05:49PM +0200, Pavel Machek wrote:
> > > Can you just run the tests from time to time inside IBM?
> >
> > In principle, I could, but in practice it is appropriate for non-IBMers to
> > be able to test the RCU infrastructure easily and thoroughly when they
> > work on it.
>
> how hard would it be to make the few parameters just be module
> options... and then fail module load if the test fails or something?
> (and spew loudly in dmesg :)

Good point -- all I really need for module parameters is the number
of readers. I should be able to have module load start the test and
module unload stop it (any problems with this approach?). And doing
a module should remove the intrusions into rcupdate.c and rcupdate.h,
which would be good.

I would rather avoid dmesg. But perhaps a read-only debugfs for output
(as Greg suggested) combined with module parameters for input could make
this straightforward.

> I'd be all in favor of having such a module in the kernel; in fact it
> would be nice if we roughly could standardize on an way to load/start
> and then find the result, I'd love to have a "make runtests" or
> something that would load such modules one by one

Which would mean that each test needs to give unambiguous machine-readable
indication of failure. I guess I will nominate the string "!!!". ;-)

> (and no that's not the task of ltp, ltp should test userspace; things
> that test in kernel code should really be part of the kernel)

I agree that there is definitely a need for both user-level and in-kernel
testing. User-level testing is needed to make sure that user programs get
what they need, but there is no substitute for in-kernel testing when you
need to apply maximum conceiveable stress on some kernel component.

Thanx, Paul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/