We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Hardware

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is a CPU Cache?

By Ray Hawk
Updated: May 17, 2024
Views: 22,543
References
Share

Central processing unit (CPU) cache is a type of random access memory (RAM) that is built directly into the microprocessor itself of a computer, and is designated as L1 cache. Another variety of CPU cache is limited capacity L2 static RAM (SRAM) chips on the motherboard. Both of these types of memory are the first to be accessed by the microprocessor in performing routine instructions before standard RAM memory is used, and this gives processors improved performance characteristics.

The practice of placing CPU cache memory on microprocessors for immediate access to memory in order to speed up data access for the processor has been done since the creation of the 80486 computer processor made in 1989, which had a rudimentary L1 cache register built into it. Larger levels of L2 cache that were directly integrated into processor functionality came into use in 1995. As of 2011, a third level of CPU cache memory also exists in some computer systems known as L3, which is accessed before the main RAM memory of the system itself is used. Each level of cache is designed to be larger and slower in performance as its distance from the microprocessor increases. The earliest levels of L1 CPU cache were 8 kilobytes in size, with L2 cache on machines as of 2007 already surpassing the 6 megabyte size limit, and some systems as of 2011 having incorporated an L4 cache buffer of up to 64 megabytes in size.

The function of high-speed, low volume cache memory for microprocessors centers around the way that they carry out instructions. As a microprocessor performs operations, it must traditionally send requests for data to main memory across the system bus. In computer terms, this is a very slow process, so CPU designers built in shortcuts for the process for data that is repeatedly accessed by the microprocessor. When frequently accessed data is already loaded into CPU cache, the microprocessor can perform operations at a much faster and more efficient rate. For this reason, this central process unit memory is often referred to as instruction cache or data cache where it is tied directly to the functionality of the microprocessor and hardware of the computer itself. By contrast, much of the data stored in standard RAM on a computer is software cache for the many programs that the computer is running simultaneously.

L1 cache is also often referred to as protected memory, or memory with a no-write allocation, as the data stored in this cache is essential to the function of the computer. If it accidentally gets overwritten, the computer can suffer a general protection fault where it is forced to shut itself down and restart to clear the corrupted CPU cache. Various levels of CPU cache have write buffer functionality, where they will write data stored there back to main memory to free up space in the cache for when more frequently accessed operations need to take a higher priority in processing.

Large amounts of CPU cache will enhance a microprocessor's performance to a point where it can outperform a faster processor that has less cache memory built into the system. The speed of the front-side bus (FSB) is also instrumental in determining microprocessor performance. Bus speeds in general have traditionally been a bottleneck for performance characteristics on personal computers (PCs) where processing has to be channeled back and forth across the bus to memory. High FSB rates as of 2011 for Core 2 processors are at a level of 1,600 megahertz, or 1,600 million cycles per second, of computer instruction sets.

Share
WiseGeek is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Link to Sources

Editors' Picks

Discussion Comments
Share
https://www.wisegeek.net/what-is-a-cpu-cache.htm
Copy this link
WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.

WiseGeek, in your inbox

Our latest articles, guides, and more, delivered daily.