What is Cache Memory?

internet computers

Cache (pronounced cash) memory is extremely fast memory that is built into a computer’s central processing unit (CPU), or located next to it on a separate chip. The CPU uses cache memory to store instructions that are repeatedly required to run programs, improving overall system speed. The advantage of cache memory is that the CPU does not have to use the motherboard’s system bus for data transfer. Whenever data must be passed through the system bus, the data transfer speed slows to the motherboard’s capability. The CPU can process data much faster by avoiding the bottleneck created by the system bus.

As it happens, once most programs are open and running, they use very few resources. When these resources are kept in cache, programs can operate more quickly and efficiently. All else being equal, cache is so effective in system performance that a computer running a fast CPU with little cache can have lower benchmarks than a system running a somewhat slower CPU with more cache. Cache built into the CPU itself is referred to as Level 1 (L1) cache. Cache that resides on a separate chip next to the CPU is called Level 2 (L2) cache. Some CPUs have both L1 and L2 cache built-in and designate the separate cache chip as Level 3 (L3) cache.

Cache that is built into the CPU is faster than separate cache, running at the speed of the microprocessor itself. However, separate cache is still roughly twice as fast as Random Access Memory (RAM). Cache is more expensive than RAM, but it is well worth getting a CPU and motherboard with built-in cache in order to maximize system performance.

Disk caching applies the same principle to the hard disk that memory caching applies to the CPU. Frequently accessed hard disk data is stored in a separate segment of RAM in order to avoid having to retrieve it from the hard disk over and over. In this case, RAM is faster than the platter technology used in conventional hard disks. This situation will change, however, as hybrid hard disks become ubiquitous. These disks have built-in flash memory caches. Eventually, hard drives will be 100% flash drives, eliminating the need for RAM disk caching, as flash memory is faster than RAM.

Related wiseGEEK articles

Category



Discuss this Article

It would be better to have 2MB cache and 1GB RAM as Cache is generally a lot faster (2-3 times) than RAM.
- anon31732
Basic Factors to consider before buying a new computer are:

1. What will it be used for? This will determine whether or not you need a powerful processor, extra RAM or overall performance capabilities.

2. Reliability. Will all the components work correctly and efficiently?

3. Will it require space for future improvements? If in the future you wish to upgrade your pc, you will need to have extra space such as extra PCI slots and drive bays.

4. Spacial Awareness. How much room have you got to put your PC? Do you need a small, more compact PC or can you manage with a big pc that takes up a lot of space?

- anon31727
What are the basic factors that I should consider before I buy a new computer?
- anon21965
does cache memory prevent the processor from being idle? if yes then how?
- anon17823
I have a similar question....is it better to go with 1mb L2 cache and 1gb ram or 2mb cache and 1gb ram?
- glassbarrel
hi i just wanted to ask if there is a big difference in performance between a 1mb & 2mb cache and any way in which i would feel the difference when im using the laptop? thnx a lot
- anon8020

FREE: Subscribe to wiseGEEK

 
    learn more

our strict privacy policy ensures that your email address will be safe



Written by R. Kayne

copyright © 2003 - 2009
conjecture corporation