Re: [patch] increase spinlock-debug looping timeouts (write_lockand NMI)

From: Andrew Morton
Date: Tue Jun 20 2006 - 04:03:06 EST


On Tue, 20 Jun 2006 17:37:32 +1000
Nick Piggin <nickpiggin@xxxxxxxxxxxx> wrote:

> >>Kernel panic - not syncing: nmi watchdog
>
> Any ideas what it might be waiting on?

Readers, I guess. When there's a spinning writer, nothing prevents _new_
readers from getting into the read-locked region. If we have enough
readers and the read-locked region is long enough, there's always at least
one reader in the read-locked region and the writer is permanently starved.

> Otherwise, a straight rwlock->spinlock conversion will have a few more
> scalability issues, but I'd guess it wouldn't be a problem at all for
> most workloads on most systems.

It beats crashing.
-
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/