CPU's however use a 2 level cache system. The principles are the same. The level 1 cache is the fastest and smallest memory, level 2 cache is larger and slightly slower but still smaller and faster than the main memory.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

[About BTH]  [User Agreement]  [Privacy Policy]  [Site Map]  [Contact Form]  [Advertise on BTH]  [News Feed]

Google
Web
This Site

How Does the CPU Cache Work?

The cache on your CPU has become a very important part of today's computing. The cache is a very high speed and very expensive piece of memory, which is used to speed up the memory retrieval process. Due to its expensive CPU's come with a relatively small amount of cache compared with the main system memory. Budget CPU's have even less cache, this is the main way that the top processor manufacturers take the cost out of their budget CPU's.

How does the CPU Cache work?

Without the cache memory every time the CPU requested data it would send a request to the main memory which would then be sent back across the memory bus to the CPU. This is a slow process in computing terms. The idea of the cache is that this extremely fast memory would store and data that is frequently accessed and also if possible the data that is around it.

CPU's use a 2 level cache system. The level 1 cache is the fastest and smallest memory, level 2 cache is larger and slightly slower but still smaller and faster than the main memory.

This is to achieve the quickest possible response time to the CPU. Its based on playing the percentages. If a certain piece of data has been requested five times before, its likely that this specific piece of data will be required again and so is stored in the cache memory.

Lets take a library as an example o how caching works. Imagine a large library but with only one librarian (the standard one CPU setup). The first person comes into the library and asks for Lord of the Rings. The librarian goes off follows the path to the bookshelves (Memory Bus) retrieves the book and gives it to the person. The book is returned to the library once its finished with. Now without cache the book would be returned to the shelf. When the next person arrives and asks for Lord of the Rings, the same process happens and takes the same amount of time.

If this library had a cache system then once the book was returned it would have been put on a shelf at the librarians desk. This way once the second person comes in and asks for Lord of the Rings, the librarian only has to reach down to the shelf and retrieve the book. This significantly reduces the time it takes to retrieve the book. Back to computing this is the same idea, the data in the cache is retrieved much quicker. The computer uses its logic to determine which data is the most frequently accessed and keeps them books on the shelf so to speak.

That is a one level cache system which is used in most hard drives and other components. CPU's however use a 2 level cache system. The principles are the same. The level 1 cache is the fastest and smallest memory, level 2 cache is larger and slightly slower but still smaller and faster than the main memory.

Computer Sections

RSS Feed RSS Feed

Basic PC Anatomy
The Computers Back Connector Panel
How to Choose a Computer Case
PC Processor Fundamentals
AMD Sempron Processor
AMD Athlon 64 Processor
The AMD Athlon 64 X2 Processor
Intel Celeron D Processor
Intel's Core 2 processors
CPU Sockets Roundup
Understanding Computer Memory
Power Supply Form Factors
Hardware Resources Explained
Device Driver Basics
How Does a Laptop Battery Work?
Understanding Graphic Cards
A+ Certification Study Guide
Motherboard Basics
General Overview Of Motherboards
Motherboard Form Factors
Understanding Your PC's CPU Clock Speed and Front Side Bus
Understanding The Speed Of New Pci Express Data Bus
A Guide To Building Your Own PC
Intermediate PC Build-it-Yourself Guide
Tips and Techniques For Building Your Own PC
Build Your Own Computer
How to Build a Computer
Building Your Own PC! - The Motherboard is the Core of the PC
XFX nForce 680i LT SLI Socket 775 Barebone Kit
Mach Speed P4MSD-800 D2 Motherboard and Intel Pentium D 940 3.20GHz Processor Bundle
Asus M2N4-SLI Socket AM2 AMD Athlon 64 X2 4600+ Barebone Kit
Anatomy of a Hard Drive
Hard Disk Drive Basics
How a Hard Disks Work
The Master Boot Record (MBR)
PC Disk File Systems
Serial ATA Hard Drive
How is Data Written, Stored On, and Erased From Hard Disks?
Hard Disc Fundamentals
The Hard Disk Drive vs. The Solid State Disk
The Universal Serial Bus
IEEE-1394 FireWire
The Small Computer System Interface (SCSI)
Plug and Play Resource Allocation
Get Familiar With MSDOS.SYS
Become Familiar with the Windows Registry
Understanding the Software Layers of a Computer
Advanced Micro Devices (AMD) Chipsets
Intel Chipsets
VIA Chipsets
Basic Computer Thermodynamics
A Guide to Basic PC Cooling
How Does the CPU Cache Work?
How does a CD Burner work?
Understanding Your Motherboard
All About Your Computer's BIOS
Expansion Cards
Power and Your PC
Hard Drives - ATA versus SATA
Inkjet Printers
How a laser Printer Works

[Site User Agreement]  [Advertise on This site]  [Search This Site]  [Contact Form]
Copyright©2001-2007 Bucaro TecHelp P.O.Box 18952 Fountain Hills, AZ 85269