public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Shielded CPUs
@ 2004-04-14 14:23 Calin A. Culianu
  2004-04-14 14:38 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Calin A. Culianu @ 2004-04-14 14:23 UTC (permalink / raw)
  To: linux-kernel


This might be a bit off-topic (and might belong in the rtlinux mailing
list), but I wanted people's opinion on LKML...

There's an article in the May 2004 Linux Journal about some CPU affinity
features in Redhawk Linux that allow a process and a set of interrupts to
be locked to a particular CPU for the purposes of improving real-time
performance.  This technique is dubbed CPU Shielding
(http://www.ccur.com/isddocs/wp-shielded-cpu.pdf) and the claim is made
that a user program that is thus configured (with the appropriately
patched kernel, of course) can acheive deterministic (hard) real-time
performance.  The author claimed you can get (bounded) interrupt response
time in the 100s of microseconds, and he alluded to the fact that
scheduling jitter also is reduced and bounded with a hard limit.

Does this make any sense to anyone here?

Specifically, what about, among other things, priority inversion?

Presumably your high priority task is always undergoing some small amount
of priority inversion if it touches a spinlock.  Worse yet, if your
process ever has to touch anything in the Linux kernel that needs to sleep
(such as, say, memory being swapped from disk) then your hard realtime
program has just failed to be hard realtime.

Does anyone know anything more about this?  Is this magic?!  The author of
this paper certainly makes it seem like it is...

Perplexedly yours,

-Calin




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shielded CPUs
  2004-04-14 14:23 Shielded CPUs Calin A. Culianu
@ 2004-04-14 14:38 ` Arjan van de Ven
  2004-04-14 15:11   ` Calin A. Culianu
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2004-04-14 14:38 UTC (permalink / raw)
  To: Calin A. Culianu; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 546 bytes --]

On Wed, 2004-04-14 at 16:23, Calin A. Culianu wrote:
> This might be a bit off-topic (and might belong in the rtlinux mailing
> list), but I wanted people's opinion on LKML...
> 
> There's an article in the May 2004 Linux Journal about some CPU affinity
> features in Redhawk Linux that allow a process and a set of interrupts to
> be locked to a particular CPU for the purposes of improving real-time
> performance.

well you can do both of those already in 2.6 and in all recent vendor
2.4's that I know of..... no patches needed.


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shielded CPUs
  2004-04-14 14:38 ` Arjan van de Ven
@ 2004-04-14 15:11   ` Calin A. Culianu
  2004-04-14 15:12     ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Calin A. Culianu @ 2004-04-14 15:11 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel

On Wed, 14 Apr 2004, Arjan van de Ven wrote:

> On Wed, 2004-04-14 at 16:23, Calin A. Culianu wrote:
> > This might be a bit off-topic (and might belong in the rtlinux mailing
> > list), but I wanted people's opinion on LKML...
> >
> > There's an article in the May 2004 Linux Journal about some CPU affinity
> > features in Redhawk Linux that allow a process and a set of interrupts to
> > be locked to a particular CPU for the purposes of improving real-time
> > performance.
>
> well you can do both of those already in 2.6 and in all recent vendor
> 2.4's that I know of..... no patches needed.


Cool.. it's still not, strictly speaking, _hard_ realtime, though, is it?
Simply really good soft-realtime, right?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shielded CPUs
  2004-04-14 15:11   ` Calin A. Culianu
@ 2004-04-14 15:12     ` Arjan van de Ven
  0 siblings, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2004-04-14 15:12 UTC (permalink / raw)
  To: Calin A. Culianu; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]


On Wed, Apr 14, 2004 at 11:11:47AM -0400, Calin A. Culianu wrote:
> On Wed, 14 Apr 2004, Arjan van de Ven wrote:
> 
> > On Wed, 2004-04-14 at 16:23, Calin A. Culianu wrote:
> > > This might be a bit off-topic (and might belong in the rtlinux mailing
> > > list), but I wanted people's opinion on LKML...
> > >
> > > There's an article in the May 2004 Linux Journal about some CPU affinity
> > > features in Redhawk Linux that allow a process and a set of interrupts to
> > > be locked to a particular CPU for the purposes of improving real-time
> > > performance.
> >
> > well you can do both of those already in 2.6 and in all recent vendor
> > 2.4's that I know of..... no patches needed.
> 
> 
> Cool.. it's still not, strictly speaking, _hard_ realtime, though, is it?
> Simply really good soft-realtime, right?

yep. Hard real time means you need to get a hard RT OS code. Simple as that.
And you'll always see that those cores are kept relatively small so that the
vendor can basically prove it's RT correctness.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-14 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-14 14:23 Shielded CPUs Calin A. Culianu
2004-04-14 14:38 ` Arjan van de Ven
2004-04-14 15:11   ` Calin A. Culianu
2004-04-14 15:12     ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox