Strange scheduling behavoir in SMP (kernel 2.2.14)

Rik van Riel riel en nl.linux.org
Sab Ene 29 09:17:43 CST 2000


On Fri, 28 Jan 2000, Peter Waltenberg wrote:

> > aflores en ditec.um.es wrote
> =============================
> I have a SMP machine with two Pentium III. In order to compare  performance
> with other machines I began a simple test:
> 
> for (i=0;i<MAX_NUMBER;i++)
>   for(j=0;j<MAX_NUMBER;j++)
>            c=a*b;               /* These variables could be integer or double */
> 
> Using kernel 2.2.12 with SMP support this simple program take more
> time in my machine than in a uniprocessor with K6-2 (the same
> problem appear in the last stable kernel 2.2.14) Using xosview
> application I discovered where the problem was. Instead of staying
> all the time in the same cpu, the process go from one cpu to other
> with a big performance lost.
> 
> Am I right?. Has been this problem solved in 2.3.x series?

I'm writing a scheduler patch now. A patch that should also
help performance on single processor systems, btw...

regards,

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


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda