GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 21

Purpose of swap space

Operating Systems · Virtual Memory & Paging · Full GATE CSE 2005 paper

GATE 2005, Q21 1 mark · MCQ
Report issue

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