retagged by
26,376 views

6 Answers

Best answer
57 57 votes

Swap space( on the disk) is used by Operating System to store the pages that are swapped out of the memory due to less memory available on the disk. Interestingly the Android Operating System, which is Linux kernel under the hood has the swapping disabled and has its own way of handling "low memory" situations.

Pages are basically Process data, hence the answer is (B).

edited by
16 16 votes

Swap space is a portion of a hard disk drive (HDD) that is used for virtual memory. Virtual memory is the use of space on a HDD to simulate additional main memory. Memory is used to hold portions of the operating system, programs, and data that are currently in use.

Show answer is B because of process save program, data in virtual memory.

10 10 votes

Swap space in Linux is used 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.

5 5 votes

Swapping is now combine with virtual memory technique. In fact some system now use paging and swapping interchangeably.
Virtual memory uses disk space as an extension of main memory. Since disk access is much slower than memory access, using swap space significantly decreases system performance. The main goal of swap space is to provide best throughput for the virtual memory system.
So, A,C,D ruled out
Ans B) better option than other three

0 0 votes

Swap space is a dedicated area on a secondary storage drive, such as a hard disk or solid-state drive, that the operating system uses as a temporary extension of physical RAM.

When the physical memory of a computer becomes fully saturated with active tasks, the memory management subsystem moves inactive memory pages out of RAM and writes them into this disk storage area.

This process of moving memory blocks between RAM and disk is called swapping or paging, and it frees up high-speed physical memory slots so the CPU can continue running active processes without crashing.

The information stored within this designated disk area consists directly of process memory contents, including stack allocations, heap variables, and execution states belonging to running or suspended programs.

Saving temporary HTML pages is a function handled by web browsers via disk caching, storing the super-block is a core file system management task, and storing device drivers keeps executable code on the main boot partition.

Because swap space specifically functions to back up and extend the active runtime memory allocations of executing programs, its primary role is holding active process memory states.

Correct Option: B

Answer:
Position:
Show:

Related questions

32 32 votes
3 answers 3 answers
15.3k
15.3k views
gatecse asked Sep 21, 2014
15,257 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...
197 197 votes
9 answers 9 answers
76.9k
76.9k views
Kathleen asked Sep 22, 2014
76,918 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
86 86 votes
17 answers 17 answers
127k
127k views
Kathleen asked Sep 22, 2014
127,046 views
Consider a disk drive with the following specifications:$16$ surfaces, $512$ tracks/surface, $512$ sectors/track, $1$ KB/sector, rotation speed $3000$ rpm. The disk is op...
48 48 votes
3 answers 3 answers
49.6k
49.6k views
Kathleen asked Sep 22, 2014
49,635 views
Increasing the RAM of a computer typically improves performance because:Virtual Memory increasesLarger RAMs are fasterFewer page faults occurFewer segmentation faults occ...