Skip to content
Related Articles

Related Articles

GATE | GATE-CS-2005 | Question 21
  • Last Updated : 11 Sep, 2014
GeeksforGeeks - Summer Carnival Banner

What is the swap space in the disk used for?
(A) Saving temporary html pages
(B) Saving process data
(C) Storing the super-block
(D) Storing device drivers

Answer: (B)

Swap space in Linux is used to increase the amount of apparent memory available on the system or when the amount of physical memory (RAM) is full. If the system needs more memory resources and the RAM is full, inactive pages in memory are moved to the swap space. While swap space can help machines with a small amount of RAM, it should not be considered a replacement for more RAM. Swap space is located on hard drives, which have a slower access time than physical memory. At any rate, Linux supports swap space in two forms: as a separate disk partition or a file somewhere on your existing Linux file systems. If the system is thrashing because of lack of physical RAM and swap. Swap files are a good way to add swap on demand.

See question 2 of


This solution is contributed by Nitika Bansal

Quiz of this Question


My Personal Notes arrow_drop_up
Recommended Articles
Page :