From: Philippe Gerum <rpm@xenomai.org>
To: Peter Pan <pppeterpppan@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] cyclictest gives out segmentation fault with xenomai 2.5.2 in powerpc arch
Date: Fri, 30 Apr 2010 14:41:27 +0200 [thread overview]
Message-ID: <1272631287.24705.72.camel@domain.hid> (raw)
In-Reply-To: <p2k48abf2c21004300503od8d6e868r2cdeef0ab62e3376@domain.hid>
On Fri, 2010-04-30 at 20:03 +0800, Peter Pan wrote:
> OK, I got that.
>
> But which task mode should this latency test be run for?
> user-mode task or kernel periodic task?
>
It depends on your particular use case, since the latency value is
global for all modes, but I guess you will likely run userland rt apps,
which is recommended, so latency [-t0] is what you look for. Userland
latency should be higher than any other modes.
> 2010/4/30 Philippe Gerum <rpm@xenomai.org>:
> > On Fri, 2010-04-30 at 17:17 +0800, Peter Pan wrote:
> >> I set the /proc/xenomai/latency to 0, and get some latency results.
> >> How could I set the latency to a proper value? I'm on vocation now. I
> >> will post my latency result when I'm back to work.
> >
> > You should run the /usr/xenomai/bin/latency test when your calibrated
> > latency is reset to 0, for a few seconds on your idle platform. In the
> > left most column after you stopped the test, you should see the minimum
> > latency value, which your reported to be negative. Use abs(min-lat) as
> > the next /proc/xenomai/latency value, and redo the test, until you end
> > up with a min-lat slightly higher than 0, from a few tenths of
> > nanoseconds.
> >
> >>
> >> 2010/4/30 Philippe Gerum <rpm@xenomai.org>:
> >> > On Fri, 2010-04-30 at 08:16 +0800, Peter Pan wrote:
> >> >> It's an EVM board of PPC460GT.
> >> >>
> >> >> I think the processor is very powerful, that may make xenomai workable
> >> >> on our system.
> >> >
> >> >> I'll try to reduce the latency to a proper value.
> >> >
> >> > When you are done, I'd be interested in knowing the proper calibration
> >> > value for this platform, so that I can pre-set it in
> >> > include/asm-powerpc/calibration.h for future users.
> >> >
> >> > PS: echo 0 > /proc/xenomai/latency is the way to disable the
> >> > anticipation in setting timer shots, so that you can determine the
> >> > minimum latency of your platform, i.e. abs(min-lat) from the latency
> >> > test output, on an idle system.
> >> >
> >> > TIA,
> >> >
> >
> >
> > --
> > Philippe.
> >
> >
> >
--
Philippe.
next prev parent reply other threads:[~2010-04-30 12:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 6:09 [Xenomai-help] cyclictest gives out segmentation fault with xenomai 2.5.2 in powerpc arch Peter Pan
2010-04-29 15:02 ` Gilles Chanteperdrix
2010-04-29 15:20 ` Peter Pan
2010-04-29 15:25 ` Philippe Gerum
2010-04-30 0:16 ` Peter Pan
2010-04-30 8:29 ` Philippe Gerum
[not found] ` <s2g48abf2c21004300217q31bce099g588cb0bdc4bf380f@domain.hid>
[not found] ` <1272619558.24705.40.camel@domain.hid>
2010-04-30 12:03 ` Peter Pan
2010-04-30 12:41 ` Philippe Gerum [this message]
2010-04-30 13:18 ` Peter Pan
2010-05-04 1:41 ` Peter Pan
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=1272631287.24705.72.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=pppeterpppan@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.