All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Krasnyansky <maxk@domain.hid>
To: John Schipper <jschipper@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Isolated CPU, SMI problems an thoughts
Date: Fri, 10 Feb 2006 17:09:24 -0800	[thread overview]
Message-ID: <43ED3944.1040107@domain.hid> (raw)
In-Reply-To: <43EBA31B.2020107@domain.hid>

John Schipper wrote:
> Jan Kiszka wrote:
> 
>> John Schipper wrote:
>>  
>>
>>> Hello,
>>> I'm new to this list but have in the past used RTAI in a single
>>> processor off the shelf solution. I'm looking to switch to native
>>> Xenomai api but have a general problem...
>>> The problem is SMI on new systems, and other latency killers that
>>>   
>> What do you mean with "other" precisely?
>>  
>>
> I have seen on systems the need to disable USB Legacy/emulation? and 
> only use a PS/2 keyboard.  The USB interface (tied to a usb keyboard and 
> mouse) are standard on a Dell GX280 without a PS/2 interface.  I believe 
> and have seen real-time having problems.  This is due to to SMM mode, I 
> believe, being a latency killer (not sure if this is SMI related).
> 
> In regard to SMI I poked around the intel chips registers (sorry can't 
> remember what the GX280 chipset was but I could get it if important!  ) 
> and I found that their are lock bits that do not allow disabling global 
> SMI or the watchdog capability.  This was 6 months ago at least so I 
> have not tested the latest smi workaround module (in RTAI at least 
> because I have not use xenomai yet but plan too :) )

I'd say if you do the following:
	- Disable any kind of power management (BIOS, etc)
	- Enabled ACPI but _disable_ ACPI processor module
	- Enable and load USB hci drivers
	- Use "idle=poll"

You should see pretty good worst case latencies on your Dell machines.
Last thing (although not very friendly to power consumption) is pretty important
because what I found out (the hard way) is that ACPI based and MONITOR/MWAIT based
idle loops trigger SMM and introduce horrible latencies with some Intel chipsets
(I've seen it on IBM Z-Pro and HP Intel based lines).

>>> sometimes are not controllable by software always popping up when trying
>>> to migrate to a newer platform.  Can a dual core processor using
>>> isolcpus, preemp-rt and xenomai effectively future proof agains smi/chip
>>> set issues (specificly AMD or Intel dual core solutions) by isolating a
>>> cpu for exclusively xenomai/realtime use?
>>>   
>> SMI can only be addressed with CPU isolation if you are able to redirect
>> the related event only to one CPU. Don't know if this is possible / 
>> default.
Yeah I don't think it's possible. I chatted with HP BIOS folks a bit and they
didn't see any good solutions for that.

>> Using off the shelf standard systems is always risky. I've heard of a
>> larger German automation company ordering standard PC hardware for
>> industrial control purposes only when initial latency tests on a
>> specific charge were successful. Ok, they are ordering large enough
>> quantities, so they can dictate certain conditions...
> 
> Testing the system is done to verify latency and expected real-time 
> isolation from the normal linux tasks. Its done on a standard system and 
> once verified used until the system is no longer available which seems 
> to be happening at an increasing rate.  PCI express may be a reason, 
> maybe money.. but systems don't last much longer then a year and a 
> half.  Either way the motherboards themselves don't stay around to 
> long.  Our quantity is not there for the needed leverage with providers 
> :( .  The system is used for an industrial purpose which is NOT for a 
> life saving/risking situation.  Its used for simulation or simulator 
> purposes.

btw For what it's worth I can recommend HP9300 boxes. I worked with their
BIOS folks to resolve interrupt routing issues and stuff and now it's my
dream machine for RT stuff that requires loads of CPU compute power. The
box is has nice isolation features for example it has 1 PCIe slot that is
dedicated to CPU1 (ie on a separate bus). It's NUMA and so it has dedicated
memory banks per CPU. No shared interrupts, etc. You won't be able to run
Xenomai on it in native 64bit mode but 32bit mode should work.

Max


  reply	other threads:[~2006-02-11  1:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 20:16 [Xenomai-core] Isolated CPU, SMI problems an thoughts John Schipper
2006-02-11  1:09 ` Max Krasnyansky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-02-09 17:49 John Schipper
2006-02-09 18:19 ` Jan Kiszka

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=43ED3944.1040107@domain.hid \
    --to=maxk@domain.hid \
    --cc=jschipper@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.