All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: ali hagigat <hagigatali@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] question: XENO_OPT_TIMING_SCHEDLAT
Date: Sat, 30 Jun 2012 12:44:18 +0200	[thread overview]
Message-ID: <4FEED882.9070307@xenomai.org> (raw)
In-Reply-To: <CAKKWdte1Yg5fEUN=jqVgyTkRTHwY62WrMdw99ZgqOZZdAnAm+w@mail.gmail.com>

On 06/30/2012 12:39 PM, ali hagigat wrote:
> Does this kernel config variable,  CONFIG_XENO_OPT_TIMING_SCHEDLAT,
> indicate the scheduling latency? If i specify 1 nano second, so all
> the real time tasks will be scheduled below 1 nano second?
> 
> It seems impossible!
> 
> If it is the time when a timer interrupt comes and preempts a real
> time task till that real time task is scheduled again ( is this the
> definition of the scheduling latency?). Again this definitions seems
> not OK because it can not be 1 nano second!! It is too fast to do any
> thing.
> 
> This configuration variable does not seem to have any range....

CONFIG_XENO_OPT_TIMING_SCHEDLAT is the value of /proc/xenomai/latency at
boot time.

/proc/xenomai/latency is an estimation of the minimum scheduling latency
on your system. In order to know what to put there you should do:

echo 0 > /proc/xenomai/latency

Run latency under load for several hour

echo minimum_latency > /proc/xenomai/latency

The value put there is then subtracted to timers deadline, so that
timers wake up a little bit early to compensate for the time it takes to
return to user-space.

-- 
                                                                Gilles.


  reply	other threads:[~2012-06-30 10:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-30 10:39 [Xenomai] question: XENO_OPT_TIMING_SCHEDLAT ali hagigat
2012-06-30 10:44 ` Gilles Chanteperdrix [this message]
2012-06-30 16:52   ` Christophe Blaess
2012-06-30 17:04     ` Gilles Chanteperdrix
2012-07-01 19:00       ` Christophe Blaess
2012-07-01 19:09         ` Gilles Chanteperdrix
2012-07-01 19:33         ` Gilles Chanteperdrix
2012-07-02  6:12           ` Christophe Blaess
2012-07-02  7:11             ` Christophe Blaess
2012-07-02  8:47               ` 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=4FEED882.9070307@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=hagigatali@gmail.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.