Cache RAM and Main Memory

 < Day Day Up > 

As you learned in Chapter 4, "The Motherboard and CPU," CPUs with Level 1 (L1) and/or Level 2 (L2) cache RAM perform RAM-bound operations much more quickly than CPUs that lack cache.

There are two reasons why cache RAM helps the CPU perform RAM-bound operations faster:

  • Cache RAM is faster than main memory.

  • Cache RAM holds a copy of the last-accessed section of main memory.

Because programs and other processes performed by the CPU often use the same section of memory several times before they need to access a new section of memory, checking cache RAM first for information enables a CPU to perform tasks more quickly than if it checked main memory every time. In most situations, the memory section needed by the CPU is stored in cache memory, so the CPU can reuse it.

The order in which the CPU accesses memory is L1 cache , then L2 cache (if necessary), L3 cache (if present, used mostly on server processors such as the Intel Itanium family) and finally, main memory (if necessary). This process is detailed here:

  1. L1 cache is checked. If the desired memory location is here, this is a cache hit and the CPU uses it.

  2. If the desired memory location is not found here, this is a cache miss and the CPU then checks L2 cache.

    If the desired memory location is here, this is a cache hit and the CPU uses it.

  3. If the desired memory location is not found here, this is a cache miss and the CPU then checks L3 cache (if present).

    If the desired memory location is here, this is a cache hit and the CPU uses it.

  4. If the desired memory location is not found here, this is a cache miss and the CPU then retrieves the location from main memory.

  5. All caches are refreshed with the latest information when the CPU fetches information from main memory, enabling the CPU to use cache memory successfully on future memory accesses.

Locations for Level 2 Cache

L2 cache is built into Pentium II and newer processors (see Chapter 4 for details), but is located on the motherboard of most Pentium and Pentium-class (Socket 4, 5, or 7) processors. Table 7.8 lists the types of L2 cache chips used on Pentium-class motherboards and their typical locations, which are pictured in Figure 7.9.

Figure 7.9. L2 cache memory on Pentium-class motherboards might be provided by socketed SRAM chips (top), a COAST (Cache On A STick) module (middle), or surface-mounted pipeline-burst cache chips (bottom).

graphics/07fig09.gif

Table 7.8. Level 2 Cache Types and Uses

Cache Type

Details

Sizes

Typical Systems

SRAM chips

4 or 8 data chips, 1 TAGRAM chip (usually socketed)

64KB, 256KB

486 and early Pentium

COAST module

Dedicated slot

256KB

Late-model 486 and some Pentium

Pipeline-burst chips

Rectangular surface-mount chips on motherboard

256KB, 512KB, 1MB

Late-model Pentium, K6

Locations for L3 Cache

The only current PC processors with built-in L3 cache at this writing are the Intel Itanium family of processors, which are used in very high-performance servers. Some versions of the Intel Xeon used in servers and workstations, and the Intel Pentium 4 Extreme Edition used in high-performance PCs. The rare K6-III processor, which used the same Socket 7 as the Intel Pentium MMX, was the first PC processor to have both L1 and L2 cache onboard. When it was plugged into a motherboard that had onboard cache (as described in the previous section), the onboard cache was treated as L3 cache.

Upgrading Cache RAM

You can upgrade the L2 cache on a Pentium-class system by installing additional SRAM cache chips or a COAST module or by installing a motherboard with integrated pipeline-burst cache chips. To upgrade the cache on newer systems, replace the processor with a model with more L2 cache.

graphics/arrow_icon.gif

See "Internal CPU Characteristics Affecting Performance," p. 132 , for more information on CPUs that contain L2 cache.


 < Day Day Up > 


Absolute Beginners Guide to A+ Certification. Covers the Hardware and Operating Systems Exam
Absolute Beginners Guide to A+ Certification. Covers the Hardware and Operating Systems Exam
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 310

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net