What happens when a process accesses a page whose valid bit is 0 but whose address is legal?
Q2
Memory access 100 ns, page-fault service time 8 ms, fault rate p = 0.001. What is the effective access time, approximately?
Q3
With a 100 ns memory access and 8 ms page-fault time, what page-fault rate keeps the slowdown under 10 %?
Q4
What is the difference between a minor and a major page fault?
Q5
After fork() with copy-on-write, when is a page actually copied?
Q6
A 4-page process forks. The child writes page 1, the parent writes page 1, the parent writes page 2, the child writes page 3. How many pages are copied?
Q7
Reference string 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 with 3 frames. How many faults does FIFO produce?
Q8
Same reference string, 3 frames. How many faults does OPT produce?
Q9
Why is the optimal (OPT) algorithm not used in real operating systems?
Q10
Frames contain pages 7, 0, 1 (loaded in that order). The next reference is 2, and the recent references were … 7, 0, 1, 0, 7. Which page does LRU evict?
Q11
Why is exact LRU rarely implemented in hardware?
Q12
In the clock (second-chance) algorithm, the hand points to a page with reference bit 1. What happens?
Q13
In the enhanced clock algorithm, which class of page is the best victim?
Q14
With FIFO, the string 1 2 3 4 1 2 5 1 2 3 4 5 causes 9 faults with 3 frames. How many with 4 frames?
Q15
Why can LRU never exhibit Belady's anomaly?
Q16
62 free frames; process P1 has 10 pages and P2 has 127 pages. With proportional allocation, approximately how many frames does P1 get?
Q17
What is thrashing?
Q18
During thrashing, a naive long-term scheduler sees low CPU utilization. What does it do, and why is that harmful?
Q19
Δ = 4. The last four references of a process are 4, 5, 6, 7 and the last four of another are 13, 14, 15, 16. Only 7 frames are available. What does the working-set policy do?
Q20
What does page-fault frequency (PFF) control do when a process's fault rate is above the upper threshold?
Q21
Why do many AI inference engines mmap model files instead of reading them into memory?
Q22
What is the advantage of zram/zswap (compressed memory) over swapping to disk?
Q23
During pre-copy live migration of a VM, which page-table information tells the hypervisor which pages must be re-sent in the next round?
Page-fault service time is 100 µs (NVMe SSD) and memory access is 100 ns. With p = 0.001, what is the effective access time, approximately?
Q26
Linux uses global page replacement. What is a drawback for a latency-sensitive service sharing the machine with a batch job, and how do containers mitigate it?
Q27
Why do serverless platforms use memory snapshots restored with demand paging to reduce cold starts?
Q28Short answer
Simulate LRU and clock (second chance; new pages get reference bit 1, the hand advances past a newly loaded page) on the reference string 7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1 with 3 frames. Give the number of faults for each, compare with FIFO (15) and OPT (9), and explain the ranking.
Q29Short answer
EdgeCampus migrates a user's AR service (a VM with 4 GB of memory) between two edge servers as the user walks across campus. The link provides 1 GB/s, and the service dirties memory at 200 MB/s. Using pre-copy, compute the duration of each round until less than 50 MB remains, the total migration time and the downtime. What happens if the dirty rate is 1.2 GB/s?
Q30Short answer
A server's CPU utilization drops from 70 % to 8 % after the number of worker processes is increased from 8 to 24, while disk utilization rises to 100 % and response times increase 50×. Diagnose the problem, name two Linux metrics or commands that would confirm it, and propose two fixes.