All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] nervous nmi-watchdog
Date: Tue, 23 May 2006 22:21:56 +0200	[thread overview]
Message-ID: <44736EE4.2060807@domain.hid> (raw)

[-- Attachment #1: Type: text/plain, Size: 4049 bytes --]

Hi,

I'm getting nmi alarms about latency being > 100 us on a dual P-III 1GHz
(with and without CONFIG_SMP) once I start the latency test tool. But
the must be false positive. Can someone comment on this trace:

> :    *fn                 -109!  91.810  __ipipe_unstall_root+0x8 (default_idle+0x3f)
> :|    fn                  -18    0.220  __ipipe_handle_irq+0xe (common_interrupt+0x18)
> :|    fn                  -17    0.228  __ipipe_ack_system_irq+0x8 (__ipipe_handle_irq+0x7f)
> :|    fn                  -17    0.191  __ipipe_dispatch_wired+0xb (__ipipe_handle_irq+0x8a)
> :|  * fn                  -17    0.219  xnintr_clock_handler+0x8 (__ipipe_dispatch_wired+0x77)
> :|  * fn                  -17    0.198  rthal_nmi_disarm+0x8 (xnintr_clock_handler+0xd)
> :|  * fn                  -17    0.202  xnintr_irq_handler+0xb (xnintr_clock_handler+0x1d)
> :|  * fn                  -16    0.197  xnpod_announce_tick+0x8 (xnintr_irq_handler+0x24)
> :|  * fn                  -16    0.256  xntimer_do_tick_aperiodic+0xe (xnpod_announce_tick+0xf)
> :|  * fn                  -16    0.203  xnthread_periodic_handler+0x8 (xntimer_do_tick_aperiodic+0x7c)
> :|  * fn                  -16    0.590  xnpod_resume_thread+0xe (xnthread_periodic_handler+0x1c)
> :|  * fn                  -15    0.315  rthal_nmi_arm+0xe (xntimer_do_tick_aperiodic+0x1ed)
> :|  * (0x00) 0x000305fb   -15    0.223  rthal_nmi_arm+0xb5 (xntimer_do_tick_aperiodic+0x1ed)

[This is an ipipe_trace_special, reporting the delay (~200 us = 100 us
period + 100 us nmi-trigger).]

> :|  * fn                  -15    0.370  xnpod_schedule+0xe (xnintr_irq_handler+0x5f)
> :|  * fn                  -14    0.694  __switch_to+0xe (xnpod_schedule+0x557)
> :|  * fn                  -13    0.826  __ipipe_restore_pipeline_head+0x8 (xnpod_wait_thread_period+0x1a1)
> :     fn                  -13    0.222  __ipipe_syscall_root+0x9 (system_call+0x20)
> :     fn                  -12    0.235  __ipipe_dispatch_event+0xe (__ipipe_syscall_root+0x55)
> :     fn                  -12    0.223  hisyscall_event+0xe (__ipipe_dispatch_event+0x5e)
> :     fn                  -12    0.188  __rt_task_wait_period+0xd (hisyscall_event+0x220)
> :     fn                  -12    0.192  rt_task_wait_period+0x8 (__rt_task_wait_period+0x39)
> :     fn                  -12    0.250  xnpod_wait_thread_period+0xe (rt_task_wait_period+0x32)
> :|  * fn                  -11    0.270  xnpod_suspend_thread+0xb (xnpod_wait_thread_period+0x6b)
> :|  * fn                  -11    0.342  xnpod_schedule+0xe (xnpod_suspend_thread+0xeb)
> :|  * fn                  -11    0.584  __switch_to+0xe (xnpod_schedule+0x557)
> :|    fn                  -10    0.264  __ipipe_walk_pipeline+0xe (__ipipe_handle_irq+0x178)
> :|    fn                  -10    0.302  __ipipe_unstall_iret_root+0x8 (restore_raw+0x0)
> :     fn                  -10    0.191  __ipipe_stall_root+0x8 (default_idle+0x33)
> :    *fn                   -9+   6.641  __ipipe_unstall_root+0x8 (default_idle+0x3f)
> :|    fn                   -3    0.530  do_nmi+0xd (nmi_stack_correct+0x1d)
> :|    fn                   -2+   1.315  dummy_nmi_callback+0x8 (do_nmi+0x39)
> :|    fn                   -1    0.384  notifier_call_chain+0xb (do_nmi+0x7b)
> :|    fn                    0    0.612  rthal_nmi_watchdog_tick+0xe (do_nmi+0x99)
> :|    fn                    0    0.373  rthal_latency_above_max+0x8 (rthal_nmi_watchdog_tick+0x21)
> <|    freeze 0x00000064     0    1.060  rthal_latency_above_max+0x13 (rthal_nmi_watchdog_tick+0x21)

[And this happens less than 15 us after the arming.]

>  |    fn                    1    0.628  __ipipe_handle_irq+0xe (common_interrupt+0x18)
>  |    fn                    1    0.199  __ipipe_ack_common_irq+0xa (__ipipe_handle_irq+0xeb)
>  |    fn                    1    0.242  ipipe_test_and_stall_pipeline_from+0x8 (__ipipe_ack_common_irq+0x17)

Is there something like spurious nmi? No real nmi-related problem is
reported otherwise by the kernel.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

             reply	other threads:[~2006-05-23 20:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-23 20:21 Jan Kiszka [this message]
2006-06-05 16:35 ` [Xenomai-core] nervous nmi-watchdog Philippe Gerum
2006-06-05 19:06   ` Gilles Chanteperdrix
2006-06-05 19:15     ` Philippe Gerum
2006-07-09 12:50       ` Gilles Chanteperdrix
2006-07-09 16:41         ` Philippe Gerum
2006-07-09 16:56           ` Jan Kiszka
2006-07-09 17:07             ` Philippe Gerum
2006-07-09 18:13               ` Jan Kiszka
2006-07-09 19:36               ` Gilles Chanteperdrix
2006-07-10 17:28                 ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44736EE4.2060807@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.