575 views
2 votes
2 votes
What is the difference b/w cache & TLB? TLB is stored in cache too right? TLB helps in addressing like a faster version of page table while speaking of cache, it directly stores the process page directly right?

3 Answers

1 votes
1 votes
TLB is an address translation table that takes the virtual address from the CPU itself and gives the physical address of a memory reference. Cache takes the physical address and gives the data/instruction stored in that physical memory location. Both have similar architecture, Mappings, replacement algorithms, multiple levels, etc. The page table of a process is mapped onto TLB whereas the entire physical memory is mapped onto the cache.
0 votes
0 votes
TLB is stored in cache too right?  NO TLB is different Hardware than cache in which few page entry are there .

In contrary cahce keeps only process pages not “page table pages”
0 votes
0 votes
The difference between cache and TLB is that cache is a form of memory which stores data for quick access, while TLB is a hardware component which stores recently used addresses for faster look up when accessing memory. TLB entries are stored in cache, as the TLB is an intermediate layer between the processor and main memory. TLB helps in addressing by mapping virtual address to physical address, while cache stores data that has been accessed recently, allowing the processor to be more efficient and reduce the latency of accessing data.

Related questions

1 votes
1 votes
0 answers
2
jatinkumar asked Jun 30, 2018
924 views
What's the difference b/w TA and RA according to -1) How can we choose a course (Specialization) in them?2) In which we learn a lot?3) Companies preferred which students?...
0 votes
0 votes
1 answer
3
0 votes
0 votes
1 answer
4