CS FundamentalsHardGATE CS (PYQ pattern)
A thread runs on node 0 of a 4-node NUMA machine. Access latency is 80 ns to node 0, 140 ns to nodes 1 and 2 (one hop) and 200 ns to node 3 (two hops). With first-touch placement 75% of its accesses go to node 0 and the rest are spread evenly over the other three nodes; with page interleaving accesses are spread evenly over all four nodes. What are the average latencies (interleaved, first-touch)?
- A. 125 ns and 95 ns
- B. 140 ns and 95 ns
- C. 140 ns and 100 ns
- D. 155 ns and 100 ns
Correct answer: C. 140 ns and 100 ns
Interleaved: (80 + 140 + 140 + 200) / 4 = 140 ns. First-touch: 0.75 x 80 + 0.25 x (140 + 140 + 200) / 3 = 60 + 40 = 100 ns. Treating every remote access as 140 ns gives 125 and 95.
More Operating Systems questions
- A physically indexed 1 MB, 8-way set-associative L2 cache with 64-byte lines sits under a system with 4 KB pages and 4 GB of RAM. How many…
- A slab allocator builds each slab from two contiguous 4 KB pages. A slab has a 16-byte header and holds as many 200-byte objects as fit…
- LRU-2 replacement: on a fault the victim is the resident page whose SECOND most recent reference is oldest (a page referenced only once…
- The aging algorithm keeps an 8-bit counter per page (initially 0). At every clock tick each counter is shifted right by one bit and the…
- A single resource has 9 units and three processes have maximum claims 6, 5 and 4. Consider every possible current allocation (a0, a1, a2)…
- An ext3-style file system appends one data block to a file; the update also modifies the inode and the block bitmap. In ORDERED journaling…