CPU - CPU Cache (L1, L2, L3)

Cpu Moore Law Transistor

About

A CPU cache is a cache used by the central processing unit of a computer to reduce the average time to access memory.

When the processor needs to read from or write to a location in main memory, it first checks whether a copy of that data is in the cache. If so, the processor immediately reads from or writes to the cache, which is much faster than reading from or writing to main memory.

See Memory - Hierarchy

Type of CPU cache

Most modern desktop and server CPUs have at least three independent caches:

  • an instruction cache to speed up executable instruction fetch,
  • a data cache to speed up data fetch and store,
  • and a translation lookaside buffer used to speed up virtual-to-physical address translation for both executable instructions and data.

Level

L3 caches are almost always shared amongst cores; L2 and L1 might also be shared.

L1

Level 1 (L1) cache is the primary cache – often accessed in just a few cycles, usually tens of kilobytes. The L1-cache is the fastest cache and it usually comes within the processor itself.

The L1 cache uses the high-speed SRAM (static RAM) instead of the slower and cheaper DRAM (dynamic RAM) used for main memory.

L2

Level 2 (L2) cache – higher latency than L1 by 2× to 10×, often 512 KiB or more.

L2 cache comes between L1 and the main memory and is bigger than the L1 cache.

L3

Level 3 (L3) cache – higher latency than L2, often 2048 KiB or more.

L3 caches are found on the motherboard rather than the processor. It is kept between RAM and L2 cache.

Documentation / Reference





Discover More
CPU - Linux

CPU in a Linux context You can use the top or htop command line to get CPU monitoring metrics. where: x86_64 means: a X86 architecture with a 64 bit word size 1 block of information...
Card Puncher Data Processing
Computer - Storage Device (Media)

A storage device is a that stores byte: machine instructions byte data byte It is an array of circuits that saves bit state (0 or 1). A storage device can be anything that can store and retrieve...
Card Puncher Data Processing
Data Manipulation - Translation Lookaside Buffer (TLB)

A translation lookaside buffer (TLB) is a cpu cache of the virtual memory concept that the memory management hardware uses to improve virtual address translation speed of (virtual-to-physical address...
Hierachy Storage
Memory - (Primary|Main|Internal) Memory

Main memory is also known as: Primary storage internal memory (to distinguish from external memory, such as hard drives) often referred to simply as memory, is the only one directly accessible to...
Hierachy Storage
Memory - Hierarchy

A memory/storage hierarchy in computer storage distinguishes each level in the hierarchy by: the response time (latency) the capacity (areal density) and generally by the distance between the storage...
Card Puncher Data Processing
Memory - Volatilty / Permanent

When the power is removed, the memory device (storage media) is considered: volatile memory if the data vanishes permanent (non-volatile) memory if the data remain stored When the data is stored...
Cpu Moore Law Transistor
What is a CPU, the Central processing unit?

A CPU is just a device name that indicate a device that controls a computer system. A CPU is also known as: a or The fundamental operation of most CPUs, regardless of the physical form they take,...



Share this page:
Follow us:
Task Runner