World's most popular travel blog for travel bloggers.

How many times do we access memory with a TLB?

, , No Comments
Problem Detail: 

As I understand it, when we are on a virtual memory based system, we have to access memory 2 times (one for the Page Table and one for the physical address in RAM). But, how many times would we have to access if we had a TLB?

Asked By : gallina0x07CC
Answered By : Maharaj

enter image description here

Whenever you want to access some data item then its VA need to be converted into PA.Page table contains the required VA and PA mappings but it(page table) is stored itself in memory so you need 2 main memory accesses 1 for Page Table and one for actual Data.

TLB is faster type of memory than RAM.When there is a TLB hit you get desired Physical address in TLB and you have to access main memory once for actual data. But if there is a TLB miss, you have to access memory twice as in above case.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/60180

3200 people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback