586 views
1 votes
1 votes
Swap space is some space in virtual memory. but why it called as swap space?

2 Answers

Best answer
0 votes
0 votes

swap space is not part of virtual memory. First of all virtual memory is "virtual"- it is not physically existing. It is like a view through which CPU sees actual physical memory. 

Now virtual to physical memory mapping can be done in many ways. Swap space is not a strict necessity. If it is there, it works as an extension to RAM- but still page access is slower whenever a page in swap is accessed. 

https://www.centos.org/docs/5/html/5.2/Deployment_Guide/s1-swap-what-is.html

selected by
0 votes
0 votes
Swap space is the space on the disk reserved for the full virtual memory space of a process.

When Operating System creates a process, it also creates (or reserves) a space on disk for all the pages of that process.

Each process contains its own swap space in the disk.

It is called swap space because it is the space(or place) in the disk from where the pages are exchanged(swapped) with main memory, for any process.

Related questions

0 votes
0 votes
1 answer
1
Doraemon asked Jun 5, 2019
370 views
What is swap space in secondary memory?
0 votes
0 votes
2 answers
3
KISHALAY DAS asked Nov 12, 2016
2,470 views
2 votes
2 votes
3 answers
4
goku asked Sep 14, 2015
16,863 views
The minimum number of temporary variables needed to swap the contents of two variables is:(a) 1     (b) 2(c) 3     (d) 0