From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: jmf <xeno.nonono@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] How to resolve this lockup situation?
Date: Mon, 30 Aug 2010 19:40:51 +0200 [thread overview]
Message-ID: <4C7BED23.5050400@domain.hid> (raw)
In-Reply-To: <loom.20100830T183243-347@domain.hid>
jmf wrote:
> Dear all,
>
> this is the situation: from a Xeno task, a shared library function is called
> to control some device. After a system update (both Xeno and the device
> drivers) that function returns with a timeout. As it turns out, as a part of
> the device drivers, there is also a deamon running which the shared lib
> tries to talk to. Obviously, while the RT task waits for the function to return,
> that deamon does not get any CPU time to answer so the function returns
> a timeout.
I do not understand how this is obvious. If the RT task waits, the rest
of the system may run, including the daemon.
If the daemon is not an RT application, and you have an RT task wait for
it, then your system has a serious flaw: it is not real-time. As could
have told you the T_WARNSW bit if you are using the native skin, or the
PTHREAD_WARNSW if you are using the posix skin (for more details, see
http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Using_the_PTHREAD_WARNSW_bit.
)
>
> Now, the questions are: why did it work before the update, before we
> noticed the existence of a deamon? Is there any way to make Xenomai give
> the Linux scheduler some time so the deamon can do its work? Or can that
> deamon process somehow be moved to the Xeno domain? I think I stumbled
> upon a respective function meant for testing once but can't find it anymore...
>
> Thanks a lot for any clue!
Without seeing any code, we have no clue either.
--
Gilles.
next prev parent reply other threads:[~2010-08-30 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 16:56 [Xenomai-help] How to resolve this lockup situation? jmf
2010-08-30 17:40 ` Gilles Chanteperdrix [this message]
2010-08-30 23:18 ` jmf
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=4C7BED23.5050400@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=xeno.nonono@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.