Swap Space | Operating System - Computer Science Engineering (CSE) PDF Download

Swap Space in Operating System

A computer has sufficient amount of physical memory but most of times we need more so we swap some memory on disk. Swap space is a space on hard disk which is a substitute of physical memory. It is used as virtual memory which contains process memory image. Whenever our computer run short of physical memory it uses it’s virtual memory and stores information in memory on disk. Swap space helps the computer’s operating system in pretending that it have more RAM than it actually has. It is also called as swap file. This interchange of data between virtual memory and real memory is called as swapping and space on disk as “swap space”.
Virtual memory is a combination of RAM and disk space that running processes can use. Swap space is the portion of virtual memory that is on the hard disk, used when RAM is full.

Swap space can be useful to computer in various ways:

  • It can be used as a single contiguous memory which reduces i/o operations to read or write a file.
  • Applications which are not used or are used less can be kept in swap file.
  • Having sufficient swap file helps the system keep some physical memory free all the time.
  • The space in physical memory which has been freed due to swap space can be used by OS for some other important tasks.

In operating systems such as Windows, Linux, etc systems provide a certain amount of swap space by default which can be changed by users according to their needs. If you don’t want to use virtual memory you can easily disable it all together but in case if you run out of memory then kernel will kill some of the processes in order to create a sufficient amount of space in physical memory. So it totally depends upon user whether he wants to use swap space or not.

The document Swap Space | Operating System - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Operating System.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
10 videos|99 docs|33 tests

Top Courses for Computer Science Engineering (CSE)

10 videos|99 docs|33 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

ppt

,

video lectures

,

MCQs

,

past year papers

,

Swap Space | Operating System - Computer Science Engineering (CSE)

,

Swap Space | Operating System - Computer Science Engineering (CSE)

,

Summary

,

Swap Space | Operating System - Computer Science Engineering (CSE)

,

Free

,

pdf

,

mock tests for examination

,

Previous Year Questions with Solutions

,

practice quizzes

,

Exam

,

Semester Notes

,

Important questions

,

Extra Questions

,

Sample Paper

,

Viva Questions

,

Objective type Questions

,

shortcuts and tricks

,

study material

;