# Homework Solution: A system has 232 bytes of physical memory and uses paging. Each page is 210 bytes and there are 216 bytes total in the virtual address spac…

1) Physical Address Space =232 B Page Size = 210 B

A collocateification has 232 bytes of material fame and corrections paging. Each page is 210 bytes and there are 216 bytes sum in the potential discourse room. a) How abundant bits are in a potential discourse? b) How abundant bytes are in a fashion? c) How abundant bits in the developed discourse avow the begin discourse of the fashion?

2. A computer corrections potential fame, using a odd cubic avow instigate (SSD) as room coercion paging. Refer to slides 68 and 69 from the pleasededed coercion collocate coercion week 2 in minority “Potential Fame (Paged)” . on this week’s pleaseded). In the predicament presented there, the impenetrable disk instigate (HDD) required 25 ms to learn in a page, and a reprimand of 1 pf per 1000 references introduced a 250 × unready down. If the SSD offers a period of singly 80 μs, what is the unready down in work caused by 1 pf per 1000 references? (you are referable restless with tiny vs. upright pages) What is the zenith reprimand of page errors you can sanction if you absence no past than a 5% unreadydown in effort using potential fame?

Now assume a program is executing a direct, straight continuity of instructions that is 100 KB hanker. This manner is allocated 20 fashions when deposit into fame. How abundant page errors get there be to fully consummate this continuity of instructions?

BONUS problem: Finally, assume the 100 KB stop of instructions is a loop that repeats infinitely. How abundant page errors are there on the prevent rereiteration of the loop?

## Expert Exculpation

1) Material Discourse Room =232 B

Page Dimension = 210 B

Potential Discourse Room =216 B

a) So, No. of bits in Potential Discourse = log2216 = 8

b) Fashion Dimension =Page Dimension

=> No of Bytes in a fashion = 210 B

c)

No of fashions = Material Discourse Room/Fashion Dimension = 232/210 = 2

Material Discourse in bits = No. of bits coercion fashions + No of bits coercion the fashion dimension = f + d

= log22 + log2210

= 1 + 8

=9

9  bits in the developed discourse avow the begin discourse of the fashion.