Low End Mac's Online Tech Journal
The Cache
A cache is a chunk of faster memory that holds information for faster retrieval than would otherwise be possible. One analogy would be to the cash you have in your pocket - it's faster and easier to access and spend than money in the bank.
There are several places a computer will cache data. Some software caches information from CD-ROM disks to your hard drive. Since hard drives are typically faster than CD players, caching the CD-ROM's directory can speed access to data. Similarly, by setting aside a section of memory to store some data from your hard drive, caching can improve hard drive performance.
In the same way, compared with CPU speed, system memory is slow. By caching data either on the CPU itself or in a special card with high speed memory, your CPU won't be hobbled by slow system memory.
As CPU speeds passed 16 MHz, they began to outrun the computer's memory. One way to address this was to use faster system memory, which was always more expensive than slower RAM. Another way was to tell the CPU it would have to wait for the data it requested. (You may have heard the term "wait state" - that measures how many processor cycles the CPU has to wait before it received the data it has requested.)
Another solution is to cache a small amount of data. The 68020 and later CPUs were designed with a little high speed cache right on the CPU. This level-1 (L1) memory could hold several instructions and pieces of data so the CPU wasn't hobbled by slower system memory.
Still, despite the cache, the speed difference between L1 and system memory still meant every time the CPU needed to access system memory, it had to request the data, then wait for it. A small L1 cache was nice, but it wasn't enough.
A level-2 (L2) cache is usually fast (25ns or faster) RAM. Cache size can range from 32KB to 1 MB. There is no hard and fast rule about cache size, but the general rule is the faster the CPU relative to system memory, the larger your L2 cache should be.
Although the 68030 had two 256-byte caches, the speed differential between the 25 MHz CPU and the 80ns SIMMs kept the IIci from achieving its full potential. A relatively small 32KB L2 cache would boost performance 20-30%. Larger 64KB and 128KB caches were made, but each doubling of cache size only added about 2% more speed. With high speed, high cost memory, the larger caches were less cost effective than the smaller ones. A 32KB cache was enough to provide a significant boost without exorbiatnt cost.
Because they had a larger L1 cache (8KB v. 512 bytes), none of the 68040-based Macs came standard with L2 caches, although 128KB cards were offered by some manufacturers. As with L2 cards on the IIci, these provided a 20-30% performance boost.
The L2 cache really came into its own with the Power PC. Despite a 32KB L1 cache on the 601, a relatively inexpensive 256 KB cache would boost performance 15-30%. As CPU speeds increased, larger 512 KB and 1 MB caches became popular.
The 603 had two smaller caches (8KB for instructions, 8KB for data), making the L2 cache even more helpful. The souped up 603e had an improved cache (16KB each for instructions and data), but because of its still greater speeds (100 MHz and up), the L2 cache was still a big plus. As CPU speeds reach and exceed 200 MHz, a still larger L2 cache becomes important. It's not unusual to see 512 KB and 1 MB caches on 200 MHz and faster computers.
Like the 603e, the 604 had a dual L1 cache (16KB for instructions, 16KB for data) and benefitted greatly from a 256 KB or larger cache. The improved 604e doubled the size of the instruction and data caches, significantly improving performance. Still, a 512 KB or larger cache boosted performance.
Until this year, all Mac caches were located on the motherboard. But the motherboard runs at 50 MHz or slower, creating a real bottleneck for system RAM and the L2 cache. The hot new technologies are implemented on the new PPC 750 chip: inline and backside caching.
An inline cache sits between the motherboard and CPU; Umax is implementing this under the name Cache Doubler. At this point, the only inline cache operates at twice the speed of the motherboard. This give the CPU access to the L2 cache twice as quickly as a motherboard L2 cache.
A backside cache uses very fast memory that is essentially
coupled to the CPU. The advantage is still greater speed, but at the
cost of incredibly fast cache memory. This is being implemented on the
fastest new models from Apple, Power Computing, and Motorola. The
biggest advantage of the backside cache is that it is directly related
to CPU speed, not motherboard speed.
Other Resources
- MacTips, The Disk Cache
- The fundamentals of cache, Paul Mazzucco, SystemLogic. More than you ever wanted to know about L1, L2, and L3 cache - and pretty accessible.
Join us on Facebook. Follow us on Twitter.
Recent Online Tech Journal Columns
- Optimized Software Builds Bring Out the Best in Your Mac, 2009.06.30. Applications compiled for your Mac's CPU can load more quickly and run faster than ones compiled for universal use.
- Low End Mac's Safe Sleep FAQ, 2009.06.15. What is Safe Sleep mode? Which Macs support it? How can you enable or disable it? And more.
- The Original Macintosh, 2009.01.12. An in-depth look at the original Macintosh and how it shaped future Macs.
- More in the Online Tech Journal index.
Links for the Day
- Mac of the Day: Macintosh Portable, introduced 1989.09.20. The nearly 16 lb. behemoth was innovative but not a smashing success.
- February 13 in LEM history: 01: Layoffs may hurt Mac market - 02: Unix for the Mac - Rage against the Macintosh - 03: Options to move data from PCs to Macs - 04: Low cost RAM for older 'Books - 06: Apple, IBM, and Intel - 07: Picking the right cheap computer, new or used - 08: I needed to find an older Mac
- Support Low End Mac
Recent Content on Low End Mac
- Fix Home Button Delay, Tablet the Ultimate Mobile PC, iPad Notebook a Possibility, and More, iOS News Review, 2012.02.10. Also using your iPad at work, two photo editors, a new iPad text editor, Macally's magnetic iPad 2 stand, and more.
- White MacBook Goes End-of-Life, Logitech Touch Mouse Supports Gestures, Firmware Updates, and More, The 'Book Review, 2012.02.10. Also MacBook Air better than any Ultrabook, docks for MacBook Pro models, Intel offers improved SSDs, and more.
- Mac and iOS Browsers: Options Galore, Freeware Forum, 2012.02.10. Safari is adequate on Mac and great on iOS, but the range of good alternatives is stunning. LEM writers share their favorites.
- Apple's Support Lead Shipping, Smartphones Outsell PCs, OS X Ported to ARM by Intern, and More, Mac News Review, 2012.02.10. Also the power of Tex-Edit Plus, Google and Twitter are already censoring the Web, Snow Leopard Security Update, and more.
- LogMeIn: Remote Screen Sharing for the Rest of Us, Alan Zisman, Zis Mac, 2012.02.09. Configuring the Mac's built-in screen sharing to work over the Internet can be difficult or impossible. LogMeIn makes it easy.
- 15 Years Ago Motorola Unveiled the PowerPC G3, Low End Mac Round Table, 2012.02.06. The G3 processor was optimized for real world Mac software and made a big leap forward in efficiency.
- Don't Kill Caps Lock, Learning to Love the iOS Keyboard, and an Adaptive iPad Keyboard, Charles W. Moore, Miscellaneous Ramblings, 2012.02.06. The Caps Lock key has a useful function, the iPad's keyboard really is useful, and checking out an adaptive keyboard for the iPad.
- More links in our archive.
Recent Deals
- Best MacBook Air Deals
- Best iBook G4 Deals
- Best iPad Deals
- Best Classic Mac OS Deals
- Best Apple TV Deals
- Best 15" MacBook Pro Deals
- Best Power Mac G4 Deals
- Best Mac OS X 10.6 Deals
- More deals in our archive.
About LEM Support Usage Privacy Contact
Follow
Low End Mac on Twitter
Join Low End Mac
on Facebook
Low End Mac Reader Specials
TypeStyler 11 is now in the Mac App Store!! -- Special Introductory Price of $59.95!! -- To Buy From The Mac App Store Click Here Now!! Or buy direct
from Strider Software.
Don't install Parallels to play poker online! Poker Mac will show you how to download and install a native Mac poker and Mac Casino applications in minutes.
Favorite Sites
MacSurfer
Cult of Mac
Shrine of Apple
MacInTouch
MyAppleMenu
InfoMac
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac Museum
DealMac
Deal Brothers
Mac2Sell
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End Mac FAQ
Affiliates
Amazon.com
The Apple Store
The iTunes Store
PC Connection Express
GainSaver
Parallels Desktop for Mac
eBay

