At EasyTechJunkie, we're committed to delivering accurate, trustworthy information. Our expert-authored content is rigorously fact-checked and sourced from credible authorities. Discover how we uphold the highest standards in providing you with reliable knowledge.

Learn more...

What Is a Translation Lookaside Buffer?

A Translation Lookaside Buffer (TLB) is a specialized cache designed to speed up virtual-to-physical address translation. It stores recent translations, allowing for quicker memory access, enhancing computer performance. By reducing time-consuming memory lookups, a TLB is crucial for efficient CPU operation. Curious about how this impacts your computer's speed? Let's delve deeper into the workings of a TLB.
Alex Newth
Alex Newth

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.

A translation lookaside buffer is a cache system on a computer's CPU.
A translation lookaside buffer is a cache system on a computer's CPU.

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.

You might also Like

Discussion Comments


@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.


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.

Post your comments
Forgot password?
    • A translation lookaside buffer is a cache system on a computer's CPU.
      By: Restyler
      A translation lookaside buffer is a cache system on a computer's CPU.