Date: Mon, 20 Apr 2009 11:05:19 -0700 (PDT) From: Martin Shepherd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Xenomai-help] Tests with 2.5rc1 List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Over the weekend I experimented with Xenomai 2.5-rc1. Unfortunately the freeze problems that I have been experiencing continued with this update. I have tried a lot of things to home in on the problem. 1. First I tried swapping memory sticks again, but the symtoms didn't change. 2. Then I tried enabling the local-APIC and NMI watchdog at compile time with a threshold of 200us, and set lapic=1 and nmi_watchdog=2 on the kernel invokation line in grub. The following messages from dmesg showed that this was being picked up: [ 0.000000] Local APIC disabled by BIOS -- reenabling. [ 0.000000] Found and enabled local APIC! [ 0.000000] mapped APIC to ffffb000 (fee00000) ... [ 0.029054] Using local APIC timer interrupts. [ 0.029057] calibrating APIC timer ... [ 0.032000] ... lapic delta = 1250114 [ 0.032000] ... PM timer delta = 357974 [ 0.032000] ... PM timer result ok [ 0.032000] ..... delta 1250114 [ 0.032000] ..... mult: 53688631 [ 0.032000] ..... calibration result: 800072 [ 0.032000] ..... CPU clock speed is 850.0310 MHz. [ 0.032000] ..... host bus clock speed is 200.0072 MHz. ... [ 0.140956] Xenomai: NMI watchdog started (threshold=200 us). However this didn't seem to do anything whenever the system hung, and I later unfroze it by moving the mouse, even though the system clock lost seconds of time. It froze many times during the switchbench part of xeno-test, without any complaints from Xenomai or the kernel. I couldn't get it to freeze this time during the latency tests. Is there anything else that I need to do to get the watchdog to do something? 3. Next I tried enabling the IO APIC in the kernel configuration, and including nmi_watchdog=1, to use the IO APIC timer for the NMI watchdog, but dmesg included the following error: [ 0.708944] IO APIC resources could be not be allocated. and when I tried eliciting hangs, again nothing happened. 4. I enabled SMI workarounds, thinking that perhaps hammering the system with dd might be causing overheating, and corresponding SMI interrupts. However the hangs continued. 5. Finally I tried disabling everything that didn't look important in the kernel configuration (and reduced the compilation time from 4 hours to 2:20 in the process :-). However after rebooting into the slimmed down kernel, the hangs when running "dd if=/dev/zero of=/dev/null" continued unchanged. I believe that today I will finally receive the new computers that I ordered. So hopefully these problems won't turn up again on them. Regardless, I would have liked to have figured out what the problem was, just in case it is something serious that just happens less often on newer computers. Martin