From: Philippe Gerum <rpm@xenomai.org>
To: "Carsten Spieß" <mail@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] how to stop a runaway task
Date: Tue, 30 Oct 2007 11:33:05 +0100 [thread overview]
Message-ID: <47270861.8090500@domain.hid> (raw)
In-Reply-To: <1935435350.20071030105318@domain.hid>
Carsten Spieß wrote:
> Hello Philippe,
>
>>> But this approach didn't work, the higer prio task isn't called unless
>>> the lower prio task gives up cpu (by calling e.g. rt_task_yield or
>>> nanosleep) (see attached demo source)
>> This would basically say that the core does not give any real-time
>> guarantee.
> I hope this is not the case.
>> Please send some demo code showing this.
> I've attached it, please remove the rt_task_yield to see the effect.
>>> When not being cooperative (removing the rt_task_yield in the demo)
>>> my system is reset after some seconds.
This works fine on 2.4-rc4/x86-2.6.22 here, so I need to switch to a
similar ppc configuration to try reproducing it. More news later. Please
send your kernel .config for 2.4.25 in the meantime.
>>>
>>> Why isn't my supervising task scheduled?
>>>
>
>> Try enabling the nucleus watchdog (Xenomai debug options). It does kill
>> runaway tasks.
> O.k. i will try this.
You will have to remove the printf() from the low prio task for the
nucleus watchdog to detect the runaway situation, otherwise, your task
would be considered as being under the control of the Linux scheduler
until it issues a blocking Xenomai syscall (which it never does), and
therefore escape the watchdog detection. That's the particular case I
was talking about.
>
>> If this works on your setup, then your code must be
>> wrong. If it does not trigger, then we need to understand why -- there
>> is one case where it may not trigger, but this does not involve any
>> breakage in task management.
>
> Regards Carsten
--
Philippe.
next prev parent reply other threads:[~2007-10-30 10:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-30 8:40 [Xenomai-help] how to stop a runaway task Carsten Spieß
2007-10-30 9:00 ` Philippe Gerum
2007-10-30 9:53 ` Carsten Spieß
2007-10-30 10:33 ` Philippe Gerum [this message]
2007-10-31 17:20 ` Carsten Spieß
2007-10-31 19:03 ` Gilles Chanteperdrix
2007-10-31 19:43 ` Gilles Chanteperdrix
2007-11-01 8:38 ` Carsten Spieß
2007-11-01 16:22 ` Gilles Chanteperdrix
2007-11-01 19:40 ` Carsten Spieß
2007-11-01 19:47 ` Gilles Chanteperdrix
2007-12-22 19:11 ` Philippe Gerum
2007-12-23 21:55 ` Carsten Spieß
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=47270861.8090500@domain.hid \
--to=rpm@xenomai.org \
--cc=mail@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.