Question

In: Computer Science

What is a TLB, what is stored in it, for what purpose it is used, and who manages it?

What is a TLB, what is stored in it, for what purpose it is used, and who manages it? Why the instruction cache and date cache require separate TLBs? What techniques are used to reduce the TLB miss penalty?

Solutions

Expert Solution

The answer to the question is given below.

TLB--->

Translation Lookaside Buffer is a memory cache, that stores recent translations of virtual memory to a physical address. It is used for fast retrieval of addresses. IT is a part of chip's Memory Management Unit(MMU)

What is stored in it.
It stores the recent translation of virtual memory to a physical address that is used for fast retrieval of memory.

Purpose of TLB
We know that cache is part of the main memory. So, if CPU generates an address and if it does not find it in the cache. Then it has to fetch the data from the main memory. So, this way two main memory cycles are needed.
Here comes the TLB. It uses the registers to store the page table entry. So, when CPU generates the address, and if find it in TLB and memory access time is very less. And if it's not in TLB then only one main memory cycle is needed.

So, it improves the memory access time for any address that CPU generates.

Who manages it
It is a part of the Hardware chip - Memory Management Unit(MMU)
So, MMU manages it.

Why the instruction cache and data cache require separate TLBs?
There is a simple difference between the instruction cache and the data cache.
Instruction is only fetched or read from memory
But data can be read from memory and write into memory.
For instruction cache, blocks are copied to cache from memory.
But for data cache, blocks can be copied from memory to cache and from the cache to memory.
That's why we require separate TLB's for both.


What techniques are used to reduce the TLB miss penalty?
There are a lot of technologies that help to improve TLB performance.
1. Supporting variable Size Pages
The idea is just instead of using a small page like 2KB , use huge page size like 2MB
This will reduce the TLB miss penalty.

2.Reducing TLB flushing overhead
if we reduce the TLB flushing overhead, this will lead to TLB miss penalty.

3. TLB Prefetching
Prefetching the data in TLB will lead to Reduce the TLB miss penalty.

So, these three techniques reduce the TLB miss penalty.







Related Solutions

What are stored-value cards and how they are used in electronic commerce
What are stored-value cards and how they are used in electronic commerce
What is a SWOT analysis? What is it used for? What is the purpose of a...
What is a SWOT analysis? What is it used for? What is the purpose of a SWOT analysis? How is a SWOT analysis best used in the planning process?
What is the charge stored in C_1? What is the charge stored in C_2? What is...
What is the charge stored in C_1? What is the charge stored in C_2? What is the charge stored in C_3? What is the voltage V_1 across C_1? What is the voltage V_2 across C_2? What is the voltage V_2 across C_3? What is the charge stored in C_1? What is the charge stored in C_2? What is the charge stored in C_3?
What is a memo format and when it is used? What is the purpose of an...
What is a memo format and when it is used? What is the purpose of an incident report? Give an example from a real-life situation that shows when an incident report should be written. When writing a travel report, we need to have an introduction (the first paragraph or two paragraphs), a description of activity/service, a cost accounting, and a conclusion (assessment). Explain what the introduction and the conclusion should generally include in terms of their content. Briefly explain what...
What is the purpose of a Shell? How is a Shell used?
What is the purpose of a Shell? How is a Shell used?
What is the purpose of an income statement, and who is the audience for this document?...
What is the purpose of an income statement, and who is the audience for this document? What components do income statements typically contain? Why?
What are three multiplexing schemes used in GSM and what is their purpose?
What are three multiplexing schemes used in GSM and what is their purpose?
What is an Expert Witness? What is the purpose of an Expert Witness? Who can be...
What is an Expert Witness? What is the purpose of an Expert Witness? Who can be an Expert Witness? What qualifies a person to be an expert witness?
What is the purpose of the alternative minimum tax and who pays it? How was the...
What is the purpose of the alternative minimum tax and who pays it? How was the individual alternative minimum tax impacted by the December 2017 tax reform law? Review available tax credits discussed in chapter 12 of the text. Compare the tax credits that you actually take with the tax credits you would like to take. Explain why you made the particular selections. For the tax credit(s) that you would like to take, explain why you are not able to...
What is the circular economy, where is it used, when it appeared, for what purpose it...
What is the circular economy, where is it used, when it appeared, for what purpose it was found
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT