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)?

  1. A. 125 ns and 95 ns
  2. B. 140 ns and 95 ns
  3. C. 140 ns and 100 ns
  4. 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

Exams that ask this topic