Hardware Secrets
Home | Camera | Case | CE | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
Gabriel's Blog
News
Reviews
Tutorials
Main Menu
About Us
Awarded Products
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Twitter
Newsletter
Subscribe today!
Search




Recommended
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set)
The Winn L. Rosch Hardware Bible, 6th Edition (2 Vol. Set), by Winn L Rosch (Que), starting at $3.29
Home » CPU
How The Memory Cache Works
Author: Gabriel Torres
Type: Tutorials Last Updated: September 12, 2007
Page: 2 of 9
Real-time pricing for AMD ADX630WFGIBOX.
AMD Processor Athlon II X4 630 2.8GHz 2MB L2 Cache Box ADX630WFGIBOX
PC Connection: $122.00 CircuitCity: $114.99
Amazon: $99.99 eCost: $114.99

Dynamic RAM vs. Static RAM

There are two types of RAM memory: dynamic (DRAM) and static (SRAM). The RAM memory used on the PC is dynamic. On this kind of memory each bit of data is stored inside the memory chip in a tiny capacitor. Capacitors are very small components, meaning that millions of them can be manufactured on a small area – this is called “high density”. On the other hand capacitors lose their charge after some time, so dynamic memories need a recharge process called refresh, which occurs from time to time. During this period data cannot be read or written. Dynamic memory is also cheaper than static memory and also consumes far less power. But, as we saw, on dynamic RAM data is not readily available and it can’t work as fast as the CPU.

Static memory, on the other hand, can work as fast as the CPU, because each data bit is stored on a circuit called flip-flop, which can also deliver data with zero or very small latency, because flip-flops do not require refresh cycles. The problem is that flip-flops require several transistors to be made, i.e. they are far bigger than a single capacitor. This means that on the same area where on a static memory only one flip-flop exists, on a dynamic memory there are hundreds of capacitors. Thus static memories provide a lower density – chips have lower capacity. The other two problems with static memory: it is more expensive and it consumes more power – thus it heats more.

On the table below we summarize the main differences between dynamic RAM (DRAM) and static RAM (SRAM).

FeatureDynamic RAM (DRAM) Static RAM (SRAM)
Storage circuitCapacitor Flip-flop
Transfer speedSlower than CPU Same as CPU
LatencyHighLow
DensityHighLow
Power ConsumptionLowHigh
CostCheapExpensive

Even though static RAM is faster than dynamic RAM, its disadvantages prevent it from being used as the main RAM circuit.

The solution found to lower the impact of using a RAM memory that is slower than the CPU was using a small amount of static RAM between the CPU and the RAM memory. This technique is called memory cache and nowadays this small amount of static memory is located inside the CPU.

The memory cache copies most recently accessed data from the RAM memory to the static memory and tries to guess what data the CPU will ask next, loading them to the static memory before the CPU actually ask for it. The goal is to make the CPU to access the memory cache instead of accessing directly the RAM memory, since it can retrieve data from the memory cache immediately or almost immediately, while it has to wait when accessing data located on RAM. The more the CPU accesses the memory cache instead of the RAM, the fastest the system will be. We will explain exactly how the memory cache works in just a moment.

By the way, here we are using the terms “data” and “instruction” interchangeably because what is stored inside each memory address doesn’t make any difference to the memory.

Pages (9): « 1 [2] 3 4 5 6 7 8 9 »
Print Version | Send to Friend | | Bookmark Article | Comments (0)

Related Content
  • Inside Intel Nehalem Microarchitecture
  • Core 2 Duo, Core 2 Quad, Phenom X3 and Phenom X4: Which One is the Best USD 200 CPU?
  • Everything You Need to Know About the CPU C-States Power Saving Modes
  • Inside Atom Architecture
  • All Atom Models

  • Recommended Deal.
    Corsair CWCH50-1Corsair CWCH50-1

    Corsair Hydro H50 CPU Liquid Cooler - 120mm Fan Copper Cold Plate Aluminum Radiator LGA775 LGA1366 LGA1156 CWCH50-1 AM2/AM3 CWCH50-1

    CircuitCity: $79.99 Amazon: $79.99
    Newegg: $79.99 TigerDirect: $79.99

    RSSLatest News
    Sparkle Announces 2 GB GeForce GT 220 Video Card
    March 19, 2010 - 10:17 AM PST
    PowerColor Launches HD 5770 Eyefinity 5 Video Card
    March 19, 2010 - 9:59 AM PST
    In Win Intros IRONCLAD Mid-Tower Case
    March 19, 2010 - 9:39 AM PST
    A-Data Intros 8 GB DDR3 Memory Kit
    March 17, 2010 - 3:40 PM PST
    Intel Launches Xeon 5600 Series and Core i7-980X Processor
    March 16, 2010 - 3:46 PM PST
    Intel Launches 40 GB X25-V SSD Drive
    March 15, 2010 - 1:43 PM PST
    Arctic Cooling Intros Cooler for Radeon HD 5970 and HD 5870
    March 12, 2010 - 12:19 PM PST
    OCZ Announces 32 GB Onyx SSD Unit
    March 10, 2010 - 4:08 PM PST
    MSI Launches X-Slim X360 Laptop
    March 9, 2010 - 4:15 PM PST
    Spire Launches TherMax Eclipse II CPU Cooler
    March 8, 2010 - 2:59 PM PST
    .:: More News ::.

    RSSLatest Content
    All Mobile Celeron Models
    Epson WorkForce 610 All-in-One Printer Review
    All Core i5 Models
    Mionix Naos 5000 Mouse Review
    Arctic Cooling E361-WM Earphones Review
    Don’t Let Your IT Projects Become Vaporware
    OCZ Z Series 850 W Power Supply Review
    HIS Radeon HD 5570 Fan Video Card Review
    Core i7-980X CPU Review
    Gelid Tranquillo CPU Cooler Review
    How to Discover Your Power Supply Real Manufacturer
    OCZ Z Series 1000 W Power Supply Review
    Amacrox Free Earth 85PLUS 650 W Power Supply Review
    ECS A890GXM-A Motherboard
    ASUS M4A89GTD PRO/USB3 Motherboard Review

    Our Most Popular Articles
    Maximum CPU Temperature
    1,154,922 views
    How to Find Out Your Motherboard Manufacturer and Model
    817,662 views
    nVidia Chips Comparison Table
    743,183 views
    Connecting Two PCs Using a USB-USB Cable
    672,432 views
    How To Correctly Apply Thermal Grease
    625,330 views
    AMD ATI Chips Comparison Table
    609,932 views
    ATI Radeon X1300 Pro Review
    506,705 views
    ATI Radeon X1600 XT Review
    494,367 views
    How To Perform a BIOS Upgrade
    443,440 views
    Understanding RAM Timings
    381,513 views

    Latest Threads in Our Forums
    Custom PC Help
    by thebigman101
    All Mobile Celeron Models
    by Hardware Secrets Team
    Sparkle Announces 2 GB GeForce GT 220 Video Card
    by Hardware Secrets Team
    PowerColor Launches HD 5770 Eyefinity 5 Video Card
    by Hardware Secrets Team
    In Win Intros IRONCLAD Mid-Tower Case
    by Hardware Secrets Team
    Corsair CX400W Power Supply Review
    by Olle P
    Epson WorkForce 610 All-in-One Printer Review
    by Hardware Secrets Team
    A-Data Intros 8 GB DDR3 Memory Kit
    by Hardware Secrets Team
    Epson WorkForce 610 All-in-One Printer
    by Hardware Secrets Team
    Mionix Naos 5000 Mouse Review
    by Mescalamba
    .:: Visit Our Forums ::.


    © 2004-10, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)