large latencies on a Dell D620 dual core laptop
Hello all,
I have very high latencies running Xenomai on my new laptop. It is a dell D620 dual core laptop with the following configuration:
kernel 2.6.20.3, xenomai 2.3.1, adeos-ipipe-2.6.20-i386-1.7-03.patch compiled with gcc-4.1.1 (fedora core 6), cpuinfo is attached
kernel config file are attached, to summarize:
no HPET, no APM, no CPU_FREQ, no ACPI_PROC CONFIG_XENO_HW_SMI_APMC must be enabled, otherwise the kernel does not boot
here is a sample of the latency test trace:
[email protected]$ ./latency -f == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... RTT| 00:00:01 (periodic user-mode task, 100 us period, priority 99) RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst RTD| 5.463| 5.823| 112.608| 1| 5.463| 112.608 RTD| 5.484| 6.109| 1414.435| 32| 5.463| 1414.435 RTD| 5.388| 6.025| 344.315| 37| 5.388| 1414.435 RTD| 5.432| 6.149| 1549.593| 69| 5.388| 1549.593 RTD| 5.468| 5.769| 32.653| 69| 5.388| 1549.593 RTD| 5.447| 6.183| 1671.993| 109| 5.388| 1671.993 RTD| 5.506| 6.135| 2935.370| 139| 5.388| 2935.370 RTD| 5.406| 6.753| 1505.142| 200| 5.388| 2935.370 RTD| 5.456| 5.827| 36.626| 200| 5.388| 2935.370 RTD| 5.041| 6.138| 1393.665| 229| 5.041| 2935.370 RTD| 5.503| 5.778| 52.663| 229| 5.041| 2935.370 RTD| 5.506| 6.138| 1691.224| 263| 5.041| 2935.370
I also disabled the USB emulation in BIOS, also boot in runlevel 3 (without X), but that does not improve this bad behavior.
Any idea? Is it possible to be a rt_pathological laptop?
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 36 lines · Daniel Simon
Hello all,
I have very high latencies running Xenomai on my new laptop. It is a dell D620 dual core laptop with the following configuration:
kernel 2.6.20.3, xenomai 2.3.1, adeos-ipipe-2.6.20-i386-1.7-03.patch compiled with gcc-4.1.1 (fedora core 6), cpuinfo is attached
kernel config file are attached, to summarize:
no HPET, no APM, no
CPU_FREQ, noACPI_PROCCONFIG_XENO_HW_SMI_APMCmust be enabled, otherwise the kernel does not boothere is a sample of the latency test trace:
[email protected]$ ./latency -f == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... RTT| 00:00:01 (periodic user-mode task, 100 us period, priority 99) RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst RTD| 5.463| 5.823| 112.608| 1| 5.463| 112.608 RTD| 5.484| 6.109| 1414.435| 32| 5.463| 1414.435 RTD| 5.388| 6.025| 344.315| 37| 5.388| 1414.435 RTD| 5.432| 6.149| 1549.593| 69| 5.388| 1549.593 RTD| 5.468| 5.769| 32.653| 69| 5.388| 1549.593 RTD| 5.447| 6.183| 1671.993| 109| 5.388| 1671.993 RTD| 5.506| 6.135| 2935.370| 139| 5.388| 2935.370 RTD| 5.406| 6.753| 1505.142| 200| 5.388| 2935.370 RTD| 5.456| 5.827| 36.626| 200| 5.388| 2935.370 RTD| 5.041| 6.138| 1393.665| 229| 5.041| 2935.370 RTD| 5.503| 5.778| 52.663| 229| 5.041| 2935.370 RTD| 5.506| 6.138| 1691.224| 263| 5.041| 2935.370
Quoted 4 lines
I also disabled the USB emulation in BIOS, also boot in runlevel 3 (without X), but that does not improve this bad behavior.
Any idea? Is it possible to be a
rt_pathologicallaptop?
Maybe you could compile Xenomai support as modules, and disable CONFIG_XENO_HW_SMI_APMC ? If this does not work, I am afraid you are in the "out of luck" case of Xenomai TROUBLESHOOTING file.
Signature · 1 line
Gilles Chanteperdrix
Quoted 1 line · On Tue, 03 Apr 2007 14:45:21 +0200 Gilles Chanteperdrix…
Maybe you could compile Xenomai support as modules,
already done
Quoted 1 line
and disable
CONFIG_XENO_HW_SMI_APMC?
does not boot in this case
Quoted 2 lines
If this does not work, I am afraid you
are in the "out of luck" case of Xenomai TROUBLESHOOTING file.
me too...
Thanks,
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 11 lines · Daniel Simon
Quoted 1 line · On Tue, 03 Apr 2007 14:45:21 +0200 Gilles Chanteperdrix…
Maybe you could compile Xenomai support as modules,
already done
Quoted 1 line
and disable
CONFIG_XENO_HW_SMI_APMC?does not boot in this case
If you compile Xenomai as a module, then Xenomai will not be started at boot time. And later, when loading Xenomai modules, even if CONFIG_XENO_HW_SMI_APMC is disabled, since the system has booted, starting Xenomai should not prevent the system from booting.
Quoted 8 lines
Quoted 3 lines
If this does not work, I am afraid you
are in the "out of luck" case of Xenomai TROUBLESHOOTING file.me too...
Thanks,
Daniel
Signature · 1 line
Gilles Chanteperdrix
Quoted 4 lines · On Tue, 03 Apr 2007 16:34:43 +0200 Gilles Chanteperdrix…
If you compile Xenomai as a module, then Xenomai will not be started at boot time. And later, when loading Xenomai modules, even if
CONFIG_XENO_HW_SMI_APMCis disabled, since the system has booted, starting Xenomai should not prevent the system from booting.
I can compile Xenomai_nucleus as a module (which is already done), but I it seems that CONFIG_XENOMAI must be set to y or n, "m" is not allowed (or is there a way to bypass the config script?)
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 10 lines · Daniel Simon
Quoted 4 lines · On Tue, 03 Apr 2007 16:34:43 +0200 Gilles Chanteperdrix…
If you compile Xenomai as a module, then Xenomai will not be started at boot time. And later, when loading Xenomai modules, even if
CONFIG_XENO_HW_SMI_APMCis disabled, since the system has booted, starting Xenomai should not prevent the system from booting.
Quoted 3 lines
I can compile
Xenomai_nucleusas a module (which is already done), but I it seems thatCONFIG_XENOMAImust be set to y or n, "m" is not allowed (or is there a way to bypass the config script?)
Setting the nucleus as a module should be enough to get everything as module.
Signature · 1 line
Gilles Chanteperdrix
Quoted 2 lines · On Tue, 03 Apr 2007 17:07:47 +0200 Gilles Chanteperdrix…
Setting the nucleus as a module should be enough to get everything as module.
it is compiled like that, the xeno_nucleus is a module, and anyway disabling XENO_HW_SMI_APMC prevents the kernel from booting for some unknown reason...
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 11 lines · Daniel Simon
Quoted 2 lines · On Tue, 03 Apr 2007 17:07:47 +0200 Gilles Chanteperdrix…
Setting the nucleus as a module should be enough to get everything as module.
it is compiled like that, the
xeno_nucleusis a module, and anyway disablingXENO_HW_SMI_APMCprevents the kernel from booting for some unknown reason...
If Xenomai module is not loaded at boot time, the option CONFIG_XENO_HW_SMI_APMC has no effect.
Signature · 1 line
Gilles Chanteperdrix
Quoted 2 lines · On Tue, 03 Apr 2007 17:23:18 +0200 Gilles Chanteperdrix…
If Xenomai module is not loaded at boot time, the option
CONFIG_XENO_HW_SMI_APMChas no effect.
Right, but something loads it...
just after booting I got that
[email protected]:~$ lsmod | grep xeno xeno_irqbench 6536 0 xeno_rtdm 30764 1 xeno_irqbench xeno_nucleus 201148 2 xeno_irqbench,xeno_rtdm
What can do that?
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 1 line · On Tue, 03 Apr 2007 17:23:18 +0200 Gilles Chanteperdrix…
If Xenomai module is not loaded at boot time
I removed the xeno_irqbench module from the config file, now no xeno modules are loaded at boot time and the system boots with SMI globally disabled (in fact xeno_irqbench was inserted at boot time in
the /etc/sysconfig/hwconfig file)
...
and as soon as I modprobe xeno_native (before launching any test) the system hangs ...
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 7 lines · Daniel Simon
Quoted 1 line · On Tue, 03 Apr 2007 17:23:18 +0200 Gilles Chanteperdrix…
If Xenomai module is not loaded at boot time
Quoted 8 lines
I removed the
xeno_irqbenchmodule from the config file, now no xeno modules are loaded at boot time and the system boots with SMI globally disabled (in factxeno_irqbenchwas inserted at boot time in
the/etc/sysconfig/hwconfigfile)
...
and as soon as I modprobexeno_native(before launching any test) the system hangs ...
Maybe there is a way to disable legacy power management at BIOS level ?
Signature · 1 line
Gilles Chanteperdrix
Quoted 1 line · On Tue, 03 Apr 2007 18:16:24 +0200 Gilles Chanteperdrix…
Maybe there is a way to disable legacy power management at BIOS level ?
there was a remaining potential source of PM interrupts in the bios (from the serial ata), which is now disabled. I did testing with various configurations:
-in runlevel 1 the tests in /usr/xenomai/bin are generally succesfully performed, with max latencies in the range of 5-10 us (output of xeno-test attached)
-in runlevel 3 the laptop freezes after a while, e.g. when rmmoding xeno_native after a succesful latency test, or when modprobing xeno_posix
-under X control is mostly lost immediatly after modprobing xeno_native... may be I am too greedy?
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 10 lines · Daniel Simon
Quoted 1 line · On Tue, 03 Apr 2007 18:16:24 +0200 Gilles Chanteperdrix…
Maybe there is a way to disable legacy power management at BIOS level ?
there was a remaining potential source of PM interrupts in the bios (from the serial ata), which is now disabled. I did testing with various configurations:
Quoted 6 lines
-in runlevel 1 the tests in
/usr/xenomai/binare generally succesfully performed, with max latencies in the range of 5-10 us (output of xeno-test attached)-in runlevel 3 the laptop freezes after a while, e.g. when rmmoding
xeno_nativeafter a succesful latency test, or when modprobingxeno_posix
What is the difference between runlevel 1 and runlevel 3 ?
Quoted 3 lines
-under X control is mostly lost immediatly after modprobing
xeno_native... may be I am too greedy?
Usually, X should only induce high latencies. You can avoid such latencies by adding the "NoAccel" option to /etc/X11/XF86Config-4, maybe you can try the NoAccel trick to solve your issues as well ?
Signature · 1 line
Gilles Chanteperdrix
Quoted 1 line · On Thu, 5 Apr 2007 09:28:15 +0200 Daniel Simon <[email protected]> wrote:
Quoted 1 line
What is the difference between runlevel 1 and runlevel 3 ?
1 - Basic Single-user mode
2 - Multi-user mode (without NFS but the network interface is up) the basic xeno-tests seem to work normally also in level 2
3 - Multi-user mode with NFS
5 - full Multi-user mode with X and NFS
Quoted 1 line
Usually, X should only induce high latencies.
Inded the behaviour is now very similar in these two runlevels.:
I loose most of the control: the mouse pointer and
windows move, I can still switch back and forth between already logged-in consoles and X, bust most shell commands do not respond ,e,.g. ls, ps, lsmod, rmmod, do not respond (and hence as I cannot rmmod the loaded xeno_modules the system does not totally hang :) , CtrlC gives control back. Stangely I still can cd to my remotely nfs mounted homedir, but cannot list its content;
reboot still starts, properly unmount nfs and finally fails to stop eth0.
However, it seems that problems begin when NFS is up, whatever there are remote mounts or not (also happens after a standalone boot)
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 9 lines · Daniel Simon
Quoted 1 line · On Thu, 5 Apr 2007 09:28:15 +0200 Daniel Simon <[email protected]> wrote:
Quoted 1 line
What is the difference between runlevel 1 and runlevel 3 ?
1 - Basic Single-user mode
2 - Multi-user mode (without NFS but the network interface is up) the basic xeno-tests seem to work normally also in level 2
Does it still run correctly if there is some traffic on the network ? You could try to ping flood the box for instance ?
Quoted 4 lines
3 - Multi-user mode with NFS
5 - full Multi-user mode with X and NFS
Quoted 8 lines
Quoted 1 line
Usually, X should only induce high latencies.
Inded the behaviour is now very similar in these two runlevels.:
I loose most of the control: the mouse pointer and
windows move, I can still switch back and forth between already logged-in consoles and X, bust most shell commands do not respond ,e,.g. ls, ps, lsmod, rmmod, do not respond (and hence as I cannot rmmod the loadedxeno_modulesthe system does not totally hang :) , CtrlC gives control back.
What does "date" and /proc/interrupt say ? Is the system timer still ticking ?
Quoted 6 lines
Stangely I still can cd to my remotely nfs mounted homedir, but cannot list its content;
reboot still starts, properly unmount nfs and finally fails to stop eth0.However, it seems that problems begin when NFS is up, whatever there are remote mounts or not (also happens after a standalone boot)
Could you send us your .config ?
Signature · 1 line
Gilles Chanteperdrix
Quoted 2 lines · On Thu, 05 Apr 2007 10:58:17 +0200 Gilles Chanteperdrix…
Does it still run correctly if there is some traffic on the network ? You could try to ping flood the box for instance ?
in runlevel 2, loading big files from a remote PC, the average latencies remain about 5us with occasionnal 20us peaks, as with no eth traffic
Quoted 2 lines
What does "date" and
/proc/interruptsay ? Is the system timer still ticking ?
in runlevel3: date seems to normally increase time during the latency test.
after modprobing xeno_native /proc/interrupts looks like that (twice the test, twice freezing the PC just after accessing this file...)
CPU0 CPU1
0: 220691 0 IO-APIC-edge timer, rthal_broadcast_timer 1: 8 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc 9: 3 0 IO-APIC-fasteoi acpi 12: 115 0 IO-APIC-edge i8042 14: 7726 0 IO-APIC-edge libata 15: 2079 0 IO-APIC-edge libata 18: 1105 0 IO-APIC-fasteoi yenta, eth0 19: 428 0 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 20: 172 0 IO-APIC-fasteoi uhci_hcd:usb2, HDA Intel 21: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 22: 0 0 IO-APIC-fasteoi uhci_hcd:usb4 NMI: 0 0 LOC: 220571 220570 ERR: 0 MIS: 0
Quoted 1 line
Could you send us your .config ?
in attachement
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 31 lines · Daniel Simon
Quoted 2 lines · On Thu, 05 Apr 2007 10:58:17 +0200 Gilles Chanteperdrix…
Does it still run correctly if there is some traffic on the network ? You could try to ping flood the box for instance ?
in runlevel 2, loading big files from a remote PC, the average latencies remain about 5us with occasionnal 20us peaks, as with no eth traffic
Quoted 2 lines
What does "date" and
/proc/interruptsay ? Is the system timer still ticking ?in runlevel3: date seems to normally increase time during the latency test.
after modprobing
xeno_native/proc/interruptslooks like that (twice the test, twice freezing the PC just after accessing this file...)CPU0 CPU1
0: 220691 0 IO-APIC-edge timer, rthal_broadcast_timer 1: 8 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc 9: 3 0 IO-APIC-fasteoi acpi 12: 115 0 IO-APIC-edge i8042 14: 7726 0 IO-APIC-edge libata 15: 2079 0 IO-APIC-edge libata 18: 1105 0 IO-APIC-fasteoi yenta, eth0
Quoted 8 lines
19: 428 0 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 20: 172 0 IO-APIC-fasteoi uhci_hcd:usb2, HDA Intel 21: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 22: 0 0 IO-APIC-fasteoi uhci_hcd:usb4 NMI: 0 0 LOC: 220571 220570 ERR: 0 MIS: 0
It is funny that you get no interrupt on CPU1, but I have exactly the same behaviour on my box, and even without I-pipe enabled.
I do not see a network card.
Quoted 5 lines
Quoted 3 lines
Could you send us your .config ?
in attachement
I see nothing suspicious.
Signature · 1 line
Gilles Chanteperdrix
Quoted 5 lines · Daniel Simon
Quoted 1 line · On Thu, 05 Apr 2007 10:58:17 +0200 Gilles Chanteperdrix…
Could you send us your .config ?
in attachement
Try downgrading from SMP to UP, without IO-APIC support but still keeping ACPI enabled, for the purpose of testing:
# CONFIG_SMP is not set
# CONFIG_X86_IOAPIC is not setCONFIG_X86_UP_APIC=yCONFIG_X86_LOCAL_APIC=y
1) Does this work?
2) What does /proc/interrupts say?
Signature · 1 line
Philippe.
Quoted 10 lines · Daniel Simon
CPU0 CPU1
0: 220691 0 IO-APIC-edge timer, rthal_broadcast_timer 1: 8 0 IO-APIC-edge i8042 7: 0 0 IO-APIC-edge parport0 8: 1 0 IO-APIC-edge rtc 9: 3 0 IO-APIC-fasteoi acpi 12: 115 0 IO-APIC-edge i8042 14: 7726 0 IO-APIC-edge libata 15: 2079 0 IO-APIC-edge libata 18: 1105 0 IO-APIC-fasteoi yenta, eth0
With your current kernel configuration, try preventing the yenta module from being loaded. Does this solve the hang issue?
Signature · 1 line
Philippe.
Quoted 8 lines · Daniel Simon
Quoted 2 lines · On Thu, 05 Apr 2007 11:54:45 +0200 Philippe Gerum <[email protected]> wrote:
With your current kernel configuration, try preventing the yenta module from being loaded.
Quoted 7 lines
how can I do that without recompiling the kernel? I cannot unload it (ERROR: Module
yenta_socketis in use)no more time today for testing, I'll try your suggestions to morrow...
Daniel
The yenta module is for PCMCIA, you probably have a user-space daemon using it. Try something like /etc/init.d/pcmcia stop
Signature · 1 line
Gilles Chanteperdrix
Quoted 1 line · On Thu, 05 Apr 2007 11:51:22 +0200 Philippe Gerum <[email protected]> wrote:
try preventing the yenta module
no change, frozen a few seconds after modprobe xeno_native
Quoted 3 lines
Try downgrading from SMP to UP, without IO-APIC support but still keeping ACPI enabled, for the purpose of testing:
1) Does this work?
yes, and the PC is still alive... but in fact it is only half of the original laptop !
Quoted 1 line
2) What does
/proc/interruptssay?
CPU0
0: 155256 XT-PIC-XT timer, rthal_broadcast_timer 1: 264 XT-PIC-XT i8042 2: 0 XT-PIC-XT cascade 3: 0 XT-PIC-XT uhci_hcd:usb4 5: 0 XT-PIC-XT uhci_hcd:usb3 8: 1 XT-PIC-XT rtc 9: 173 XT-PIC-XT acpi, uhci_hcd:usb1, ehci_hcd:usb5 10: 1266 XT-PIC-XT uhci_hcd:usb2, HDA Intel, eth0 11: 5826 XT-PIC-XT [email protected] 12: 115 XT-PIC-XT i8042 14: 13322 XT-PIC-XT libata 15: 1265 XT-PIC-XT libata NMI: 572 LOC: 153853 ERR: 0
tests available in xenomai/bin run normally with the following figures (under X windows, with no additionnal load):
[email protected]$ ./irqbench CPU frequency: 1664.442 MHz Port type: serial Port address: 0x3f8
Waiting on target...
[email protected]$ ./switchbench == Sampling period: 100 us == Do not interrupt this program RTH| lat min| lat avg| lat max| lost RTD| 1.610| 1.704| 13.133| 0
[email protected]$ ./latency == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... RTT| 00:00:01 (periodic user-mode task, 100 us period, priority 99) RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst RTD| 0.902| 1.305| 11.990| 0| 0.902| 11.990 RTD| 0.812| 1.316| 9.165| 0| 0.812| 11.990 RTD| 0.950| 1.333| 12.679| 0| 0.812| 12.679 RTD| 0.740| 1.326| 10.139| 0| 0.740| 12.679 RTD| 0.746| 1.332| 9.400| 0| 0.740| 12.679 RTD| 0.848| 1.324| 9.366| 0| 0.740| 12.679 RTD| 0.788| 1.327| 9.135| 0| 0.740| 12.679 RTD| 0.926| 1.326| 9.383| 0| 0.740| 12.679 RTD| 0.800| 1.321| 10.248| 0| 0.740| 12.679 RTD| 0.752| 1.321| 10.079| 0| 0.740| 12.679 ---|------------|------------|------------|--------|------------------------- RTS| 0.740| 1.323| 12.679| 0| 00:00:10/00:00:10 [email protected]$ rmmod xeno_posix xeno_native xeno_nucleus
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 10 lines · Daniel Simon
Quoted 1 line · On Thu, 05 Apr 2007 11:51:22 +0200 Philippe Gerum <[email protected]> wrote:
try preventing the yenta module
no change, frozen a few seconds after modprobe
xeno_nativeQuoted 3 lines
Try downgrading from SMP to UP, without IO-APIC support but still keeping ACPI enabled, for the purpose of testing:
1) Does this work?yes, and the PC is still alive...
Only enable CONFIG_X86_IO_APIC now (without upgrading to SMP). Does this still work?
Signature · 1 line
Philippe.
Quoted 2 lines · On Thu, 05 Apr 2007 17:16:18 +0200 Philippe Gerum <[email protected]> wrote:
Only enable
CONFIG_X86_IO_APICnow (without upgrading to SMP). Does this still work?
yes, several tests succesfully performed/proc/interrupts says (X enabled)
CPU0
0: 227870 IO-APIC-edge timer, rthal_broadcast_timer 1: 475 IO-APIC-edge i8042 8: 1 IO-APIC-edge rtc 9: 3 IO-APIC-fasteoi acpi 12: 127 IO-APIC-edge i8042 14: 13814 IO-APIC-edge libata 15: 2013 IO-APIC-edge libata 16: 10047 IO-APIC-fasteoi [email protected] 18: 635 IO-APIC-fasteoi eth0 19: 140 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 20: 2612 IO-APIC-fasteoi uhci_hcd:usb2, HDA Intel 21: 0 IO-APIC-fasteoi uhci_hcd:usb3 22: 0 IO-APIC-fasteoi uhci_hcd:usb4 NMI: 0 LOC: 227783 ERR: 0 MIS: 0
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 6 lines · Daniel Simon
Quoted 2 lines · On Thu, 05 Apr 2007 17:16:18 +0200 Philippe Gerum <[email protected]> wrote:
Only enable
CONFIG_X86_IO_APICnow (without upgrading to SMP). Does this still work?yes, several tests succesfully performed
Ok. Does enabling CONFIG_SMP and disabling CONFIG_IRQBALANCE still work?
Quoted 21 lines
/proc/interruptssays (X enabled)
CPU00: 227870 IO-APIC-edge timer, rthal_broadcast_timer 1: 475 IO-APIC-edge i8042 8: 1 IO-APIC-edge rtc 9: 3 IO-APIC-fasteoi acpi 12: 127 IO-APIC-edge i8042 14: 13814 IO-APIC-edge libata 15: 2013 IO-APIC-edge libata 16: 10047 IO-APIC-fasteoi [email protected] 18: 635 IO-APIC-fasteoi eth0 19: 140 IO-APIC-fasteoi uhci_hcd:usb1, ehci_hcd:usb5 20: 2612 IO-APIC-fasteoi uhci_hcd:usb2, HDA Intel 21: 0 IO-APIC-fasteoi uhci_hcd:usb3 22: 0 IO-APIC-fasteoi uhci_hcd:usb4 NMI: 0 LOC: 227783 ERR: 0 MIS: 0
Signature · 1 line
Philippe.
Quoted 1 line · On Thu, 05 Apr 2007 19:13:09 +0200 Philippe Gerum <[email protected]> wrote:
Ok. Does enabling
CONFIG_SMPand disablingCONFIG_IRQBALANCEstill work?
No.
more precisely, in console mode I was able to run a latency test, then it hanged when rmmod-ing xeno_native.
on a second trial modprobe xeno_posix immediatly freezed...
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
On Thu, 05 Apr 2007 19:13:09 +0200
Philippe Gerum <[email protected]> wrote:
Hello, me again...
Quoted 1 line
Ok. Does enabling
CONFIG_SMPand disablingCONFIG_IRQBALANCEstill work?
No, more precisely, in console mode I was able to run a latency test, then it hanged when rmmod-ing xeno_native. On a second trial modprobe xeno_posix immediatly freezed...
To summarize, xenomai tests work with a SMP enabled kernel in runlevel 2, but only with a UP kernel in runlevel 3 or 5.
It seems that NFS badly interracts with xenomai in SMP? Any other idea ?
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/
Quoted 11 lines · Daniel Simon
On Thu, 05 Apr 2007 19:13:09 +0200
Philippe Gerum <[email protected]> wrote:Hello, me again...
Quoted 1 line
Ok. Does enabling
CONFIG_SMPand disablingCONFIG_IRQBALANCEstill work?No, more precisely, in console mode I was able to run a latency test, then it hanged when rmmod-ing
xeno_native. On a second trial modprobexeno_posiximmediatly freezed...
Does the following sequence break the box too?
# modprobe xeno_native # rmmod xeno_native
without running any test (latency, whatever).
Quoted 5 lines
To summarize, xenomai tests work with a SMP enabled kernel in runlevel 2, but only with a UP kernel in runlevel 3 or 5.
It seems that NFS badly interracts with xenomai in SMP? Any other idea ?
NFS and Xenomai are unrelated. The problem seems to be caused by an low-level interrupt management issue, which may trigger most of the time with network interrupts. IOW, this could be an Adeos issue with your hw/sw combo, and specifically an IO/APIC issue.
Quoted 3 lines
Daniel
Signature · 1 line
Philippe.
Quoted 4 lines · On Thu, 12 Apr 2007 17:02:38 +0200 Philippe Gerum <[email protected]> wrote:
Does the following sequence break the box too?
# modprobe xeno_native # rmmod xeno_native without running any test (latency, whatever).
yes, this may happen, but not systematically
Quoted 1 line
The problem seems to be caused by an
l>ow-level interrupt management issue, which may trigger most of the time
Quoted 1 line
with network interrupts.
this happens even if eth0 is stopped and the pc booted out of connection with the network...
btw, several daemons are started when switching from
runlevel2 to runlevel3, including portmap, nfs, rpc, autofs, acpi, hal..., many potential sources of interrupt, isn'it?
Daniel
Signature · 4 lines
Daniel SIMON Projet NeCS INRIA Rhone-Alpes ZIRST, 655 avenue de l'Europe, 38330 MONTBONNOT SAINT MARTIN, FRANCE [email protected] Phone:(33)476615328 Fax:(33)476615252 http://necs.inrialpes.fr/people/simon/