All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Jens Köhler" <jenskxxx@googlemail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] Xenomai and normal linux application - Wait time with select() not reliable
Date: Mon, 19 Nov 2012 14:42:10 +0100	[thread overview]
Message-ID: <50AA3732.5000701@xenomai.org> (raw)
In-Reply-To: <CAL7_A_WZ=mQ9F_Od92qQKFS85QcOtOwqyXu+omrhOBgnZpJFNQ@mail.gmail.com>

On 11/19/2012 02:29 PM, Jens Köhler wrote:
> Hello,
> 
> Now is Xenomai 2.6 installed. But I have sometimes still delays in
> user space applications.
> 
> Delay: 0.003064
> Delay: 0.003066
> Delay: 0.003504
> Delay: 0.003066
> Delay: 0.003066
> Delay: 0.003066
> Delay: 0.003090
> Delay: 0.003064
> Delay: 0.003066
> Delay: 0.003067
> Delay: 0.053807 <- 53 ms instead 3ms
> Delay: 0.003067
> Delay: 0.003067
> 
> I found out that problem depends from a real time queue between two
> Xenomai tasks.
> 
> retval = rt_queue_create(&RtMeasureData, "RtMeasureData", 1000 * 256,
> Q_UNLIMITED, Q_FIFO | Q_SHARED);
> 
> A real time task writes measurement data every 2 ms to a rt_queue.
> retval = rt_queue_write(&RtMeasureData, &FifoMeasureData, 256, Q_NORMAL);
> 
> Another Xenomai task reads all measured data from queue and makes them
> available for user land applications. (Task is not real time, context
> switches)
> 
> retval = rt_queue_read(&RtMeasureData, &FifoMeasureData, 256, TM_NONBLOCK);
> 
> When nothing is written to queue is there also never an unexpected delay.
> 
> Any ideas or recommendations to find reason for problem?

Without seeing any code, there is strictly nothing we can do.
If you are able to reduce the code to a simple, self-contained test case
we can run anywhere, then we can have a look at it.
If not, then use the I-pipe tracer.

-- 
					    Gilles.


  reply	other threads:[~2012-11-19 13:42 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-03 13:30 [Xenomai] Xenomai and normal linux application - Wait time with select() not reliable Jens Köhler
2012-07-03 21:53 ` Gilles Chanteperdrix
2012-07-04  8:36   ` Jens Köhler
2012-07-04  8:45     ` Gilles Chanteperdrix
2012-07-04 10:06       ` Philippe Gerum
2012-07-04 11:45         ` Jens Köhler
2012-07-04 12:04           ` Gilles Chanteperdrix
     [not found]             ` <CAL7_A_VQe-KGBoYq034hT=6CdJJPpwEQTs1EgDQ=325WjOfUzw@mail.gmail.com>
2012-07-04 12:57               ` Gilles Chanteperdrix
2012-07-04 13:10           ` Jens Köhler
2012-07-04 13:17             ` Jens Köhler
2012-07-04 13:22             ` Gilles Chanteperdrix
     [not found]               ` <CAL7_A_WTJUeWNTTra2t9veiyWMxC5VtpotocMHGPdU1v7QAxKA@mail.gmail.com>
     [not found]                 ` <4FF44C52.6050809@xenomai.org>
     [not found]                   ` <CAL7_A_VUC8JD9yeMnLt2iJQ0ex_at3QMhiL3cQ5CHPFh0rcJRA@mail.gmail.com>
     [not found]                     ` <4FF585C4.1000708@xenomai.org>
2012-11-19 13:29                       ` Jens Köhler
2012-11-19 13:42                         ` Gilles Chanteperdrix [this message]
2012-12-03  7:59                           ` Jens Köhler
2012-12-03  9:26                             ` Gilles Chanteperdrix
2012-12-04 10:09                               ` Jens Köhler
     [not found]                               ` <CAL7_A_XHtj19V3gnog7_Hoer6UGxRJfoFwT0sgzQvhtARB3b9A@mail.gmail.com>
2013-01-21 12:09                                 ` Gilles Chanteperdrix
     [not found]                                   ` <CAL7_A_Wkjj1mTeDcEfDzPKFkQhiYeChPgC=ggVkedxqy=yaLng@mail.gmail.com>
2013-01-21 18:48                                     ` Gilles Chanteperdrix
2012-07-04 13:33           ` 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=50AA3732.5000701@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jenskxxx@googlemail.com \
    --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.