image
image

Go Back   macosx.com > Content & Information > Apple News, Rumors & Discussion

Reply
 
Thread Tools
  #1  
Old January 28th, 2002, 09:52 PM
Registered User
 
Join Date: Oct 2001
Location: Chesterton, Indiana
Posts: 1,256
Thanks: 0
Thanked 0 Times in 0 Posts
mindbend is on a distinguished road
Cache Questions

So, Apple's hyping this whole L2/L2 cache thing as though it makes up for the huge MHZ gap. I want some real world examples of how these caches will speed up performance. They talk about caching application code for instant access. Is that really that big a deal? I'm not convinced. Granted, I don't really understand what it's doing, so I don't know, but I remember the old 2 meg L2 cache hype on my PowerTower and I was hard pressed to notice any big deal about it.

What exactly is being cached? Say like in Photoshop, is it caching menu options, undo data, image data, what?

For the record, I'm getting one [DP1gig] either way, I just wanted to learn a bit more about how much L2/L3 cache REALLY helps. My gut stills tells me not much, it's clearly an attempt to distract us from the chasm known as MHZ gap.
Reply With Quote
  #2  
Old January 28th, 2002, 11:47 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Actually, it helps quite a bit

Think of cache as memory. The L2 and L3 cache are little bits of memory running at superfast speed, so the processor can output little bits of information that it uses a lot to the cache, and when it needs them again, it can page them in and blazingly fast speeds, instead of using the slow 133 MHz system bus. The L2 cache runs at the speed of the processor, and the L3 cache is basically DDR RAM dedicated to the processor.

Real-time performance tests can really show that L2 and L3 cache can help quite a bit. Although real DDR RAM and a HyperTransport system bus would really help quite a bit, too. Those are the two areas in which Apple is sorely lacking.
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
  #3  
Old January 29th, 2002, 02:34 AM
RacerX's Avatar
Old Rhapsody User
 
Join Date: Apr 2001
Location: US version of Siberia
Posts: 2,571
Thanks: 0
Thanked 2 Times in 2 Posts
RacerX will become famous soon enoughRacerX will become famous soon enough
Re: Cache Questions

Quote:
Originally posted by mindbend
My gut stills tells me not much, it's clearly an attempt to distract us from the chasm known as MHZ gap.
To talk about processor cache, let step away from the Mac/PowerPC arena for a minute. I think a good real world example would be my SGI Indy running with an R4600SC (secondary cache, in this case 512k) at 133 MHz (hey, you know this must be a really slow system looking at the MHz, strange that it's main use for me is video capture). I had a friend who saw and like my Indy so much that he bought one that he thought was the same because it was a 133 MHz system. He could understand why some of the things that seemed quite fast on my system where not as fast on his. As it turned out, he had gotten an R4600PC (primary cache only) system which runs 15-30% slower than mine. At another point in time I thought about getting an R5000 upgrade (same type of processor used in the early O2 systems), and the R5000PC/150 MHz looked good until I saw that it wasn't really any faster than my system. Then I saw that the R4400SC/200MHz was selling at about half the price of the R5000SC/180MHz (which was because the R5000SC/180 was quite a bit faster than the R4400SC/200, again with the wonderful MHz not matching real system speed).

Lets now take a look at the second generation of PowerPC processors for a minute (seeing as you brought them up). The 603/604 series were not design to use cache effeciently. Add to that that the L2 cache was on the mother board and used the system bus, and the performance boost would not be worth the effort.

Then came the G3. Have you ever asked yourself "why was the G3 so much faster than the 603/604 processors at any given MHz?" The answer to that question is how it takes advantage of L2 cache and how a dedicated cache only bus was created between the processor and the L2 memory (usually at some fraction of the actual processor speed). The only problem with this was that you couldn't get more than one processor's cache to play nicely within a system... until the G4 that is. The nexted big step was having a large (256k) on board/at speed L2 cache (data bus is now inside the processor) and having a larger L3 cache on a dedicated bus with the processor(s).

So what difference does this make? Lets look at the Pentium series of processors for a moment. The Pentium II is (MHz for Mhz) faster than the Pentium III. Why? Because in order to move forward in the MHz gap they had to take performance short cuts (which the higher MHz mostly made up for). This happened again in the transition from the Pentium III to the Pentium 4. Now lets look at the PowerPC line. One branch moves along from the 601 to the 603 to the G3, and the other from the 601 to the 604 to the G4. The move from the 601 to the 603 was a step backwards for performance, but a step forwards for MHz (and heat which is why that line ended up on early PowerPC processors). The move from the 603 to the G3 was both a big jump forwards in performance (a 233 MHz G3 was much faster than a 300 MHz 603e) and heat (the first time in history that a processor debuted in both desktop and laptop systems). In the jumps from 601 to 604 to G4, we got both a performance increase and a MHz increase (though as you noted, the MHz numbers didn't jump up as fast as in the Pentium/x86 lines).

So where does this "gap" show up again... why in Intels new Itanium processor (running at 800 MHz, compared to 2.2 GHz for the cheeper Pentium 4). The fact of the matter is, once you get past the consumer market (where people don't know any better), MHz doesn't tell you much about a system, but a systems use of cache can be very telling (some SGI's have been at 4 MB for quite some time now, we should have match them with that mark by now). Mind you, believe what you like, you really should check these types of things out for yourself. And remember that there are more than just Macs and PC in this world to take into account when studying relative performance between processors.
Reply With Quote
  #4  
Old January 29th, 2002, 10:10 AM
genghiscohen's Avatar
Membrum virile
 
Join Date: Sep 2001
Location: Sea of Tranquility
Posts: 805
Thanks: 0
Thanked 0 Times in 0 Posts
genghiscohen is on a distinguished road
I'm sure I'm oversimplifying here, but the L2 cache can be regarded as the second fastest info processing location after the CPU itself (if the L2 is optimally configured). In descending order of speed, it goes: CPU, L2 cache, RAM, hard disk.
__________________
--
"No left turn unstoned."
(PowerBook 15" 1.5 GHz/80/1.5 GB, eMac 1 GHz/80/768 MB, SuperDrive, 250 GB FireWire HD, Lexmark Z65 printer, Epson Perfection 1200U scanner)
Reply With Quote
  #5  
Old January 29th, 2002, 10:39 AM
Registered User
 
Join Date: Oct 2001
Location: Chesterton, Indiana
Posts: 1,256
Thanks: 0
Thanked 0 Times in 0 Posts
mindbend is on a distinguished road
That's great, but...

I appreciate everyone's tech talk, really I do, my original request has gone unanswered, which is REAAL WORLD examples of exactly how cache increases performance.

e.g. games, video rendering, screen redraws, switching between apps, sherlock finds, etc. Nobody has provided an example of how any of these or other things are affected.

You say cache makes a difference. I believe you, but where?
Reply With Quote
  #6  
Old January 29th, 2002, 11:36 AM
FaRuvius's Avatar
Hardest Flusher
 
Join Date: Oct 2001
Location: hmm.
Posts: 157
Thanks: 0
Thanked 0 Times in 0 Posts
FaRuvius is on a distinguished road
Re: That's great, but...

Quote:
Originally posted by mindbend
I appreciate everyone's tech talk, really I do, my original request has gone unanswered, which is REAAL WORLD examples of exactly how cache increases performance.

e.g. games, video rendering, screen redraws, switching between apps, sherlock finds, etc. Nobody has provided an example of how any of these or other things are affected.

You say cache makes a difference. I believe you, but where?

You are thinking about the cache thing all wrong. It won't provide the cut and dry performance increases you are looking for.

More L2 cache will prevent the processor from waiting for instructions. It will decrease the frequency that the processor has to ask (and then wait) for instructions to come from RAM or the Hard Disk.

More level 2 cache will increase your performance in CPU intensive games (not GPU intensive games), it will increase Video Rendering, screen redraws, and switching between apps. The Sherlock Find is more likely limited by your Hard Disk Speed.

You are looking for L2 benchmarks in terms of a Quake 3 FPS boost. I seriously doubt that you will find that. L2 cache will provide an OVERALL performance boost. And RacerX gave some very good real life examples of the overall system boost.

FaRuvius
__________________
"Flush Hard to Stay Strong!"
Reply With Quote
  #7  
Old January 29th, 2002, 02:08 PM
Registered User
 
Join Date: Dec 2000
Location: PA or MD, USA
Posts: 722
Thanks: 0
Thanked 0 Times in 0 Posts
theed is on a distinguished road
cache is a generic term

actually a cache is any intermediate storage for quick retrieval. There isn't a specific type of data stored in the cache. Anything that was uned recently has a chance of being stored in the cache.

hierarchy goes processor
L1 cache (on processor, at processor speed, 32K instruction 32K data)
L2 cache (dedicated bus, half processor speed usually, 512K to 2MB)
L3 cache (if they want ANOTHER layer of cache, 2 Meg maybe, faster than system)
RAM
HD for use as VM.

In modern implementations, you could view HD as the memory and RAM as the cache, it'd make no difference in action, just terminology. If you understand VM, you understand cache in an upside down way.

If you really want, you could buy yourself a processor upgrade card with software controlls for the cache, and then you could run benchmark after benchmark determining what efect L2 cache had. Truth is, it's a fuzzy general number due to statistics and averages. Everything will be faster. How much depends on what you do. You're free to pry that puppy off of your motherboard and let the rest of us know what it feels like. I'd guess 15% on games, 30% on rendering and compiler times.
__________________
- Beware the wrath of my apathy.
Reply With Quote
  #8  
Old January 29th, 2002, 08:39 PM
Registered User
 
Join Date: Dec 2000
Location: PA or MD, USA
Posts: 722
Thanks: 0
Thanked 0 Times in 0 Posts
theed is on a distinguished road
actual results

On a G3 upgrade card, I ran MacBench several times under various configurations. Here's the skinny. Base system is a G3 300. (B&W I guess)

G3 340 card 512k cache @ 270 int:86% float:112%
G3 340 card cache disabled int:37% float:89%

I didn't run other tests, expect them te differ less than these did, or maybe not at all.
__________________
- Beware the wrath of my apathy.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Authoritative Partitioning Discussion mr. k Mac OS X System & Mac Software 13 November 11th, 2003 07:26 PM
cpu preference pane -pb 667 g4-level3 cache? J5 Mac OS X System & Mac Software 3 January 15th, 2003 05:05 PM
Bad cache memory!? iMan Hardware & Peripherals 3 December 29th, 2002 11:35 PM
L2 cache clocking via OF? ksv Software Programming & Web Scripting 0 November 7th, 2002 10:21 AM
Do I need cache control software for an upgraded G4? ElDiabloConCaca Apple News, Rumors & Discussion 0 November 8th, 2001 05:06 PM


All times are GMT -5. The time now is 08:50 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.