Professional Documents
Culture Documents
Unit 12 - Week 11: Memory Sub-System Organization
Unit 12 - Week 11: Memory Sub-System Organization
reviewer2@nptel.iitm.ac.in ▼
Course
outline
Assignment for Week 11
The due date for submitting this assignment has passed. Due on 2018-04-09, 23:59 IST.
How to access
the portal Submitted assignment
3) Locality of reference implies that the page reference being made by a process : 1 point
Week 6:
Organization and
Optimization of will always be to the page used in the previous page reference
Micro-
is likely to be one of the pages used in the last few page references
programmed
Controlled will always be one of the pages existing in memory
Funded by
5) A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a 2 points
Week 10: Memory
Translation Look-aside Buffer (TLB) which can hold a total of 128 page table entries and is 4-way set
Sub-system
Organization associative. The minimum size of the TLB tag is:
7) A system uses 3 page frames for storing process pages in main memory. It uses the Least 2 points
Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is
the total number of page faults that will occur while processing the page reference string: 4, 7, 6, 1, 7, 6, 1,
2, 7, 2
8) A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to 2 points
begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100
pages but now in the reverse order. How many page faults will occur?
196
192
197
195
9) Consider a main memory with five page frames and the following sequence of page references: 4 points
3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement
policies First-In-First Out (FIFO) and Least Recently Used (LRU)?
11)Consider a 2-way set associative cache memory with 4 sets and total 8 cache blocks (0-7) and 3 points
a main memory with 128 blocks (0-127). What memory blocks will be present in the cache after the following
sequence of memory block references if LRU policy is used for cache block replacement. Assuming that
initially the cache did not have any memory block from the current job? 0 5 3 9 7 0 16 55
0 3 5 7 16 55
0 3 5 7 9 16 55
0 5 7 9 16 55
3 5 7 9 16 55
12)Consider a computer system with ten physical page frames. The system is provided with an 3 points
access sequence a1, a2, …, a20, a1, a2, …, a20), where each ai number. The difference in the number of
page faults between the last-in-first-out page replacement policy and the optimal page replacement policy is
__________
13)Consider a process executing on an operating system that uses demand paging. The average 3 points
time for a memory access in the system is M units if the corresponding memory page is available in memory,
and D units if the memory access causes a page fault. It has been experimentally measured that the
average time taken for a memory access in the process is X units. Which one of the following is the correct
expression for the page fault rate experienced by the process?
(D – M) / (X – M)
(X – M) / (D – M)
(D – X) / (D – M)
(X – M) / (D – X)
14)A cache memory needs an access time of 30 ns and main memory 150 ns, what is the average 2 points
access time of CPU (assume hit ratio = 80%)?
60 ns
30 ns
150 ns
70 ns