From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: ROSSIER Daniel <Daniel.Rossier@domain.hid>
Cc: xenomai@xenomai.org, jan.kiszka@domain.hid
Subject: RE: [Xenomai-help] Strange behaviour w/mutex&semaphore
Date: Thu, 20 Jul 2006 13:49:49 +0200 [thread overview]
Message-ID: <17599.28125.410049.220275@domain.hid> (raw)
In-Reply-To: <FDBBB5CC70676540B3EF7CFE83FD94E0210E16@domain.hid>
ROSSIER Daniel wrote:
>
>
> > -----Message d'origine-----
> > De : jan.kiszka@domain.hid [mailto:jan.kiszka@domain.hid]
> > Envoyé : jeudi, 20. juillet 2006 13:03
> > À : ROSSIER Daniel
> > Cc : xenomai@xenomai.org
> > Objet : Re: [Xenomai-help] Strange behaviour w/mutex&semaphore
> >
> > ROSSIER Daniel wrote:
> > > Hi all,
> > >
> > > I've a strange behaviour with the attached piece of code.
> > > It's really simple: there are 3 tasks and we're spinning within the task
> > in order
> > > to simulate task load.
> > >
> > > It's a pure academic exercice, so don't try to think about the
> > usefulness of this code ;-)
> > >
> > >
> > > Actually, after insmod'ing the code into the kernel, the system freezes
> > and
> > > the "meteoDataAcquisition" task is suspended runaway by the internal
> > xenomai watchdog.
> > >
> > > Why?
> > >
> > > Anything wrong in this code?
> >
> > Check the values you assign to rt_task_set_periodic. Kind of... fast?
>
> No, with at these frequencies, there is no problem (the jiffy is at
> 1ms).
There are two tasks with a period of 20 ms that are spinning 10 ms
each. Does not this put a 100% load on the RT system ? If yes, then
Linux has no time left to run. That is what the watchdog is here to
avoid. You should try reducing the spinning time in order to let some
time for Linux to run.
--
Gilles Chanteperdrix.
next prev parent reply other threads:[~2006-07-20 11:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 10:54 [Xenomai-help] Strange behaviour w/mutex&semaphore ROSSIER Daniel
2006-07-20 11:03 ` Jan Kiszka
2006-07-20 11:17 ` ROSSIER Daniel
2006-07-20 11:49 ` Gilles Chanteperdrix [this message]
2006-07-20 11:59 ` ROSSIER Daniel
2006-07-20 12:04 ` Philippe Gerum
2006-07-20 12:44 ` ROSSIER Daniel
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=17599.28125.410049.220275@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Daniel.Rossier@domain.hid \
--cc=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.