All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Bruno Tunes de Mello <bruno_v05_2005@yahoo.com.br>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] User Space Problems
Date: Tue, 04 Mar 2014 16:11:27 +0100	[thread overview]
Message-ID: <5315ED1F.60602@xenomai.org> (raw)
In-Reply-To: <1393904852.42577.YahooMailNeo@web140603.mail.bf1.yahoo.com>

On 03/04/2014 04:47 AM, Bruno Tunes de Mello wrote:
> Hi Gilles,
> 
> You are right, in the first test, I executed both latency and xeno-test commands. Sorry.
> The others test I executed only latency command.
> 
> I tried to enable the discard service on /etc/inetd.conf, I don't know if I did it right, but in /etc/services file I found 'discard 9/tcp sink null' and 'discard 9/udp sink null'.
> Then I used the command you said:
> xeno-test -l "dohell -s 192.168.0.5 -m /media/linaro/PENDRIVE -l /opt/ltp" -c 0 -p 100 -g histo
> 
> I tested a few times and the better result is: http://pt-br.tinypic.com/r/206mmvn/8
> This result is not so good like that you showed.
> 
> My doubt is if this result is satisfactory (the platform is ready for develop applications) or do you think that I need to do some correction?

70us is a bit high, but on the other hand:
- the mx6q is a quad-core, whereas the omap4 is a dual core, the latency
increases with the number of cores;
- the tests I make on omap4 do not use much of the processor
peripherals, such as the graphic co-processor, so, if you use the
graphic co-processor, you may observe an increase in latencies as well.

Finally, whether this is satisfactory depends on your application.

The only way to improve latency is to enable the I-pipe tracer, and try
and understand where the maximum latency come from, but this is time
consuming.

Also, some settings are known to result in an improvement in latencies:
- turn off CONFIG_PREEMPT (i.e. enable CONFIG_PREEMPT_NONE), this looks
contradictory, as the menu entry says "low latency", but it is talking
about Linux latencies, not Xenomai's
- build kernel and user-space in thumb2
- disable Xenomai unlocked context switch

But do not expect these settings to reduce the latency by more than say 5us.


-- 
                                                                Gilles.


  reply	other threads:[~2014-03-04 15:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 14:31 [Xenomai] User Space Problems Bruno Tunes de Mello
2014-02-21 14:46 ` Gilles Chanteperdrix
2014-02-23 23:32   ` Bruno Tunes de Mello
2014-02-23 23:37     ` Gilles Chanteperdrix
2014-02-24  1:11       ` Bruno Tunes de Mello
2014-02-24 12:12         ` Gilles Chanteperdrix
2014-02-25  3:26           ` Bruno Tunes de Mello
2014-02-25  9:27             ` Gilles Chanteperdrix
2014-02-25 10:04             ` Gilles Chanteperdrix
2014-02-25 13:35               ` Bruno Tunes de Mello
2014-02-25 13:41                 ` Gilles Chanteperdrix
2014-03-03 18:32                   ` Bruno Tunes de Mello
2014-03-03 18:45                     ` Gilles Chanteperdrix
2014-03-04  3:47                       ` Bruno Tunes de Mello
2014-03-04 15:11                         ` Gilles Chanteperdrix [this message]
2014-03-11  0:51                           ` Bruno Tunes de Mello

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=5315ED1F.60602@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=bruno_v05_2005@yahoo.com.br \
    --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.