All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: "Krzysztof Błaszkowski" <kb@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] rt timer jitter
Date: Fri, 20 Aug 2010 18:31:45 +0200	[thread overview]
Message-ID: <1282321905.1730.648.camel@domain.hid> (raw)
In-Reply-To: <1282321252.5255.415.camel@domain.hid>

On Fri, 2010-08-20 at 18:20 +0200, Krzysztof Błaszkowski wrote:
> On Fri, 2010-08-20 at 18:06 +0200, Philippe Gerum wrote:
> > On Fri, 2010-08-20 at 17:55 +0200, Krzysztof Błaszkowski wrote:
> > > Do you have any idea about reducing rt timer jitter ?
> > > I experience annoyingly big jitter in a thread which is supposed to run
> > > at 400us (i reckon this is nothing extra demanding from atom @1.6G)
> > > 
> > > 
> > > the thread's loop looks like:
> > > 
> > > {
> > > function1()
> > > ..2()
> > > ..3()
> > > ..4()
> > > 
> > > rt_task_wait_period()
> > > }
> > > 
> > > (^yet another simplified model^)
> > 
> > This is the typical pattern of the latency test. What figures do you get
> > with:
> > 
> > # /usr/xenomai/bin/latency -t0
> > ...
> > # /usr/xenomai/bin/latency -t1
> > 
> 
> t0:
> 
> RTS|     -1.337|     -0.039|     13.285|       0|     0|
> 00:02:13/00:02:13
> 

Those are common figures for user-space latency on the kind of hw you
run this test on.

> 
> i can't run t1 because of missing seno_timerbench.ko (i have no idea how
> to find a config option which would build it)
> 

Did you consider using the "Search" feature from
xconfig/gconfig/whatever, looking for "timerbench"?

config XENO_DRIVERS_TIMERBENCH
	depends on XENO_SKIN_RTDM
	tristate "Timer benchmark driver"
	default y
	help
	Kernel-based benchmark driver for timer latency evaluation.
	See testsuite/latency for a possible front-end.

If you run your app in kernel space, then -t1 is what you want to run.

-- 
Philippe.




  reply	other threads:[~2010-08-20 16:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20 15:55 [Xenomai-core] rt timer jitter Krzysztof Błaszkowski
2010-08-20 16:00 ` Gilles Chanteperdrix
2010-08-20 16:01 ` Gilles Chanteperdrix
2010-08-20 16:14   ` Krzysztof Błaszkowski
2010-08-20 16:32     ` Philippe Gerum
2010-08-20 16:06 ` Philippe Gerum
2010-08-20 16:20   ` Krzysztof Błaszkowski
2010-08-20 16:31     ` Philippe Gerum [this message]
2010-08-21  9:08 ` 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=1282321905.1730.648.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=kb@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.