Re: FPU emulator unsafe for SMP?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
start
> using the FPU? Won't they be locked to that CPU, while all other's stay
idle
> (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.



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux