From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Landau, Bracha" <BLandau@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] xenomai user app working very slowly - "select" issue
Date: Thu, 14 Jan 2010 15:49:41 +0100 [thread overview]
Message-ID: <4B4F2F05.1040407@domain.hid> (raw)
In-Reply-To: <065A7D06F7D4E546A18E80E08D066E18146A341B1B@ILMA1.IL.NDS.COM>
Landau, Bracha wrote:
> I rebuilt with 2.5.0 and that particular problem is gone.
> However, I see a different behavior between the regular implementation and the xenomai implementation:
>
> I have a series of identical threads waiting, using select, on one of two message queues. One message queues is waited upon only by that thread, and the other is waited upon by all the threads. When the select returns the thread reads from the queue that has input ready.
>
> I sent messages to the general queue (i.e., the one waited upon by multiple threads).
>
> In the regular (non-xenomai) implementation, I see that the messages were processed more-or-less equally among all the waiting threads.
>
> In the xenomai implementation, all the messages were processed by a single thread.
>
> Is there any way to make the scheduling done more "fairly" in xenomai?
The SCHED_FIFO policy is the contrary of fairness. Have you try to use
the SCHED_FIFO policy with Linux too?
There is not much point using several thread to select on the same file
descriptor. The point of select is rather the reverse: being able to
wait for several file descriptors with only one thread. If you have
If the thread have different priorities, the woken up thread is always
the thread with the highest priority.
Other than that, I do not really understand what you are talking about,
your description of the problem is rather vague. Please post a test case.
--
Gilles Chanteperdrix, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2010-01-14 14:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-11 17:36 [Xenomai-help] xenomai user app working very slowly Landau, Bracha
2010-01-11 17:53 ` Gilles Chanteperdrix
[not found] ` <4B4B64AF.3040704@domain.hid>
2010-01-12 11:32 ` Landau, Bracha
2010-01-12 11:36 ` Gilles Chanteperdrix
2010-01-14 13:53 ` [Xenomai-help] xenomai user app working very slowly - "select" issue Landau, Bracha
2010-01-14 14:49 ` Gilles Chanteperdrix [this message]
2010-01-21 16:29 ` Landau, Bracha
2010-01-21 16:32 ` Gilles Chanteperdrix
2010-01-21 16:41 ` Gilles Chanteperdrix
2010-01-21 16:45 ` Landau, Bracha
2010-01-21 16:49 ` Gilles Chanteperdrix
2010-01-21 17:11 ` Philippe Gerum
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=4B4F2F05.1040407@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=BLandau@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.