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 Translation Lookaside Buffer?

By Alex Newth
Updated: May 17, 2024
Views: 15,192
Share

A computer's central processing unit (CPU) has a cache system called the translation lookaside buffer (TLB), which is responsible for translating physical memory into virtual memory. This a separate cache system, because it is quicker for the CPU to search this cache for memory addresses than to place it in the regular cache. To store memory addresses, the TLB uses page table entries, forming a map between virtual and physical memory addresses. When the translation lookaside buffer is used, there can either be a TLB hit or miss, meaning the memory has been found or is unknown. Computers can come with several different TLB levels to store more memory address information.

When physical memory is turned into virtual memory, creating a cache of it makes it easy for the computer to find the actual memory placement. This information can be placed in the main CPU cache, but that presents several problems. To store these data, several different access levels must be used, slowing down the entire process. A translation lookaside buffer looks around these levels and helps the CPU find the correct memory spot so the data can be opened.

The translation lookaside buffer uses a page table system that categorizes the virtual memory translation areas. When physical memory turns into virtual memory, such as when a document is stored or a program is used, the TLB stores this translation. The TLB does not store the information itself but where the memory is located, making it memory efficient.

To find a file, or anything in the memory architecture, the CPU searches through the computer. The CPU's first step is using the translation lookaside buffer to see if the memory has been cached; this produces either a hit or miss. A TLB hit means the physical memory is cached and can be found quickly. A TLB miss means the physical memory is not cached, and the CPU must look through all the page tables to find the memory, a process that is memory inefficient and takes extra time.

Most computers come with several translation lookaside buffer levels. The lowest level holds the least amount of information, but also is the quickest. When there is too much information for the first level to hold, it spills into the higher levels. These levels are not as quick but are still faster than the CPU searching through all the page tables for the physical memory address.

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.

Editors' Picks

Discussion Comments
By everetra — On Oct 23, 2011

@MrMoody - Ideally, everything should be cached – not sure why some things are and some things aren’t.

I do know that you can increase the size of your virtual memory in Windows. You can go to Control Panel, access System and Maintenance and then System. Go to Advanced System Settings, Advanced, Performance and Settings.

You’ll see a section for Virtual memory and a button labeled “Change.” Click that and enter your new size for your virtual memory. It’s quite possible that the size of the virtual memory will affect how often the computer uses the virtual memory, like you said.

I didn’t figure this stuff out because I am a whiz at Windows, but because I used to get an error message to the effect that “Your virtual memory is low.” I had to do some digging to figure out how to fix that.

By MrMoody — On Oct 22, 2011

I guess I get the importance of virtual memory and the role that a translation look aside buffer plays in it. Based on the improved performance, I would expect that the computer would always put its memory in virtual memory, and therefore avoid the “miss” scenario.

However, I guess that the computer makes that determination based on its available resources. Maybe if it doesn’t have enough space in virtual memory to map to the physical memory, it just uses the physical memory instead.

Share
https://www.wisegeek.net/what-is-a-translation-lookaside-buffer.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.