Re: Since no one else has stepped forward: 'ZeroD' patch

Ingo Molnar (mingo@pc5829.hil.siemens.at)
Thu, 9 Jan 1997 13:38:17 +0100 (MET)


On 9 Jan 1997, Jes Degn Soerensen wrote:

> The idea of zerod may not be that good for cpus with relatively small
> caches and no cache write-through instructions such as the 68030 (the
> 68030 only has a 256 byte data cache and a 256 byte ins cache). On
> these cpus a clear-page() is enough to wipe out the entire data-cache
> ;( However for the 68040 and 68060, which got these nice move16
> instructions that bypasses the cache, zerod will be fine.

look into the current kernel code. Pages are zeroed quite often. In some
situations the kernel does almost nothing but zeroes pages.

Now 'zerod' does nothing but changes the order of things ... it zeroes
pages a bit earlier, nothing else.

It doesnt zero more pages, it doesnt do it in a more cache hostile way. It
does the very same thing, but a bit earlier. This way in certain
situations otherwise idle CPU time gets utilized.

-- mingo