CS FundamentalsEasyGATE CS (PYQ pattern)
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 page colours are there, and how many physical frames does each colour have?
- A. 16 colours, 65,536 frames each
- B. 32 colours, 32,768 frames each
- C. 64 colours, 16,384 frames each
- D. 32 colours, 16,384 frames each
Correct answer: B. 32 colours, 32,768 frames each
Cache size / (associativity x page size) = 1 MB / (8 x 4 KB) = 32 colours. 4 GB has 2^20 frames, so each colour has 2^20 / 32 = 32,768.
More Operating Systems questions
- 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…
- A RAID 0 array has 5 disks and a chunk size of 4 blocks (chunk k is on disk k mod 5, as the (k div 5)-th chunk on that disk). On which…