All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Jens Köhler" <jenskxxx@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai and select() function - don't work correctly
Date: Fri, 18 Mar 2011 12:53:08 +0100	[thread overview]
Message-ID: <4D8347A4.7080303@domain.hid> (raw)
In-Reply-To: <AANLkTi=G7sEYAqMKS+PEaDgH2q=d-h=_wsoCkFZLLAip@domain.hid>

Jens Köhler wrote:
> Hello,
> 
> on my atom processor based computer is Xenomai installed. (Kernel 2.6.26,
> 1000Hz, Xenomai 2.4.10, PREEMPT patch, no xenomai application running).
> 
> A normal linux application reads serial data from an UART
> (16550A) and checks by select() function if there are new received
> bytes. Select() has a timeout parameter, set to 12 milliseconds. Some times
> it happens that select() waits 43 ms instead of maximum 12 ms. Result value
> of select() is timeout instead of "byte received". Could this caused by
> Xenomai?

Run the same test without enabling Xenomai in the kernel configuration,
and you will know.

> How could I improve it?

Well basically, you are complaining that Linux is not real-time. We know
that, this is the reason why real-time extensions such as Xenomai or
preempt_rt exist.

-- 
                                                                Gilles.



  reply	other threads:[~2011-03-18 11:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-18 11:48 [Xenomai-help] Xenomai and select() function - don't work correctly Jens Köhler
2011-03-18 11:53 ` Gilles Chanteperdrix [this message]
2011-03-18 12:05 ` Jan Kiszka
2011-03-18 14:05   ` Jens Köhler
2011-03-18 22:12     ` 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=4D8347A4.7080303@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jenskxxx@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.