CPU swapping on Linux

Rik van Riel riel en nl.linux.org
Lun Ene 24 05:13:22 CST 2000


On Sun, 23 Jan 2000, Mark Hahn wrote:

> > I've done the calculation by hand and, assuming 150MB/sec
> > (which is very optimistic for my machine), I arrive at a
> > cacheflush_time of 5.3msec, instead of the 0.3usec (whatever,
> > I'm testing 2.2 now) the kernel used before.
> 
> well, if you have a dual P5/120, your cache size for these
> calculations should be 16 or 32K.  that is, the CPU-private L1
> cache, not the shared L2 cache.  so ~200us should be the right
> answer...

Indeed, 200us -- not 0.2us :)

I really should stop doing calculations like this
at 5 am :)

> out of curiosity, what does /proc/cpuinfo report for your cache
> size under 2.3?

I don't have a 2.3 running atm (and won't reboot
because of a download), but they are Pentia classic
with 2x 8kB cache.

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