From: Jan Kiszka <jan.kiszka@domain.hid>
To: Jeff Weber <jweber@domain.hid>
Cc: Xenomai Help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] task not being scheduled
Date: Tue, 27 Feb 2007 19:30:19 +0100 [thread overview]
Message-ID: <45E478BB.40301@domain.hid> (raw)
In-Reply-To: <200702271214.01911.jweber@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 3595 bytes --]
Jeff Weber wrote:
> I have system where a 100Hz periodic task is occasionally over running it's
> periodic task wakeup by 10s of msec. To debug the problem, I froze an ipipe
> verbose trace upon an -ETIMEDOUT error return from rt_task_wait_period().
> A filtered output of the trace appears below. This trace includes every
> occurence of the task, which is pid 7380.
Please post the unfiltered (but compressed) trace. It's not yet obvious
from the excerpt below what happens.
>
> :| # [ 7380] -<?>- 35 -25252+ 5.587 xnpod_resume_thread+0x59 [xeno_nucleus ] (xnthread_periodic_handler+0x31 [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -24820+ 4.214 xnpod_schedule+0x6c0 [xeno_nucleus] (x npod_suspend_thread+0x118 [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -24734+ 1.501 xnpod_schedule+0x97 [xeno_nucleus] (xn intr_irq_handler+0x9a [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -24589+ 1.218 xnpod_schedule+0x6c0 [xeno_nucleus] (x nintr_irq_handler+0x9a [xeno_nucleus])
> : + func -24587 0.493 __rt_task_wait_period+0x11 [xeno_native] (hisyscall_event+0x162 [xeno_nucleus])
> : + func -24586 0.485 rt_task_wait_period+0xb [xeno_native] (__rt_task_wait_period+0x3f [xeno_native])
> : + func -24586 0.464 xnpod_wait_thread_period+0xe [xeno_nucleus] (rt_task_wait_period+0x4b [xeno_native])
> :| + begin 0x80000001 -24586 0.718 xnpod_wait_thread_period+0x1ed [xeno_nucleus] (rt_task_wait_period+0x4b [xeno_native])
> :| # func -24585 0.621 xnpod_suspend_thread+0xe [xeno_nucleus] (xnpod_wait_thread_period+0x91 [xeno_nucleus])
> :| # func -24584 0.558 xnpod_schedule+0xe [xeno_nucleus] (xnpod_suspend_thread+0x118 [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -24584 0.847 xnpod_schedule+0x97 [xeno_nucleus] (xn pod_suspend_thread+0x118 [xeno_nucleus])
> :| # [ 0] -<?>- -1 -10630 0.916 xnpod_schedule+0x6c0 [xeno_nucleus] (xnintr_irq_handler+0x9a [xeno_nucleus])
> :| # [ 0] -<?>- -1 -4632 0.886 xnpod_schedule+0x6c0 [xeno_nucleus] (xnintr_irq_handler+0x9a [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -609+ 1.747 xnpod_resume_thread+0x59 [xeno_nucleus] (xnthread_periodic_handler+0x31 [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -186+ 4.288 xnpod_schedule+0x6c0 [xeno_nucleus] (xn pod_suspend_thread+0x118 [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -143+ 1.554 xnpod_schedule+0x97 [xeno_nucleus] (xni ntr_irq_handler+0x9a [xeno_nucleus])
> :| # [ 7380] -<?>- 35 -6+ 1.211 xnpod_schedule+0x6c0 [xeno_nucleus] (xn intr_irq_handler+0x9a [xeno_nucleus])
> < + freeze 0x00000007 0 0.929 xnshadow_sys_trace+0x8b [xeno_nucleus] (hisyscall_event+0x162 [xeno_nucleus])
>
>
> At time -24587 usec, the task calls rt_task_wait_period(), presumable to
> sleep for approx 10msec. So, I would expect to see the task resumed at
> approx clock -14587. However, the task is not resumed until clock -609,
> and not run until time -186. So, the task wasn't sheduled for over 14msec.
> During this time, the ROOT task, presumably pid=0 priority=-1, ran 61
> times. I included a 2 samples of this in the above trace.
> Thus a worse priority task ran many times, when my better priority
> task was not being scheduled.
>
> I am new to interpreting ipipe traces, and may be overlooking some of the details.
> I would appreciate help understanding this problem, and how to fix it.
>
> config:
> arch = x86
> Linux 2.6.17.14
> Xenomai-2.2.4
> ipipe 1.5-00
>
>
> TIA,
> Jeff
>
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
next prev parent reply other threads:[~2007-02-27 18:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-27 18:14 [Xenomai-help] task not being scheduled Jeff Weber
2007-02-27 18:30 ` Jan Kiszka [this message]
2007-02-27 18:31 ` Jan Kiszka
2007-02-27 20:04 ` Jeff Weber
2007-02-27 20:29 ` Jan Kiszka
2007-02-27 20:59 ` Gilles Chanteperdrix
2007-02-27 21:09 ` Jeff Weber
2007-02-27 21:31 ` Gilles Chanteperdrix
2007-02-28 13:50 ` Jeff Weber
2007-02-28 13:58 ` [Xenomai-core] " Philippe Gerum
2007-02-28 14:11 ` Jan Kiszka
2007-02-28 14:20 ` Gilles Chanteperdrix
2007-02-28 15:31 ` Jeff Weber
2007-03-01 16:51 ` [Xenomai-core] " Gilles Chanteperdrix
2007-03-08 19:26 ` 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=45E478BB.40301@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=jweber@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.