what is tlb

1 year ago 39
Nature

A Translation Lookaside Buffer (TLB) is a type of memory cache that stores recent translations of virtual memory to physical addresses to enable faster retrieval. It is a high-speed cache that stores the recent translations of virtual memory to physical memory, reducing the time taken to access a user memory location. TLB is a component of the chips memory management unit (MMU) and is used to speed up access to a users memory location. TLB contains page table entries that have been most recently used. When a memory address is stored in the TLB and can be retrieved from there, the speed is enhanced because the CPU doesnt have to access the main memory to access the page table multiple times. If a page table entry is present in the TLB, the frame number is retrieved, and the real address is formed. TLBs may not always be fully utilized, and some entries may become stale if the mapping changes frequently.