GATE / CS ARCHIVE

SIMILAR QUESTIONS / OPERATING SYSTEMS

Locate swap space backing storage

2 questions solved the same way, newest first. Back to Operating Systems

How these are solved

Both identify disk swap space as backing storage for evicted process data/pages. This is a direct concept-recognition question, not timing or page replacement.

1 mark · MCQ
Report issue

Purpose of swap space

Virtual Memory & Paging

Question 21, GATE 2005: What is disk swap space for? A temporary HTML; B process data; C filesystem superblock; D device drivers.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Swap space stores process memory contents that have been evicted from RAM and may later be paged back in. Thus saving process data, B, rather than caching HTML pages or storing filesystem superblocks.

A process may have memory pages that cannot all remain in physical RAM. Swap space provides backing storage for evicted process contents, allowing them to be brought back when needed. Thus B. It is distinct from a browser cache, filesystem metadata and the ordinary files holding drivers, even though all may reside on the same physical disk.

Original paper, page 3

1 mark · MCQ
Report issue

Location of swap space

Virtual Memory & Paging

Question 1.20, GATE 2001: Where does conventional swap space reside: RAM, disk, ROM, or on-chip cache?
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step 1: Swapping moves memory contents out of RAM so that physical frames become available for other uses. The displaced contents must survive while those RAM frames are reused.

Step 2: Conventional swap space is reserved secondary-storage space, typically a disk partition or file, so B. ROM is not a normal writable swap target; CPU cache and RAM do not provide the intended backing store. This historical answer includes modern disk-like secondary storage such as SSDs.

Original paper, page 3