Re: [realtime-preempt] [x86_64] HR_TIMER and/or DYNTICKS cause anearly boot freeze

From: Mark Lord
Date: Fri Jul 13 2007 - 11:04:45 EST


Maarten Maathuis wrote:
I have determined that version 2.6.22.1-rt2 freeze after:

NET: Register protocol family 2

This is very early in the boot stage, and i cannot determine what
exactly causes it.

It happens if either high resolution timers or dynamic ticks are active.

There's a race in there somewhere, and it seems to come and go
depending upon exactly how the kernel is configured, and possibly
on which things end up on which cache lines.

First reported by me here (below), and never resolved.
Currently it's not happening with my kernels, but it does reappear
from time to time:

-------- Original Message --------
Subject: [BUG] 2.6.21: Kernel won't boot with either/both of CONFIG_NO_HZ, CONFIG_HIGH_RES_TIMERS
Date: Mon, 30 Apr 2007 16:17:00 -0400
From: Mark Lord <lkml@xxxxxx>
To: Linux Kernel <linux-kernel@xxxxxxxxxxxxxxx>, tglx@xxxxxxxxxxxxx
CC: Linus Torvalds <torvalds@xxxxxxxx>

I have a new notebook (Dell Inspiron 9400) with Core2-Duo T7400 @ 2.1Ghz.
When either/both of CONFIG_NO_HZ, CONFIG_HIGH_RES_TIMERS is used,
the 2.6.21 kernel hangs on startup just after printing one/both of these:

kernel: switched to high resolution mode on cpu 1
kernel: switched to high resolution mode on cpu 0

100% of the time. The only fix I've found is to rebuild
the kernel without those two options.

The failed kernel.config is attached.
Here is /proc/cpuinfo and lspci -v.

Any help appreciated.
-
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/