CS FundamentalsHardGATE CS (PYQ pattern)
A 32-bit machine has 512 MB of RAM, of which the resident kernel permanently uses 128 MB, and a 1 GB swap partition. The top 1 GB of every process's 4 GB virtual address space is reserved for the kernel. The OS never overcommits: every virtual page a process allocates must be backed at allocation time by a free RAM frame or a free swap slot. With no other process running, what is the largest amount of memory one process can allocate?
- A. 1408 MB
- B. 3 GB
- C. 1536 MB
- D. 4 GB
Correct answer: A. 1408 MB
Two limits apply and the smaller wins. Address space: 4 GB - 1 GB kernel = 3 GB of user addresses. Backing store: (512 - 128) MB of RAM + 1024 MB of swap = 1408 MB. Since every allocated page needs a frame or a slot, the process can allocate at most min(3 GB, 1408 MB) = 1408 MB. 1536 MB forgets the kernel's RAM; 3 GB and 4 GB ignore the backing limit.
More Operating Systems questions
- On a single-CPU system processes arrive at 3 per second in steady state, on average 6 processes sit in the ready queue (not counting the…
- Stride scheduling with stride = 6000 / tickets: A has 100 tickets, B 200 and C 300. All passes start at 0; each quantum the process with…
- A CFS-like scheduler picks the runnable task with the smallest virtual runtime and runs it for a 4 ms slice, then adds 4 x 1024 / weight…
- Three tasks share two resources under the priority ceiling protocol (priorities t1 > t2 > t3). t3 has a 4 ms critical section on R1 and a…
- Rate-monotonic tasks (C, T = D, worst-case blocking B): t1 (2, 5, 2), t2 (2, 8, 2), t3 (4, 12, 0). Response time R = C + B + sum over…
- Eight independent jobs with lengths 7, 6, 5, 5, 4, 3, 3, 2 are scheduled on 3 identical processors by LPT (longest job first onto the…