All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Joachim Meyer <Jogi95@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] latency in kernel mode
Date: Wed, 02 Jul 2008 15:09:45 +0200	[thread overview]
Message-ID: <486B7E19.3030505@domain.hid> (raw)
In-Reply-To: <853493434@domain.hid>

Joachim Meyer wrote:
> Sorry, for my late answer.
> 
> I enabled the timerbench module, and installed it with the other modules (IRQ Benchmark and Context Switch).
> The Switchtest test works, so I think the modules are correct installed and the tests are able to load them.
> Does this mean the timerbench module isn't ok? Or are there other possible reasons, why the latency test still says:
> 
> bash-3.00# ./run -- -t 1
> *
> *
> * Type ^C to stop this application.
> *
> *
> == Sampling period: 100 us
> == Test mode: in-kernel periodic task
> == All results in microseconds
> latency: failed to start in-kernel timer benchmark, code -25
> ---|------------|------------|------------|--------|-------------------------
> RTS|  267928.028|  805352.732|      32.768|       0|    00:00:07/00:00:07
> bash-3.00#
> 

What does the following command show:

   # cat /proc/xenomai/rtdm/rttest*/information

You may need to use the option "-D 1".

> I just want to add that I'm using a ppc405 on an Xilinx Virtex2pro (XUP Board), Linux v2.6.23xlnx, a rootFS from eldk4.1 and Xenomai 2.4.2.
> 
> Are there any other importent options in compiling the kernel. I thought perhaps there are good default values, which will do it for me in the beginning. 
> My Real-time sub-system config: 
> [*] Xenomai
>  <*> Nucleus
>  [*] Pervasive real-time support in user-space
>  [ ] Interuppt shield support
>  [*] Priority coupling support
>  [*] optimize as pipeline head
>  (32) number of pipe devices
>  (512) Number of registry slots
>  (128) Size of the system heap (Kb)
>  [*] Statistics collection
>  [ ] Debug Support
>  [ ] Shared interuppts
>  Timing --> [ ] Enable periodic timing
>                   (0) Scheduling latency (ns)
>  Scalability --> [ ] 0(1) scheduler
>                        Timer indexing method (Linear) --> (X) Linear
>                                                                                ( ) Tree
>                                                                                ( ) Hash
> Machine --> No options!
> Interfaces --> Not in the mood to print all of this, but if it would help, i 'would do it.
> Drivers --> only the three testing drivers as modules

The default values are good to start with.

> Another Question I have is about the Output of my switchbench test:
> 
> bash-3.00# ./run -- -n 5000
> *
> *
> * Type ^C to stop this application.
> *
> *
> == Sampling period: 100 us
> == Do not interrupt this program
> RTH|       lat min|     lat avg|     lat max|        lost
> RTD|      -29560|        5810|       49723|        4352
> bash-3.00#
> 
> Is it normal that the lost number is that high? If not, what can i do?

A period of 100us is tough for your system. What worst case latencies do 
you measure with the latency program under load. It will be more than 
100us, I guess.

Wolfgang.



  reply	other threads:[~2008-07-02 13:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02 12:41 [Xenomai-help] latency in kernel mode Joachim Meyer
2008-07-02 13:09 ` Wolfgang Grandegger [this message]
2008-07-02 13:09 ` Sebastian Smolorz
  -- strict thread matches above, loose matches on Subject: below --
2008-07-10 14:34 Joachim Meyer
2008-07-10 13:40 Joachim Meyer
2008-07-02 13:58 Joachim Meyer
2008-06-25  7:33 Joachim Meyer
2008-06-25  7:40 ` Gilles Chanteperdrix
2008-07-09 17:38   ` Breno Carneiro Pinheiro
2008-07-09 18:14     ` Gilles Chanteperdrix
2008-06-25  7:46 ` Sebastian Smolorz

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=486B7E19.3030505@domain.hid \
    --to=wg@domain.hid \
    --cc=Jogi95@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.