in Operating System edited by
12,517 views
37 votes
37 votes

Where does the swap space reside?

  1. RAM
  2. Disk
  3. ROM
  4. On-chip cache
in Operating System edited by
12.5k views

1 comment

As per Galvin,

swap space resides in DISK

direct question from GALVIN
3
3

3 Answers

63 votes
63 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.

edited by

3 Comments

if entire page is swapped, that is done by swapper, but if only one-one page swapped (like FIFO, LRU) that is done by pager
2
2
What is the difference between entire page or  one-one page?
4
4
is backing store same as swap space ?
0
0
18 votes
18 votes
ans is B.

generally swap space is 2*RAM, not compulsorily always but generally. inactive pages of memory are moved to swap memory.
13 votes
13 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.

 

Answer:

Related questions