🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #730

Re: Zero wait state and caches

#730
From: Bruce Evans
Date: Tue, 09 Oct 1990 12:15
23 lines
1792 bytes
In article <1466@svin02.info.win.tue.nl> wsinpdb@svin02.info.win.tue.nl (Paul de Bra) writes:
>A cache system provides zero wait states on a cache hit, but one or two
>wait states on a cache miss. Given sufficient cache memory (64k or more)
>the hit rate is fairly close to 100%, and the performance increase is
>substantial.

For cheap 386 cache systems, claiming one or two wait states for cache misses
may be stretching the truth almost as much as claiming zero wait states. I
have a 33 MHz system that claims 2 wait states for a cache miss with a page
hit and 4 wait states for a cache miss without a page hit. A benchmark that
copies the n'th megabyte of physical memory to the m'th megabyte using
"rep movsd" gives times between 0.09 sec (12 cycles per dword = 8 cycles
overhead) and 0.24 sec (32 cycles per dword = 28 cycles overhead) for
different values of m and n in the range 2 to 6. The times are very
sensitive to m and n.

I suspect that the memory off the motherboard has more wait states (though
it is claimed to be 32-bit) and the cache is thrashing due to the non-random
pattern of accesses (reading extra and discarding it). With normal use, it
is hard to detect any difference between the speed of the different areas
of memory.
-- 
Bruce Evans  (evans@syd.dit.csiro.au)
Technical Details
Message-ID: <2400@runxtsa.runx.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!pta!metro!ipso!runxtsa!brucee
References: <188@nat-3.UUCP> <1466@svin02.info.win.tue.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!pta!metro!ipso!runxtsa!brucee
From: brucee@runxtsa.runx.oz.au (Bruce Evans)
Newsgroups: comp.sys.intel
Subject: Re: Zero wait state and caches
Keywords: wait states, cache
Message-ID: <2400@runxtsa.runx.oz.au>
Date: 9 Oct 90 12:15:22 GMT
References: <188@nat-3.UUCP> <1466@svin02.info.win.tue.nl>
Organization: RUNX Unix Timeshare.  Sydney, Australia.
Lines: 23