CS FundamentalsHardTCS NQT · Infosys pattern
A TLB has a hit ratio of 90%. A TLB access takes 10 ns and a main-memory access takes 100 ns. On a TLB hit, the data is fetched directly after translation (10 + 100 ns); on a miss, the page table (in memory) is consulted first and then the data is fetched (10 + 100 + 100 ns). What is the effective memory access time?
- A. 110 ns
- B. 201 ns
- C. 99 ns
- D. 120 ns
Correct answer: D. 120 ns
Hit time = 10 + 100 = 110 ns, with probability 0.9. Miss time = 10 + 100 + 100 = 210 ns, with probability 0.1. EMAT = 0.9 × 110 + 0.1 × 210 = 99 + 21 = 120 ns.
More Operating Systems questions
- A TLB has a hit ratio of 80%. TLB lookup takes 20 ns; a memory access (for the page table on a miss, or for data) takes 100 ns each. On a…
- Segmentation divides a process's address space into logical units (code, stack, heap) of varying size, unlike paging's fixed-size frames…
- In a segmentation scheme with segment table entries (base, limit), a process issues a logical address (segment 2, offset 5000). The…
- A system uses a two-level page table: a 10-bit outer index, a 10-bit inner index, and a 12-bit offset, for a 32-bit virtual address. What…
- A 36-bit virtual address space uses 4 KB pages and single-level page table entries of 8 bytes each. What is the total size of the page…
- An inverted page table has one entry per physical frame (not per virtual page), shared across all processes, each entry tagged with the…