All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
@ 2006-06-22  5:45 Dave Olson
  2006-06-22  5:57 ` Andrew Morton
  2006-06-23  7:57 ` Ingo Molnar
  0 siblings, 2 replies; 23+ messages in thread
From: Dave Olson @ 2006-06-22  5:45 UTC (permalink / raw)
  To: Andrew Morton; +Cc: mingo, ccb, linux-kernel, nickpiggin

On Tue, 20 Jun 2006, Andrew Morton wrote:
| > Intended to be more or less stock fc4 but with CONFIG_PCI_MSI=y and
| > 2.6.17-based patch so the 8131 MSI quirk isn't enabled.
| > 
| > >From the config file:
| > 	CONFIG_DEBUG_SPINLOCK=y
| > 	CONFIG_DEBUG_SPINLOCK_SLEEP=y
| 
| OK, I goofed again.
| 
| It would be super-interesting to know whether CONFIG_DEBUG_SPINLOCK=n
| improves things.

It does.   No stalls, hangs, or nmi's in several hours of running the
test that previously failed on almost every run (with long stalls, system
hangs, or NMI watchdogs), on the same hardware.

I made no other changes to the kernel config than turning both of
the above off.

Dave Olson
olson@unixfolk.com
http://www.unixfolk.com/dave

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
@ 2006-06-23 16:27 Dave Olson
  0 siblings, 0 replies; 23+ messages in thread
From: Dave Olson @ 2006-06-23 16:27 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Andrew Morton, ccb, linux-kernel, nickpiggin

On Fri, 23 Jun 2006, Ingo Molnar wrote:
| we really need to figure out what's happening here! Could you re-enable 
| spinlock debugging and try the patch below - do the stalls/lockups still 
| happen?

I'll do that, but the 2.6.16 FC4 kernel already has cpu_relax()
rather than __delay(1), so I'm about 95% certain that this patch
isn't going to help anything.   The NMI watchdog will still fire,
because all we are going to do is wait even longer, etc.

| ===================================================================
| --- linux.orig/lib/spinlock_debug.c
| +++ linux/lib/spinlock_debug.c
| @@ -104,10 +104,10 @@ static void __spin_lock_debug(spinlock_t
|  	u64 i;
|  
|  	for (;;) {
| -		for (i = 0; i < loops_per_jiffy * HZ; i++) {
| +		for (;;) {
|  			if (__raw_spin_trylock(&lock->raw_lock))
|  				return;
| -			__delay(1);
| +			cpu_relax();
|  		}

etc.

Dave Olson
olson@unixfolk.com
http://www.unixfolk.com/dave

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2006-06-23 16:27 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <fa.VT2rwoX1M/2O/aO5crhlRDNx4YA@ifi.uio.no>
     [not found] ` <fa.Zp589GPrIISmAAheRowfRgZ1jgs@ifi.uio.no>
2006-06-20  5:35   ` [patch] increase spinlock-debug looping timeouts (write_lock and NMI) Dave Olson
2006-06-20  6:39     ` Andrew Morton
2006-06-20  6:53       ` Dave Jones
2006-06-20  7:37       ` Nick Piggin
2006-06-20  8:03         ` Andrew Morton
2006-06-20  8:33         ` Ingo Molnar
2006-06-20  9:37           ` Nick Piggin
2006-06-20  9:51             ` Ingo Molnar
2006-06-20 10:59               ` Nick Piggin
2006-06-20 13:04                 ` Arjan van de Ven
2006-06-20 13:28                   ` update pci device id cckuo
2006-06-20 14:06                     ` Arjan van de Ven
2006-06-20 13:36                   ` [patch] increase spinlock-debug looping timeouts (write_lock and NMI) Nick Piggin
2006-06-20 14:53                     ` Arjan van de Ven
2006-06-20 15:16                       ` Nick Piggin
2006-06-20 16:27                         ` Nick Piggin
2006-06-20  8:43         ` Arjan van de Ven
2006-06-20 16:11       ` Dave Olson
2006-06-20 21:10         ` Andrew Morton
2006-06-22  5:45 Dave Olson
2006-06-22  5:57 ` Andrew Morton
2006-06-23  7:57 ` Ingo Molnar
  -- strict thread matches above, loose matches on Subject: below --
2006-06-23 16:27 Dave Olson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.