From: Philippe Gerum <rpm@xenomai.org>
To: xenomai@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] New install of Xenomai 2.3 for 2.6.17 kernel.... Various problems
Date: Fri, 23 Mar 2007 15:47:04 +0100 [thread overview]
Message-ID: <1174661225.4606.29.camel@domain.hid> (raw)
In-Reply-To: <032320071404.24123.4603DE73000D814600005E3B2216557996070E0301020A98@domain.hid>
On Fri, 2007-03-23 at 14:04 +0000, xenomai@domain.hid wrote:
> Hello,
>
> I have been working on trying to find the optimal linux kernel configuration and have noticed a couple problems.
> No matter what I do it seems that while cpu #2 is detected, nothing gets scheduled on it.
If not already done, try building the Xenomai nucleus as a module
instead of statically into the kernel. Is the situation normal with
respect to load balancing between CPUs before you eventually modprobe
this module?
> Also, there is always a modprobe process running at 100%cpu that I can't kill.
modprobe of which module?
> The command that is showed in top is "modprobe -s ac". If I run it from the command line it hangs as well.
> Latencies are however very acceptable when running xeno-test. I do however see some negative values
> in the test output.
Negative values are (mostly) ok. This only means that your machine is
faster than pre-calibrated for, which causes the timer shots to be ahead
of time, due to a pessimistic calibration.
Check /proc/xenomai/latency, this gives the intrinsic latency Xenomai
anticipates when programming timer shots (i.e. interrupt latency +
scheduling latency altogether), given as a count of nanoseconds.
You can change this value on the fly while the latency test is running;
just echo a new value to this file. You should try lowering it until all
the values (particularly the leftmost ones, i.e. "min lat") raise
slightly above zero.
>
> The config file that I am using currently is the same as the one below just with CONFIG_XENO_HW_SMI_ALL.
> This seems to give me the best latencies.
>
> Mike
>
> -------------- Original message ----------------------
> From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> > xenomai@domain.hid wrote:
> > > -------------- Original message ----------------------
> > > From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
> > >
> > >>xenomai@domain.hid wrote:
> > >>
> > >>>#
> > >>># SMI workaround
> > >>>#
> > >>># CONFIG_XENO_HW_SMI_DETECT_DISABLE is not set
> > >>>CONFIG_XENO_HW_SMI_DETECT=y
> > >>>CONFIG_XENO_HW_SMI_WORKAROUND=y
> > >>># CONFIG_XENO_HW_SMI_ALL is not set
> > >>># CONFIG_XENO_HW_SMI_INTEL_USB2 is not set
> > >>># CONFIG_XENO_HW_SMI_LEGACY_USB2 is not set
> > >>># CONFIG_XENO_HW_SMI_PERIODIC is not set
> > >>># CONFIG_XENO_HW_SMI_TCO is not set
> > >>># CONFIG_XENO_HW_SMI_MC is not set
> > >>>CONFIG_XENO_HW_SMI_APMC=y
> > >>># CONFIG_XENO_HW_SMI_LEGACY_USB is not set
> > >>>CONFIG_XENO_HW_SMI_BIOS=y
> > >>
> > >>Chances are that the latencies you get are due to the SMI you leave
> > >>enabled (APMC or BIOS). Could you try first with only
> > >>CONFIG_XENO_HW_SMI_ALL ?
> > >>
> > > WOW!!! I did try that with the 2.6.17 kernel but it wouldnt boot,
> > > I had to enable APM. It is working like charm now. Max latency
> > > is 4-5 us while running X. If I drag a window around it goes up
> > > to 7us or so. Deffinately a step in the righ direction! Thanks.
> >
> > Good news.
> >
> > --
> > Gilles Chanteperdrix
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2007-03-23 14:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-23 14:04 [Xenomai-help] New install of Xenomai 2.3 for 2.6.17 kernel.... Various problems xenomai
2007-03-23 14:16 ` Jan Kiszka
2007-03-23 14:47 ` Philippe Gerum [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-03-23 17:21 xenomai
2007-03-23 17:27 ` Jan Kiszka
2007-03-23 17:48 ` Philippe Gerum
2007-03-23 17:20 xenomai
2007-03-23 15:33 xenomai
2007-03-23 15:38 ` Gilles Chanteperdrix
2007-03-23 17:03 ` Gilles Chanteperdrix
2007-03-23 17:12 ` Eric Noulard
2007-03-23 15:01 xenomai
2007-03-23 14:47 xenomai
2007-03-23 15:18 ` Philippe Gerum
2007-03-23 14:30 xenomai
2007-03-23 14:52 ` Jan Kiszka
[not found] <032220071508.5353.46029BD200057373000014E92216557996070E0301020A98@domain.hid>
2007-03-22 15:45 ` Gilles Chanteperdrix
2007-03-21 13:54 xenomai
2007-03-21 15:54 ` 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=1174661225.4606.29.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=xenomai@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.