home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4306 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: vixen.cso.uiuc.edu!msaladin
  2. From: msaladin@students.uiuc.edu (Saladino Michael D)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: One hardware-basher's manifesto
  5. Date: 27 Feb 1996 08:18:01 GMT
  6. Organization: University of Illinois at Urbana
  7. Message-ID: <4guenp$1a1@vixen.cso.uiuc.edu>
  8. References: <4ge8na$vhe@ar.ar.com.au> <08000305729070351637@BIRDLAND>
  9. NNTP-Posting-Host: ux5.cso.uiuc.edu
  10.  
  11. >> : > Please use OwnBlitter/DisOwn... and use CacheControl to turn on only the caches
  12. >> : > you need (If data burst (030/040/060) modes is on the CPU will take 4x as much
  13. >> : > time when accessing fastram randomly.
  14.  
  15. I don't think I can express in words just how wrong this is, but I'm going to do my
  16. best.  First of all, even if you were accessing RAM "randomly", you will not suffer
  17. a 4x speed drop.  Checking a cache (L1 or L2) you only suffer a few clock cycles and
  18. this is kept to a minimum thanks to pipelining the cache lookup hardware.  However,
  19. this is a moot point because programs don't access RAM randomly.  The whole point
  20. of the cache is to take advantage of the temporal and spatial locality that occurs
  21. in ALL programs.  You would actually have to go WAY out of your way to make a program
  22. that runs faster with caches turned off and I bet it wouldn't do much.  Are you aware
  23. that modern day processors (and I'm even including the 680x0 line) get over 90% hit
  24. rates on their data caches and even higher for the instruction cache.  Turning a
  25. cache off is like flipping a switch to drop your clock from 50Mhz to 5Mhz.  It's 
  26. stupid... don't do it!
  27.  
  28. Caches should always remain on.  ALWAYS.
  29.