• edited by
18,845 views
49 49 votes

Where does the swap space reside?

  1. RAM
  2. Disk
  3. ROM
  4. On-chip cache

3 Answers

Best answer
74 74 votes

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
19 19 votes
ans is B.

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

Related questions

84 84 votes
9 answers 9 answers
40.9k
40.9k views
Kathleen asked Sep 14, 2014
40,915 views
Which of the following does not interrupt a running process?A deviceTimerScheduler processPower failure
57 57 votes
2 answers 2 answers
30.2k
30.2k views
Kathleen asked Sep 14, 2014
30,167 views
Which of the following statements is false?Virtual memory implements the translation of a program's address space into physical memory address spaceVirtual memory allows ...
83 83 votes
7 answers 7 answers
86.1k
86.1k views
Kathleen asked Sep 14, 2014
86,093 views
Consider a machine with $64$ MB physical memory and a $32$-bit virtual address space. If the page size is $4$ KB, what is the approximate size of the page table?$\text{16...
39 39 votes
3 answers 3 answers
15.2k
15.2k views
Kathleen asked Sep 14, 2014
15,163 views
Which of the following requires a device driver?RegisterCacheMain memoryDisk