All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Matthew Fornero <mfornero.lists@gmail.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] Problems with running Xenomai on Core i5
Date: Wed, 07 Aug 2013 20:05:20 +0200	[thread overview]
Message-ID: <52028C60.90405@xenomai.org> (raw)
In-Reply-To: <CADVgf9koTnR2AnnF3sOdpzFBN3j0TWbd8go_5c-=2MWs01cu4g@mail.gmail.com>

On 08/07/2013 05:13 PM, Matthew Fornero wrote:
> On Wed, Aug 7, 2013 at 9:38 AM, Tobias Luksch
> <Tobias.Luksch@itk-engineering.de> wrote:
>> To me it looks like some power management feature of the CPU is kicking in. I
>> have disabled (hopefully) all relevant features in the BIOS (like EISS,
>> TurboBoost, Idle Modes, ...) and in the kernel (CPU frequency scaling, ...,
>> config file of me latest try is attached), /proc/cpuinfo always shows the same
>> frequency. Still I get the behavior described above.
> 
> Hi Tobias,
> 
> What you're describing sounds exactly like C1E kicking in-- there
> seems to be a latency penalty when cores exit C1E. This is usually not
> exposed in the BIOS power settings (we had to add it to our boards).
> Fortunately it can be controlled via MSR and takes effect immediately.
> There's a bit in MSR 0x1FC (MSR_IA32_POWER_CTL) that needs to be
> cleared. I *believe* it's bit 1, but can't remember. Note that I
> believe this MSR is defined per-core, so you'll need to toggle the MSR
> on all the cores that you want to disable C1E on (usually all of
> them).
> 
> A google search for MSR_IA32_POWER_CTL and C1E should be able to find
> some sort of documentation.
> 
> You should be able to tell if it's working using the built-in xenomai
> latency test. Run it on an idle (and otherwise well configured) system
> for 5-10 minutes and you should see a very noticable difference in
> scheduler latency with C1E on and off.

IIRC, the C1E can be enabled/disabled with Intel BIOS testing utilities:
http://biosbits.org/

-- 
                                                                Gilles.


  reply	other threads:[~2013-08-07 18:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07 13:38 [Xenomai] Problems with running Xenomai on Core i5 Tobias Luksch
2013-08-07 15:13 ` Matthew Fornero
2013-08-07 18:05   ` Gilles Chanteperdrix [this message]
     [not found]   ` <1124806E0C09F04A992E69AE2EC7FA3C80A996@swexchange01.itk.local>
2013-08-09 12:46     ` Matthew Fornero
2013-08-07 18:01 ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2013-08-09 12:48 Tobias Luksch
2013-08-09 18:27 ` 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=52028C60.90405@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=mfornero.lists@gmail.com \
    --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.