Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider a memory system with the following parameters: - Translation Lookaside

ID: 3874046 • Letter: C

Question

Consider a memory system with the following parameters:
- Translation Lookaside Buffer has 256 entires and it is 2-way set associative. - Page size is 4 KB.
- The tag bits for TLB is 21 bits.
- Physical memory is 128GB.

a) What is the virtual address size (in bits)?
b) What is the physical address size (in bits)?
c) How many physical pages are there?
d) What is the size of virtual memory in TB?
e) If the hit rate is 99% and hit time is 1 cycle to TLB, what is the average memory access time to the TBL if its miss penalty is 20 cycles when there is no page fault?
f) Assume that 0.02% of the time, there is a page fault, and the disk latency is 10,000 cycles. Then, what is the average access time for TLB?

Explanation / Answer

(a) Virtual address size=Page size*Page count*Lines

Page address size=12 =>4KB=2^2*2^10=2^12

Page count=tag field identifies the page=256

=2^8

Lines=2^21

Virtual memory size= 2^12 *2^8 * 2^21

=2^41

Virtual address size = 41 Bits

=504 Bit

(b) Physical address size=37

Physical memory=128GB

=2^7*2^30

=2^37

(c)Physical page=Physical memory size/page size

= 2^37/2^12

=2^25

(d) Virtual memory size= 2^12 *2^8 * 2^21

=2^41

= 2TB

(e) AMAT=[x(c+m)]+[(1-h)(c+m+m)]

where x is TLB hit ratio

c is TLB access time

So AMAT =[0.99(1+20)] +[0.01(1+20+20)]

=20.79+0.41

=21.2

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote