TLB vs Page Table
Asked Answered
L

1

17

The page table associate each virtual page with its associated physical frame. The TLB does the same except it only contains a subset of the page table.

What is the purpose of the TLB if page table does the same thing and has more data?

Lautrec answered 19/4, 2016 at 3:46 Comment(1)
I assume you mean translation lookaside buffer (TLB)?Brianabriand
B
30

Speed.

The TLB is a cache that holds (likely) recently used pages. The principle of locality says that the pages referenced in the TLB are likely to be used again soon. This is the underlying idea for all caching. When these pages are needed again, it takes minimal time to find the address of the page in the TLB. The page table itself can be enormous, so walking it to find the address of the needed page can get very expensive.

See https://en.wikipedia.org/wiki/Translation_lookaside_buffer

Brianabriand answered 19/4, 2016 at 4:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.