All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: SMP CPU affinity questions
  2005-11-02 17:50 SMP CPU affinity questions listmonkey
@ 2005-11-02 16:39 ` Jeffrey V. Merkey
  2005-11-05 23:48   ` Zwane Mwaikambo
  2005-11-06  7:56   ` Arjan van de Ven
  2005-11-02 18:54 ` Lee Revell
  1 sibling, 2 replies; 5+ messages in thread
From: Jeffrey V. Merkey @ 2005-11-02 16:39 UTC (permalink / raw)
  To: listmonkey; +Cc: linux-kernel

listmonkey@neo.relay-host.net wrote:

>Hi-
>
>I am trying to use a quad Opteron motherboard with SMP Kernel 2.6.5 for a quasi-real-time task.
>I need to assign all processes to specific CPUs, including interrupt handlers.
>I have had success using sched_setaffinity() to set the CPU for processes I create, but I am unable,
>as root, to force system processes to move to another CPU.  Any ideas?
>
>I can find no documentation about how to force an interrupt handler to a specific CPU - is this
>possible without modifying the kernel?
>
>  
>


IOApic's support binding of interrupt delivery in intel based platforms, 
but I am unaware of tools which force this
setting by default on Linux, but someone else may be able to point you 
in that direction.  Most folks code APIC ICC delivery to
AV_LOPRI (meaning lowest priority processor gets next interrupt).   This 
is advantageous for cache coherency since the IRQ code
is probaby still in that processors cache.  You may have to modify the 
kernel.  Linux doesn't allow processors to be shutdown and
reactiviated real time, it just starts them and lets them run, so you 
don;t have to worry about the case of migrating interrupts
off pinned APICs.  The APIC supports what you are asking for, but I am 
not certain anyone implemented anything other
than AV_LOPRI settings by default in the IO APIC code.  I would suggest 
you look over the IO APIC Code -- this is a lot
of work, BTW.

Jeff

>--Pete
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>


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

* SMP CPU affinity questions
@ 2005-11-02 17:50 listmonkey
  2005-11-02 16:39 ` Jeffrey V. Merkey
  2005-11-02 18:54 ` Lee Revell
  0 siblings, 2 replies; 5+ messages in thread
From: listmonkey @ 2005-11-02 17:50 UTC (permalink / raw)
  To: linux-kernel

Hi-

I am trying to use a quad Opteron motherboard with SMP Kernel 2.6.5 for a quasi-real-time task.
I need to assign all processes to specific CPUs, including interrupt handlers.
I have had success using sched_setaffinity() to set the CPU for processes I create, but I am unable,
as root, to force system processes to move to another CPU.  Any ideas?

I can find no documentation about how to force an interrupt handler to a specific CPU - is this
possible without modifying the kernel?


--Pete

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

* Re: SMP CPU affinity questions
  2005-11-02 17:50 SMP CPU affinity questions listmonkey
  2005-11-02 16:39 ` Jeffrey V. Merkey
@ 2005-11-02 18:54 ` Lee Revell
  1 sibling, 0 replies; 5+ messages in thread
From: Lee Revell @ 2005-11-02 18:54 UTC (permalink / raw)
  To: listmonkey; +Cc: linux-kernel

On Wed, 2005-11-02 at 17:50 +0000, listmonkey@neo.relay-host.net wrote:
> Hi-
> 
> I am trying to use a quad Opteron motherboard with SMP Kernel 2.6.5 for a quasi-real-time task.

2.6.5 is a terrible choice for soft realtime applications, the serious
work on making 2.6 a viable soft RT platform didn't even start until
around 2.6.8.  Try 2.6.12 or newer (ideally 2.6.14).

Lee


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

* Re: SMP CPU affinity questions
  2005-11-02 16:39 ` Jeffrey V. Merkey
@ 2005-11-05 23:48   ` Zwane Mwaikambo
  2005-11-06  7:56   ` Arjan van de Ven
  1 sibling, 0 replies; 5+ messages in thread
From: Zwane Mwaikambo @ 2005-11-05 23:48 UTC (permalink / raw)
  To: Jeffrey V. Merkey; +Cc: listmonkey, linux-kernel

On Wed, 2 Nov 2005, Jeffrey V. Merkey wrote:

> IOApic's support binding of interrupt delivery in intel based platforms, but I
> am unaware of tools which force this
> setting by default on Linux, but someone else may be able to point you in that
> direction.  Most folks code APIC ICC delivery to
> AV_LOPRI (meaning lowest priority processor gets next interrupt).   This is
> advantageous for cache coherency since the IRQ code
> is probaby still in that processors cache.  You may have to modify the kernel.
> Linux doesn't allow processors to be shutdown and
> reactiviated real time, it just starts them and lets them run, so you don;t
> have to worry about the case of migrating interrupts
> off pinned APICs.  The APIC supports what you are asking for, but I am not
> certain anyone implemented anything other
> than AV_LOPRI settings by default in the IO APIC code.  I would suggest you
> look over the IO APIC Code -- this is a lot
> of work, BTW.

Or you could just put something which writes to 
/proc/irq/$IRQ/smp_affinity in your initscripts.

Cheers,
	Zwane


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

* Re: SMP CPU affinity questions
  2005-11-02 16:39 ` Jeffrey V. Merkey
  2005-11-05 23:48   ` Zwane Mwaikambo
@ 2005-11-06  7:56   ` Arjan van de Ven
  1 sibling, 0 replies; 5+ messages in thread
From: Arjan van de Ven @ 2005-11-06  7:56 UTC (permalink / raw)
  To: Jeffrey V. Merkey; +Cc: listmonkey, linux-kernel

On Wed, 2005-11-02 at 09:39 -0700, Jeffrey V. Merkey wrote:
> listmonkey@neo.relay-host.net wrote:
> 
> >Hi-
> >
> >I am trying to use a quad Opteron motherboard with SMP Kernel 2.6.5 for a quasi-real-time task.
> >I need to assign all processes to specific CPUs, including interrupt handlers.
> >I have had success using sched_setaffinity() to set the CPU for processes I create, but I am unable,
> >as root, to force system processes to move to another CPU.  Any ideas?
> >
> >I can find no documentation about how to force an interrupt handler to a specific CPU - is this
> >possible without modifying the kernel?
> >
> >  
> >
> 
> 
> IOApic's support binding of interrupt delivery in intel based platforms, 
> but I am unaware of tools which force this
> setting by default on Linux, but someone else may be able to point you 
> in that direction.  

http://people.redhat.com/arjanv/irqbalance



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

end of thread, other threads:[~2005-11-06  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-02 17:50 SMP CPU affinity questions listmonkey
2005-11-02 16:39 ` Jeffrey V. Merkey
2005-11-05 23:48   ` Zwane Mwaikambo
2005-11-06  7:56   ` Arjan van de Ven
2005-11-02 18:54 ` Lee Revell

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.