[Top] [All Lists]

Re: FPU emulator unsafe for SMP?

To: "Geert Uytterhoeven" <>, "Greg Lindahl" <>
Subject: Re: FPU emulator unsafe for SMP?
From: "Kevin D. Kissell" <>
Date: Wed, 20 Feb 2002 12:14:07 +0100
Cc: "Linux/MIPS Development" <>
References: <>
Geert wrote:
> On Tue, 19 Feb 2002, Greg Lindahl wrote:
> > On Tue, Feb 19, 2002 at 05:12:38PM -0800, Jun Sun wrote:
> > What you propose, locking the fpu owner to the current cpu, will not
> > result in a fair solution. Imagine a 2 cpu machine with 2 processes
> > using integer math and 1 using floating point... how much cpu time
> > will each process get? Imagine all the funky effects. Now add in a
> > MIPS design in which interrupts are not delivered uniformly to all the
> > cpus... I don't know if there are any or will ever be any, but...
> What if you have 2 processes who are running at the same CPU when they
> using the FPU? Won't they be locked to that CPU, while all other's stay
> (if no other processes are to be run)?

What would bind a thread to a CPU would not be
having FPU state, but owning the *current* FPU
state.   Only one such process has that characteristic.
Any others who might or might not have used the
FPU in the past have their FPU state in the thread
context structure, and can be freely migrated.

            Kevin K.

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