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




Recommended Book
The Winn L. Rosch Hardware Bible (6th Edition)
By Winn L Rosch
Que
Price: $0.94

Home » CPU
How The Memory Cache Works
Author: Gabriel Torres
Type: Tutorials Last Updated: September 12, 2007
Page: 2 of 9
$ Check REAL-TIME pricing for Intel Core 2 Duo Retail Boxed E7200 Processor - 2.53GHz, 3MB Cache, 1066MHz FSB, 45nm Wolfdale E700 Boxed Processor $
ZipZoomfly.com: $119.00 TigerDirect.com: $114.99
CompUSA.com: $114.99 Dell: $159.99
Newegg.com: $119.99 Server Supply.com Inc: $158.00

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
  • VIA C7-M Processor
  • Inside Pentium 4 Architecture
  • All Pentium 4 Models
  • How Chips are Manufactured
  • Intel Fab18 Factory Tour in Kiryat Gat, Israel

  • Recommended Deals
    AMD Athlon™ 64 X2 4400+, 2.2 GHz (ADA4400CDBOX) Boxed Processor


    Pcrichard: $329.97 Compusa: $349.96
    Circuitcity: $309.96
    AMD Opteron 180, 2.4 GHz (OSA180DAA6CD) Processor


    TigerDirect.com: $169.99 CompUSA.com: $169.99
    Amazon: $222.76 Gstechco: $48.38
    AMD Athlon 64 3500+, 2.2 GHz (ada3500dik4b) OEM / Unboxed Processor


    eBay: $52.00 ZipZoomfly.com: $59.99
    Compusa: $349.96 Pcrichard: $329.97
    Circuitcity: $309.96
    AMD Athlon™ 64 3000+, 2.0 GHz (ada3000box) AMD Processor in a Box (PIB)


    ZipZoomfly.com: $105.00 Circuitcity: $309.96
    Compusa: $349.96 Pcrichard: $329.97
    Intel Core™2 Quad Q6600, 2.40 GHz (BX80562Q6600) Boxed Processor


    Newegg.com: $189.99 CompUSA.com: $189.99
    Dell: $259.99 ZipZoomfly.com: $187.50
    TigerDirect.com: $189.99 AT&T Wireless: $49.99

    RSSLatest News
    Exceleram Launches Five New Memory Kits
    October 10, 2008 - 10:57 AM PST
    Kingston Launches 32 GB DataTraveler Flash Memory
    October 9, 2008 - 10:13 AM PST
    Gelid Launches Silent Spirit CPU Cooler
    October 8, 2008 - 11:18 AM PST
    Antec Skeleton Case
    October 7, 2008 - 10:42 AM PST
    Lexar Media Launches Crucial Ballistix Tracer DDR3-1333
    October 7, 2008 - 10:11 AM PST
    Elpida Develops 65-nm Memory Chips
    October 6, 2008 - 11:10 AM PST
    Transcend Launches T5 Flash Memory
    October 3, 2008 - 11:50 AM PST
    Thermaltake Announces BigTyp14 Pro CPU Cooler
    October 3, 2008 - 11:28 AM PST
    A-Data Announces Triple-Channel DDR3 kits for Core i7 Processors
    October 3, 2008 - 11:17 AM PST
    EVGA Launches nForce 790i SLI FTW Mainboard
    October 3, 2008 - 11:07 AM PST
    .:: More News ::.

    RSSLatest Content
    500 GB Hard Disk Drive Round-Up
    Anatomy of the Playstation 3
    AMD ATI Chips Comparison Table
    Bgears b-Envi Case Review
    Everything You Need to Know About Digital Cameras
    Kingwin Mach 1 ABT-700MA1S 700 W Power Supply Review
    Thermaltake V9 Case Review
    OCZ Dominatrix Gaming Mouse Review
    Rosewill Wind Ryder RZLS142-AP Case Review
    AeroCool AeroRacer Pro Case Review
    iPod Touch 2nd Generation Review
    Olympus SP-570UZ Digital Camera Review
    Zalman ZM600-HP 600 W Power Supply Review
    Tagan A+ Curbic Case Review
    Everything You Need to Know About The Motherboard Voltage Regulator Circuit

    Our Most Popular Articles
    Maximum CPU Temperature
    796,468 views
    nVidia Chips Comparison Table
    495,612 views
    AMD ATI Chips Comparison Table
    438,093 views
    ATI Radeon X1300 Pro Review
    421,037 views
    ATI Radeon X1600 XT Review
    415,069 views
    How to Find Out Your Motherboard Manufacturer and Model
    407,319 views
    Connecting Two PCs Using a USB-USB Cable
    365,361 views
    How To Correctly Apply Thermal Grease
    349,837 views
    Sempron vs. Athlon XP
    284,610 views
    Sempron 3400+ Review
    275,593 views

    Latest Threads in Our Forums
    500 GB Hard Disk Drive Round-Up
    by ley
    ATHLON x2 6000 or C2D E8400??
    by ianb
    Budget Gaming PC
    by AeroWB
    what mobo and PSU pls..
    by AeroWB
    is this an "ok!" build?
    by AeroWB
    may notebook just shutdowns! help..
    by trojancya
    computer lock ups!
    by trojancya
    IGP vs video card which one? im confused
    by trojancya
    Newly Built PC Powering Issues.
    by Smfl22
    Power Usage
    by jun_ph26
    .:: Visit Our Forums ::.


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