CS439: Principles of Computer Systems
Discussion Section 6 Problem Set
Due in Section on Friday, March 7, 2025
The problem set must be completed before section and brought to section. To
ensure that your problem set is turned in correctly and that you receive credit
for discussion section, you must follow these guidelines exactly.
-
Pages have (at least) the following three bits associated with them:
the resident bit, the clock/reference bit, and the dirty bit.
Describe each bit and its use.
-
What is the difference between global and local page replacement
policies? Name a disadvantage of each.
-
What is the TLB (Translation Lookaside Buffer)? What issue does it try to solve?
how does it solve that issue?
-
Consider a program with seven virtual pages numbered from 0 to 6 references its
pages in the order:
0 1 3 6 2 4 5 2 5 0 3 1 2 5 4 1 0
Using clock page replacement algorithm with 4 frames and assuming demand paging,
compute the number of page faults and show the state of frames (pages in frames
and value of clock bit) after each page access.
-
Consider a two-level paging system with 256 pages and a page size
of 256 bytes. The system has 1024 bytes of physical memory and is
byte addressable. Assume the first-level page table holds 8
entries.
- How many bits are in a physical address?
- How many bits of the virtual address represent the
first-level page table?
- How many bits of the virtual address represent the second-level page table?
- How many bits are in the complete virtual address?
- What size are the page frames?
|