Docsity

Practice Homework on Virtual Memory | CS 1541, Assignments of Computer Science

Toggle sidebar
bg1
Practice homework on virtual memory.
Question 1: Do Questions 7.32 from the textbook
Question 2: Do Questions 7.33 from the textbook
Question 3: Assume a 16 pages virtual address space, where each page contains
8 words, and a physical memory which consists of 64 words.
(a) Starting with a page table in which all valid bits are reset to zero, show
the content of the page table (only the valid bit and the physical page
number of each entry) after the following five memory references. Assume
that the first page brought into memory is put in physical page 0, the
second is put into physical page 1, ... and so on.
1100101
1010011
1100110
0110011
1101101
valid Physical page number
(b)Assuming that the memory system has a 4-entry, direct-mapped TLB, show the
content of the TLB after the above five memory references
tag valid Physical page number
1
pf2

Partial preview of the text

Download Practice Homework on Virtual Memory | CS 1541 and more Assignments Computer Science in PDF only on Docsity!

Practice homework on virtual memory.

Question 1: Do Questions 7.32 from the textbook

Question 2: Do Questions 7.33 from the textbook

Question 3: Assume a 16 pages virtual address space, where each page contains

8 words, and a physical memory which consists of 64 words. (a) Starting with a page table in which all valid bits are reset to zero, show the content of the page table (only the valid bit and the physical page number of each entry) after the following five memory references. Assume that the first page brought into memory is put in physical page 0, the second is put into physical page 1, ... and so on. 1100101 1010011 1100110 0110011 1101101 valid Physical page number

(b)Assuming that the memory system has a 4-entry, direct-mapped TLB, show the

content of the TLB after the above five memory references tag valid Physical page number 1

(c)Assume that at a given point during execution, the page table contains the following: Valid bit Physical page number 1 010 0 1 111 0 1 110 0 1 011 1 001 0 0 0 0 0 0 0 0 And assume that the TLB is fully associative and contains the following: tag valid Physical page number 0010 1 111 0 0 0111 1 001 For each of the following virtual memory references indicate if it results in a TLB hit or miss, and if it causes a page fault or not. For the references that are TLB hits, show the physical address resulting from the address translation. 0010111 0111110 0110000 1000000 2