From: Philippe Gerum <rpm@xenomai.org>
To: Michel Rinaldi <automation.03@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problems with rt_task_create and rt_task_join
Date: Fri, 21 Jan 2011 18:11:35 +0100 [thread overview]
Message-ID: <1295629895.1828.59.camel@domain.hid> (raw)
In-Reply-To: <22767829.221295629285203.JavaMail.SYSTEM@PC-MRINALDI>
On Fri, 2011-01-21 at 18:01 +0100, Michel Rinaldi wrote:
> Hi to all,
>
> I'm running an application on a Linux system with kernel 2.6.35.7
> patched with Xenomai 2.5.5.2, Adeos ipipe patch 2.7-04.
> My application uses native skin and creates some realtime tasks, each
> with rt_task_shadow(), each other with rt_task_create().
Sorry, -ENOPARSE. rt_task_shadow() is usually invoked from the main
thread to make it a Xenomai thread, rt_task_create is normally used to
create more tasks. Who is doing what in your code exactly? How many
times is rt_task_shadow() invoked?
> When I call for first time rt_task_create(), this function is very
> slow (700-800 ms) to execute, also if rt_task_shadow() calls come
> first. Subsequent calls of rt_task_create() are quick as expected. I
> read on manual that at first call rt_task_create() creates a signal
> handler for SIGWINCH signal: could be this operation that wastes time,
> maybe on waiting some resources from Linx kernel?
No, can't be that long. Something looks wrong in your application init.
> Another problem that I've encountered is that if I call a
> rt_int_delete() and then a rt_task_join() on userspace task that
> handles destroyed IRQ, rt_task_join() never returns (obviously this
> task was created with joinable flag). If I create this task without
> joinable flag and then I call rt_task_delete() instead rt_task_join()
> I obtain two different behaviours: sometimes rt_task_delete() returns
> but I still view task on /proc/xenomai/sched (with X status),
> sometimes system freezes on this call.
Make sure to test the return values of ALL Xenomai syscalls in your app,
particularly what rt_intr_wait() sends you back, and make sure to break
out from your work loop whenever it signals any error.
> Thanks to all in advance.
> Regards
>
> Mauro Salvini
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2011-01-21 17:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14515395.201295629170328.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-21 17:01 ` [Xenomai-help] Problems with rt_task_create and rt_task_join Michel Rinaldi
2011-01-21 17:11 ` Philippe Gerum [this message]
2011-01-22 14:26 ` Mauro
2011-01-22 19:14 ` Gilles Chanteperdrix
2011-01-24 14:05 ` Michel Rinaldi
2011-01-24 14:27 ` Gilles Chanteperdrix
[not found] <24653571.21295878006500.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-24 14:07 ` Michel Rinaldi
[not found] <22536578.91295887083468.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-24 16:39 ` Michel Rinaldi
2011-01-24 16:44 ` Gilles Chanteperdrix
2011-01-24 16:54 ` Gilles Chanteperdrix
[not found] <20964580.81295961364859.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-25 13:17 ` Michel Rinaldi
2011-01-25 13:26 ` Gilles Chanteperdrix
[not found] <11269195.111296118370328.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-27 8:58 ` Michel Rinaldi
2011-01-27 13:36 ` Gilles Chanteperdrix
[not found] <29582899.21296203622078.JavaMail.SYSTEM@PC-MRINALDI>
2011-01-28 8:34 ` Michel Rinaldi
2011-01-28 17:43 ` Gilles Chanteperdrix
[not found] <21381658.41297350790328.JavaMail.SYSTEM@pc-msalvini>
2011-02-10 15:20 ` Mauro Salvini
2011-02-10 16:14 ` Gilles Chanteperdrix
[not found] <8701358.01297411757328.JavaMail.SYSTEM@pc-msalvini>
2011-02-11 8:10 ` Mauro Salvini
2011-02-11 9:56 ` 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=1295629895.1828.59.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=automation.03@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.