On Sun, 6 Feb 2000, Mark Hahn wrote:

> of so, I'd be interested to know whether changing line 57 of 
> arch/sparc/kernel/smp.c from
>       cycles_t cacheflush_time = 0; /* XXX */
> to 
>       cycles_t cacheflush_time = 1000000; /* 1M cache on SS/50 at 50MB/s */
> improves performance noticably.  the point is that in the XXX version,
> processes will be prone to migrate across CPUs at the drop of a hat...

You might want to look at arch/i386/kernel/smpboot.c

There's a reasonably simple calculation there that sets
the value of cacheflush_time based on some (measured)
constants.

If SPARC gives you the information x86 gives you, you
could trivially add the calculation yourself. Btw, you
will want to look at the calculation in 2.3.42 because
older versions are somewhat b0rken :)

regards,

Rik
--
The Internet is not a network of computers. It is a network
of people. That is its real strength.

-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to