TLB, plus 2 levels of cache, with Virtual Memory using an MMU, a Page Table and
ID: 3581655 • Letter: T
Question
TLB, plus 2 levels of cache, with Virtual Memory using an MMU, a Page Table and a L1 and L2. (a) [1] Where is the TLB located? Between end CPU ache (b) where Po is the Page Table located? keme (c) [1] Where is the MMUIocated? Machine CPO. (d) [12] Suppose the CPU needs access to some data. There are 4 cases: 1. The data is in L1 2.The data is in L2 3. The data is in memory 4. The data is disk State algorithmically the steps to be followed in the search and retrieval of this data for each of the 4 cases, clearly naming which component in involved andExplanation / Answer
Just to give some background :-
L1 cache is present in the processor itself , L2 cache comes in between CPU and Main Memory . Then comes the Secondary Storage.
Hierarchy is Processor(L1) L2 MainMemory Disk
1. Data in L1 Cache
Whenever CPU needs data first it will check in L1 cache if data is there in L1 which means then there is a hit.
2. Data in L2 Cache
Whenever CPU needs data first it will check in L1 cache if data is not there in L1 which means then there is a miss, then CPU goes to L2 cache to find the data, and if the data is present there is a hit. This is the way search and retireval happens.
3. Data in Main Memory
Whenever CPU needs data first it will check in L1 cache if data is not there in L1 which means then there is a miss, then CPU goes to L2 cache to find the data, and if the data is not present there is a miss.
Then it checks the main memory , if the data is present in main memory then we got it .This is the way search and retireval happens.
4. Data in Disk
Whenever CPU needs data first it will check in L1 cache if data is not there in L1 which means then there is a miss, then CPU goes to L2 cache to find the data, and if the data is not present there is a miss.
Then it checks the main memory , if the data is not present in main memory then it goes to find the data in Disk. and then it gets the data from the disk. This is the way search and retireval happens.
Thanks, I hope it clarifies. Let me know if there is any concern
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.