netdev
[Top] [All Lists]

Re: [Lse-tech] fwd: Process Pinning

To: jamal <hadi@xxxxxxxxxx>
Subject: Re: [Lse-tech] fwd: Process Pinning
From: Tim Wright <timw@xxxxxxxxx>
Date: Mon, 25 Dec 2000 00:59:34 -0800
Cc: Tim Wright <timw@xxxxxxxxx>, Andrew Morton <andrewm@xxxxxxxxxx>, Gerrit Huizenga <gerrit@xxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, Tim Hockin <thockin@xxxxxxxxxx>, npollitt@xxxxxxx, lse-tech@xxxxxxxxxxxxxxxxxxxxx, slinx@xxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <Pine.GSO.4.30.0012242146480.24639-100000@xxxxxxxxxxxxxxxx>; from hadi@xxxxxxxxxx on Sun, Dec 24, 2000 at 09:59:34PM -0500
Mail-followup-to: jamal <hadi@xxxxxxxxxx>, Tim Wright <timw@xxxxxxxxx>, Andrew Morton <andrewm@xxxxxxxxxx>, Gerrit Huizenga <gerrit@xxxxxxxxxx>, Andi Kleen <ak@xxxxxxx>, Tim Hockin <thockin@xxxxxxxxxx>, npollitt@xxxxxxx, lse-tech@xxxxxxxxxxxxxxxxxxxxx, slinx@xxxxxxxxxxxx, netdev@xxxxxxxxxxx
References: <20001224124423.A1668@xxxxxxxxxxxxxxxxxxxxxxxxxx> <Pine.GSO.4.30.0012242146480.24639-100000@xxxxxxxxxxxxxxxx>
Reply-to: timw@xxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
On Sun, Dec 24, 2000 at 09:59:34PM -0500, jamal wrote:
> 
> 
> On Sun, 24 Dec 2000, Tim Wright wrote:
> 
> > The scheme is that you tell the APIC what your current priority is. The APIC
> > has a task priority register, but Linux doesn't use it. We just set it to
> > accept-all at boot time and leave it alone. If you use it to indicate your
> > current priority, the APIC bus will deliver the interrupt to the 
> > least-loaded
> > CPU. The RR behaviour (yes I'm a Brit :-) happens if there's a choice of
> > "least loaded".
> 
> So it seems that the process is capable of setting a high enough priority
> such that an (hardware) interupt wont run on a specific CPU?

No, all user processes are pre-emptible. DYNIX/ptx doesn't support the notion
of RT processes. The range of user priorities is crunched down into 4 bits.
Locking out of interrupts below a given SPL is achieved by programming a
different register IIRC, although it is also mirrored in the TPR (task
priority register), and SPL1 is "higher" priority than any user process.

> My goal might be slightly different than this. I would like to route
> interupts to CPUs which have the "least load of interupts" in addition
> to process load.
> do you have a paper on this, maybe you can already do this?
> 

That is what we do. I don't know if we have a paper, but it sounds like we
should. It's actually quite likely that I can publish the relevant code
with little difficulty.

Regards,

Tim

-- 
Tim Wright - timw@xxxxxxxxx or timw@xxxxxxxxxxx or twright@xxxxxxxxxx
IBM Linux Technology Center, Beaverton, Oregon
"Nobody ever said I was charming, they said "Rimmer, you're a git!"" RD VI

<Prev in Thread] Current Thread [Next in Thread>