SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Swapping | Computer Science
Swapping is the process of exchanging pages, segment of memory and values
to another location. It occurs in three types.
 A process can be swapped temporarily out of memory to a backing store, and
then brought back into memory for continued execution, here backing store is
the fast disk large enough to accommodate copies of all memory images for all
users and must provide direct access to these memory images.
The first UNIX system kernels monitored the amount of free memory
constantly. When it became less than a fixed threshold, they performed some
swapping out. This activity consisted of copying the entire address space of a
process to disk. Conversely, when the scheduling algorithm selected a swapped
– out process, the whole process was swapped in from disk.
Swapping in OS
Swapping in Linux
 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.
 The swap cache is crucial to avoid race conditions among processes
trying to access pages that are being swapped. The swap cache collects
shared page frames that have been copied to swap areas. It does not exist
as a data structure on its own; instead, the pages in the regular page
cache are considered to be in swap cache if certain fields are set.
Swap area
Swap cache
This was just a summary on Swapping. For more detailed information on
this topic, please type the link given below or copy it from the description
of this PPT and open it in a new browser window.
www.transtutors.com/homework-help/computer-science/operating-system/memory-
management/swapping/

More Related Content

PPTX
Memory Management in OS
PPTX
PPT
Builder pattern
PPTX
Digital Electronics - Counters
PPT
Uml class-diagram
PPTX
computer Architecture
PPTX
Different types of research ppt
Memory Management in OS
Builder pattern
Digital Electronics - Counters
Uml class-diagram
computer Architecture
Different types of research ppt

What's hot (20)

PPS
Virtual memory
PPT
Os Threads
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PPT
Os Swapping, Paging, Segmentation and Virtual Memory
PPTX
Demand paging
PPTX
Computer architecture virtual memory
PPTX
Multithreading models.ppt
PPTX
Page replacement algorithms
PPTX
Semophores and it's types
PPTX
Deadlock ppt
PPT
Memory Management in OS
PPT
Memory management
PPTX
Semaphore
PPT
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
PDF
Operating systems system structures
PDF
Multithreading
PPTX
Memory management ppt
PPTX
Superscalar & superpipeline processor
PPTX
Process management os concept
PPT
Disk scheduling
Virtual memory
Os Threads
INTER PROCESS COMMUNICATION (IPC).pptx
Os Swapping, Paging, Segmentation and Virtual Memory
Demand paging
Computer architecture virtual memory
Multithreading models.ppt
Page replacement algorithms
Semophores and it's types
Deadlock ppt
Memory Management in OS
Memory management
Semaphore
OPERATING SYSTEM SERVICES, OPERATING SYSTEM STRUCTURES
Operating systems system structures
Multithreading
Memory management ppt
Superscalar & superpipeline processor
Process management os concept
Disk scheduling
Ad

Similar to Swapping | Computer Science (20)

PPTX
unit5_os (1).pptx
DOCX
Virtual memory pre-final-formatting
PDF
Linux%20 memory%20management
PPTX
Os unit 2
PPTX
UNIT-2 OS.pptx
PPTX
Paging +Algorithem+Segmentation+memory management
PPTX
Swap Administration in linux platform
PPTX
Swap project
DOCX
virtual memory
PPT
Memory management ppt coa
DOCX
virtual memory - Computer operating system
PPT
Chap 4
PDF
Virtual+Cache_Memory Operation System...
PDF
Lecture notes for Memory, Scheduler, Boot Sequence
PPT
Memory comp
PPTX
Memory management Assignment Help
DOCX
Virtualmemorypre final-formatting-161019022904
DOCX
VirutualMemory.docx
DOCX
Virtual memoryfinal
DOCX
Virtualmemoryfinal 161019175858
unit5_os (1).pptx
Virtual memory pre-final-formatting
Linux%20 memory%20management
Os unit 2
UNIT-2 OS.pptx
Paging +Algorithem+Segmentation+memory management
Swap Administration in linux platform
Swap project
virtual memory
Memory management ppt coa
virtual memory - Computer operating system
Chap 4
Virtual+Cache_Memory Operation System...
Lecture notes for Memory, Scheduler, Boot Sequence
Memory comp
Memory management Assignment Help
Virtualmemorypre final-formatting-161019022904
VirutualMemory.docx
Virtual memoryfinal
Virtualmemoryfinal 161019175858
Ad

More from Transweb Global Inc (20)

PPTX
Resultant of Coplanar Parallel Forces | Mechanical Engineering
PPTX
The Centroidal Axis | Mechanical Engineering
PPTX
System Of Coplanar Forces | Mechanical Engineering
PPTX
Resultant of Two Unlike and Unequal Parallel Forces | Mechanical Engineering
PPTX
SFD Load Diagram Examples | Mechanical Engineering
PPTX
Principle Of Transmissibility | Mechanical Engineering
PPTX
Law Of Polygon | Mechanical Engineering
PPTX
Similarities between Leadership and Management | Management
PPTX
Ranked Positional Weight Method | Management
PPTX
Business Intelligence And Business Analytics | Management
PPTX
ABC Cost Hierarchy | Management
PPTX
Speed To Market | Management
PPTX
Managerial Hubris | Finance
PPTX
Conductance | Electrical Engineering
PPTX
Advantages and Disadvantages of Digital Electronics | Electrical Engineering
PPTX
Stabilization Of Operating Point | Electrical Engineering
PPTX
Offer Curves | Economics
PPTX
Fixed Exchange Rate | Economics
PPTX
Computer Architecture | Computer Science
PPTX
Compilers Computer Program | Computer Science
Resultant of Coplanar Parallel Forces | Mechanical Engineering
The Centroidal Axis | Mechanical Engineering
System Of Coplanar Forces | Mechanical Engineering
Resultant of Two Unlike and Unequal Parallel Forces | Mechanical Engineering
SFD Load Diagram Examples | Mechanical Engineering
Principle Of Transmissibility | Mechanical Engineering
Law Of Polygon | Mechanical Engineering
Similarities between Leadership and Management | Management
Ranked Positional Weight Method | Management
Business Intelligence And Business Analytics | Management
ABC Cost Hierarchy | Management
Speed To Market | Management
Managerial Hubris | Finance
Conductance | Electrical Engineering
Advantages and Disadvantages of Digital Electronics | Electrical Engineering
Stabilization Of Operating Point | Electrical Engineering
Offer Curves | Economics
Fixed Exchange Rate | Economics
Computer Architecture | Computer Science
Compilers Computer Program | Computer Science

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Complications of Minimal Access Surgery at WLH
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
FourierSeries-QuestionsWithAnswers(Part-A).pdf
TR - Agricultural Crops Production NC III.pdf
Insiders guide to clinical Medicine.pdf
Complications of Minimal Access Surgery at WLH
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
Anesthesia in Laparoscopic Surgery in India
human mycosis Human fungal infections are called human mycosis..pptx
Renaissance Architecture: A Journey from Faith to Humanism
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Basic Mud Logging Guide for educational purpose
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx

Swapping | Computer Science

  • 2. Swapping is the process of exchanging pages, segment of memory and values to another location. It occurs in three types.  A process can be swapped temporarily out of memory to a backing store, and then brought back into memory for continued execution, here backing store is the fast disk large enough to accommodate copies of all memory images for all users and must provide direct access to these memory images. The first UNIX system kernels monitored the amount of free memory constantly. When it became less than a fixed threshold, they performed some swapping out. This activity consisted of copying the entire address space of a process to disk. Conversely, when the scheduling algorithm selected a swapped – out process, the whole process was swapped in from disk.
  • 5.  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.  The swap cache is crucial to avoid race conditions among processes trying to access pages that are being swapped. The swap cache collects shared page frames that have been copied to swap areas. It does not exist as a data structure on its own; instead, the pages in the regular page cache are considered to be in swap cache if certain fields are set.
  • 8. This was just a summary on Swapping. For more detailed information on this topic, please type the link given below or copy it from the description of this PPT and open it in a new browser window. www.transtutors.com/homework-help/computer-science/operating-system/memory- management/swapping/