The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+19 votes

Where does the swap space reside?

  1. RAM
  2. Disk
  3. ROM
  4. On-chip cache
asked in Operating System by Veteran (68.8k points)
edited by | 1.8k views

4 Answers

+28 votes
Best answer

Option B is correct.

Swap space is the area on a hard disk which is part of the Virtual Memory of your machine, which is a combination of accessible physical memory (RAM) and the swap space. Swap space temporarily holds memory pages that are inactive. Swap space is used when your system decides that it needs physical memory for active processes and there is insufficient unused physical memory available. If the system happens to need more memory resources or space, inactive pages in physical memory are then moved to the swap space therefore freeing up that physical memory for other uses. Note that the access time for swap is slower therefore do not consider it to be a complete replacement for the physical memory. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap files.

answered by Veteran (39.8k points)
selected by
+13 votes
ans is B.

generally swap space is 2*RAM, not compulsorily always but generally. inactive pages of memory are moved to swap memory.
answered by Boss (8.4k points)
+8 votes

Swap space is an area on disk that temporarily holds a process memory image. When physical memory demand is sufficiently low, process memory images are brought back into physical memory from the swap area. Having sufficient swap space enables the system to keep some physical memory free at all times.
Therefore B.


answered by Active (1k points)
–2 votes
Ans: Hard Disk
answered by Boss (7.4k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

32,503 questions
39,217 answers
36,599 users