CertForums


Go Back   CertForums > Certification Forums > CompTIA Certification Forums > A+


L1, L2 and L3 Cache's on CPU's

Reply
 
Thread Tools Display Modes
  #1  
Old 21-Aug-2007, 01:29 PM
morph morph is offline
Valued Member
Posts: 188
 
Reputation
Points: 171 morph has over 100 pointsmorph has over 100 points
Power: 9
Awards
None
Profile
Join Date: 12 Apr 2007
Location: UK London
Certifications: Network +, ITIL Foundation, CCENT, CCNA
WIP: server/ccna security
Rep Power: 9
morph has over 100 pointsmorph has over 100 points
L1, L2 and L3 Cache's on CPU's

Just somthing i've been wondering, ovbiously the early cpu's didnt have L2 or L3 caches, whilst reading up about all this the more modern cpu's have an L3 cache, for example on the Intel Itanium 2 its got an L3 cache of 1.5meg-3meg whereas its L1 cache is 32kb - why isnt the L1 cache the biggest so the cpu goes there first? Or am i missing somthing ovbious (which wouldnt surpise me )

 
Reply With Quote
  #2  
Old 21-Aug-2007, 01:37 PM
Fergal1982's Avatar
Fergal1982 Fergal1982 is offline CertForums News Posting Member
Lifetime Member
Posts: 4,054
 
Reputation
Points: 10250 Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Power: 154
Awards
None
Profile
Join Date: 04 May 2004
Location: Aberdeen, UK
Certifications: ITIL Foundation, Driving
WIP: you shihou, zuo zuoye... bu xihuan.
Rep Power: 154
Fergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 pointsFergal1982 has over 4000 points
Quote:
Originally Posted by http://en.wikipedia.org/wiki/CPU_cache#Multi-level_caches
Larger caches have better hit rates but longer latency. To ameliorate this tradeoff, many computers use multiple levels of cache, with small fast caches backed up by larger slower caches.
So there you have it. Check out the rest of the article for more detailed information on the caches.




Hecate Guides, but you dont hear me preaching about it! Now p*** off and leave me be.

Posts made by this user do not, and never will, represent anyone other than himself, except in any scenario where explicitly declared. This non-representation includes, but is not limited to, current employers.
 
Reply With Quote
  #3  
Old 21-Aug-2007, 01:40 PM
greenbrucelee's Avatar
greenbrucelee greenbrucelee is offline
Lifetime Member
Posts: 12,953
 
Reputation
Points: 6237 greenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 points
Power: 198
Awards
None
Profile
Join Date: 21 Mar 2007
Location: Carlisle Cumbria
Age: 33
Certifications: A+, N+, MCDST, S+
WIP: N+ 2009 for some stupid reason
Rep Power: 198
greenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 pointsgreenbrucelee has over 4000 points
Quote:
Originally Posted by morph View Post
Just somthing i've been wondering, ovbiously the early cpu's didnt have L2 or L3 caches, whilst reading up about all this the more modern cpu's have an L3 cache, for example on the Intel Itanium 2 its got an L3 cache of 1.5meg-3meg whereas its L1 cache is 32kb - why isnt the L1 cache the biggest so the cpu goes there first? Or am i missing somthing ovbious (which wouldnt surpise me )
When the cpu is using lots of bits of data the cpu needs to access the ram, but ram isnt fast enough so the CPU uses cache the Level 1 cache is the first one used then the 2nd then the 3rd.

The reason why the L1 cache is smaller than the L2 is because a smaller level 1 cache and a bigger level 2 cache make the cpu (pipelining etc) much more efficient


S+,MCDST,N+,A+,HND Business Computing, GNVQ Level 3 IT, NVQ Level 1 & 2 IT

Mobo: Asus Rampage Formula x48
CPU: Intel C2D E8400 @ 4GHz
HSF: Tuniq Tower
GPU: BFG GTX 260 OC2 Maxcore Edition
RAM: 4GB Geil Black Dragon 1066Mhz
CASE: Antec 1200
PSU: 700W Seasonic M12
DVDRW: LG 20x DVD Rewriter
HD1: 250GB Samsung Spinpoint
HD2: Samsung external backup drive 160GB
Display: 22" Samsung SyncMaster 2253BW

RIP UCM, your were always willing to help & will not be forgotten
 
Reply With Quote
  #4  
Old 21-Aug-2007, 01:54 PM
morph morph is offline
Valued Member
Posts: 188
 
Reputation
Points: 171 morph has over 100 pointsmorph has over 100 points
Power: 9
Awards
None
Profile
Join Date: 12 Apr 2007
Location: UK London
Certifications: Network +, ITIL Foundation, CCENT, CCNA
WIP: server/ccna security
Rep Power: 9
morph has over 100 pointsmorph has over 100 points
Thumbs up

ah ok cool ta

 
Reply With Quote
  #5  
Old 21-Aug-2007, 02:07 PM
dmarsh dmarsh is offline
Lifetime Member
Posts: 2,534
 
Reputation
Points: 8280 dmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 points
Power: 113
Awards
None
Profile
Join Date: 24 May 2007
Certifications: One or two...
Rep Power: 113
dmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 pointsdmarsh has over 4000 points
Firstly thats a very good question !

The not fast enough bit is to do with latency, however it could be possible to do away with some of the latency but that would up the cost.
The latency is related to how physically fast the memory and bus systems are, this is also affected by physical distance.
Faster memory and better bus connections cost more, thats why the caches get bigger and slower, its the best way to get the most bang for buck.
Much of the design of things in modern computing is to do with issues relating to latency, if the processor, memory and disk subsystems were closer matched then we
wouldn't bother with extra design features like level 3 caches.

The presence of the cache is also to do with the architecture, see Von Neumann bottleneck.

The cache levels also refer to how close they are to the processor. Level 1 cache is 'on-chip' cache, as such it uses up valuable real estate on the silicon. There are only so many transistors that can fit within a set area, transistor count is based on the size of the die and the size of the gates or density. The bigger the die the more waste as impurities will cause more faulty units and a lower yield. More transistors allow for more complex and powerful processors, so making the level 1 cache bigger could be detrimental to the overall design, as it would use transistors that could be used for other logic or lower the yield by increasing the die size.

Moores law covers alot of this, many people think they understand moores law as they have the media's attention deficit disorder definition, they generally don't.

Moores Law :-

http://arstechnica.com/articles/paedia/cpu/moore.ars/3

Caches in general :-

http://en.wikipedia.org/wiki/CPU_cache

Design is the careful balancing of multiple forces or variables.

So on one level you are right, its just that your processor design would probably cost you £10,000, and it might not scale as well as 10 x £1000 processors !

Of course you can also pay for the extra complexity, it works fine on a SISD architecture, as soon as you bring in multiprocessor architectures you have cache snooping and cache coherency to deal with.


Last edited by dmarsh; 21-Aug-2007 at 09:03 PM.
 
Reply With Quote
Reply

Go Back   CertForums > Certification Forums > CompTIA Certification Forums > A+

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT +1. The time now is 09:18 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2009 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Lunarpages.com Web Hosting