| How The Memory Cache Works |
|
|
| $ Check REAL-TIME pricing for Intel Core 2 Duo Retail Boxed E7200 Processor - 2.53GHz, 3MB Cache, 1066MHz FSB, 45nm Wolfdale E700 Boxed Processor $ |
|
|
|
|
|
|
|
| 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). | Feature | Dynamic RAM (DRAM) | Static RAM (SRAM) | | Storage circuit | Capacitor | Flip-flop | | Transfer speed | Slower than CPU | Same as CPU | | Latency | High | Low | | Density | High | Low | | Power Consumption | Low | High | | Cost | Cheap | Expensive |
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)
|
|
| Recommended Deals |  | AMD Athlon™ 64 X2 4400+, 2.2 GHz (ADA4400CDBOX) Boxed Processor
|  | AMD Opteron 180, 2.4 GHz (OSA180DAA6CD) Processor
|  | AMD Athlon 64 3500+, 2.2 GHz (ada3500dik4b) OEM / Unboxed Processor
|  | AMD Athlon™ 64 3000+, 2.0 GHz (ada3000box) AMD Processor in a Box (PIB)
|  | Intel Core™2 Quad Q6600, 2.40 GHz (BX80562Q6600) Boxed Processor
|
|
Latest News |
October 10, 2008 - 10:57 AM PST |
October 9, 2008 - 10:13 AM PST |
October 8, 2008 - 11:18 AM PST |
October 7, 2008 - 10:42 AM PST |
October 7, 2008 - 10:11 AM PST |
October 6, 2008 - 11:10 AM PST |
October 3, 2008 - 11:50 AM PST |
October 3, 2008 - 11:28 AM PST |
October 3, 2008 - 11:17 AM PST |
October 3, 2008 - 11:07 AM PST |
| .:: More News ::. |
|
Latest Content |
|
|
| Our Most Popular Articles |
796,468 views
|
495,612 views
|
438,093 views
|
421,037 views
|
415,069 views
|
407,319 views
|
365,361 views
|
349,837 views
|
284,610 views
|
275,593 views
|
|
| Latest Threads in Our Forums |
by ley |
by ianb |
by AeroWB |
by AeroWB |
by AeroWB |
by trojancya |
by trojancya |
by trojancya |
by Smfl22 |
by jun_ph26 |
| .:: Visit Our Forums ::. |
|
|