Article View: comp.arch
Article #2195Re: How Caches Work
From: Roy Smith
Date: Tue, 12 Sep 1989 14:11
Date: Tue, 12 Sep 1989 14:11
31 lines
2181 bytes
2181 bytes
Here's a (possibly crazy) idea for cache design. The current EUD
(Example Under Debate) shows that caches just don't work for sequential
access, but we knew that already. You can argue about how doing very wide
memory fetches will preload the cache for sequential accesses, but that's
certainly a second order effect.
What if you segmented the virtual memory space (Oh no! Not
segmented address spaces again! Shades of Intel!) so that the top bit was
a hint to the cache on probably access patterns. Variables which were
expected to hit the cache a lot (SUM and I in the EUD) would be put in the
"normal" part of the address space. Variables which were expected to be
sequential access and thus never hit (VEC in the EUD) would be put in the
other half of the address space. The cache would know to not bother doing
a tag match on this kind of access. The advantages would be faster access
time (a memory fetch should be faster than a cache miss followed by a memory
fetch) but more important it wouldn't cause bogus cache flushes.
As with every crazy idea, you can expand on this in all sorts of
ways. You might use more than one high order bit to provide lots of
different sorts of hints to the cache. You might want to be able to turn
the hinting on and off, or even make it programable. Of course, every bell
and whistle adds cost and complexity, and reduces the chance that you will
use the fancy features well, or at all.
So what do you think? Has this been done before?
--
Roy Smith, Public Health Research Institute
455 First Avenue, New York, NY 10016
{att,philabs,cmcl2,rutgers,hombre}!phri!roy -or- roy@alanine.phri.nyu.edu
"The connector is the network"
Technical Details
Message-ID:
<3989@phri.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!phri!royReferences:
<21936@cup.portal.com> <1082@cernvax.UUCP> <16306@watdragon.waterloo.edu> <RANG.89Sep10184900@derby.cs.wisc.edu> <8399@boring.cwi.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: comp.arch Subject: Re: How Caches Work Message-ID: <3989@phri.UUCP> Date: 12 Sep 89 14:11:23 GMT References: <21936@cup.portal.com> <1082@cernvax.UUCP> <16306@watdragon.waterloo.edu> <RANG.89Sep10184900@derby.cs.wisc.edu> <8399@boring.cwi.nl> Reply-To: roy@phri.UUCP (Roy Smith) Organization: Public Health Research Inst. (NY, NY) Lines: 31