Re: new IRQ scalability changes in 2.3.48

From: Ingo Molnar (mingo@chiara.csoma.elte.hu)
Date: Mon Mar 13 2000 - 12:56:45 EST


On Mon, 13 Mar 2000, Jeff Garzik wrote:

> > if (current->spinlock_depth)
> > BUG();
> >
> > this temporary debugging aid catches illegal spinlock uses. (which does
> > happen quite often)
>
> FWIW running an SMP kernel on UP is an excellent way to catch spinlock
> bugs... [...]

this still does not catch the above bug :-) a slightly better
(IRQ-context) spinlock-debugging method is IMHO running an SMP kernel on a
real SMP system, with:

        append='maxcpus=1'

in lilo.conf, it has the advantage of the UP kernels' heavy rescheduling,
and has the NMI watchdog in case some spinlock bug causes a lockup... And
nothing beats running a real SMP system, the more subtle spinlock bugs
simply do not show up on UP.

        Ingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:25 EST