On Tue, 19 Feb 2002, Greg Lindahl wrote:
> On Tue, Feb 19, 2002 at 05:12:38PM -0800, Jun Sun wrote:
> > As I looked into FPU/SMP issue, I realized this problem. I agree
> > that locking fpu owner to the current cpu is the best solution.
> > I bet this won't really hurt performance because any alternative would
> > incur transferring FPU registers across cpus, which is not a small
> > overhead.
> 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)?
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- firstname.lastname@example.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds