SlideShare a Scribd company logo
P R E S E N T E D B Y :
A S H U T O S H G U P T A
S O K I N A S O R O K H A I B A M
C H I T A R A N J A N H
SWAP
ADMINISTRATION
OBJECTIVE:-
How to create and manage Linux swap space, file
based swap, partition based swap??
 To create swap space if physical memory is full.
 If needed increase the amount of swap space.
 To create swap space even if there is not available
partition, but space is available in already existing
partitions.
SWAP SPACE
 Linux divides its physical RAM (random access
memory) into chucks of memory called pages.
 Swapping is the process whereby a page of memory
is copied to the preconfigured space on the hard disk,
called swap space, to free up that page of memory.
 The combined sizes of the physical memory and the
swap space is the amount of virtual memory
available.
SWAPPING:-
 Swapping is the process whereby a page of memory
is copied to the preconfigured space on the hard disk,
called swap space, to free up that page of memory.
 If a process needs to bring a virtual page into
physical memory and there are no free physical
pages available, the operating system must make
room for this page by discarding another page from
physical memory.
SWAP TYPES:-
 Swap space can be
 a dedicated swap partition (recommended)
 a swap file
 a combination of swap partitions and swap files.
NEED OF SWAP SPACE
 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.
WHY SWAPPING:
Shortage of memory
 Efficient memory management needed
 Process may be too big for physical memory
 More active processes than physical memory can hold
Requirements of
multiprogramming
 Efficient protection scheme
 Simple way of sharing
TOPOLOGICAL DIAGRAM:-
CONFIGURING SWAP SPACE USING
DRIVE PARTITION
STEPS:-
 First check the current swap usage by using the
commands “swapon –s” or “free”.
 Create a new partition using fdisk. Set the partition’s
system id as “82” (Linux Swap / Solaris).
 Prepare the swap partition:- “mkswap <partition name>”
 Enable the swap space for use by the system:-
Temporary enable: “swapon <partition name>”
Permanently enable: “gedit /etc/fstab”
 To display current swap space:- “swapon –s”
 To disable swaping on a partition, use “swapoff
<partition name>” command.
Testing and proofs:-
CONFIGURING SWAP SPACE USING SWAP
FILE (if there is no available partition )
 Create a file and write bytes to it equalizing the amount
of swap space you wish to add,using dd command:-
“dd if=/dev/zero of=/ram1 bs=1024 count=200000”
 Prepare swap partition:- “mkswap <swapfile name>”
 Enable swap space for use by the system:-
Temporary enable: “swapon <swapfile name>”
Permanently enable: “gedit /etc/fstab”
 To display current swap space:- “swapon -s”
 To disable swaping on a partition, use “swapoff
<swapfile name>” command
TESTING AND PROOFS
Conclusion
 Managing swap space is an essential aspect of system
administration.
 Swap management is useful if you are planning to
increase RAM in near future.
 It is also useful in increasing processing speed of the
system
REFERENCES:-
 http://docstore.mik.ua/orelly/linux/run/ch06_02.h
tm
“Installation procedure ”
 https://www.kernel.org/doc/gorman/html/understa
nd/understand014.html
“definition of terminology of swap mangement”
 http://ubuntu-version-8.blogspot.in/2009/05/4-
virtual-memory-management.html
“topological diagram”
Thank you
 Ashutosh Gupta (12UEC006)
 Sokina sorokhaibam (12UEC024)
 Chitranjan H(12UCS006)

More Related Content

What's hot

Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Linaro
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
Gaurav Sharma
 
Kali linux os
Kali linux osKali linux os
Kali linux os
Samantha Lawrence
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
Vicent Selfa
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
Gaurav Mishra
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedureDhaval Kaneria
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
Rakesh Kadu
 
Ceph - A distributed storage system
Ceph - A distributed storage systemCeph - A distributed storage system
Ceph - A distributed storage system
Italo Santos
 
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDPDockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
Thomas Graf
 
Memory management in Linux
Memory management in LinuxMemory management in Linux
Memory management in Linux
Raghu Udiyar
 
Linux kernel memory allocators
Linux kernel memory allocatorsLinux kernel memory allocators
Linux kernel memory allocators
Hao-Ran Liu
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uring
ShapeBlue
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
HungWei Chiu
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
Henry Osborne
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
Papu Kumar
 
Linux architecture
Linux architectureLinux architecture
Linux architecturemcganesh
 
Backup using rsync
Backup using rsyncBackup using rsync
Backup using rsync
Gaurav Mishra
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
Md. Zahid Hossain Shoeb
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
shimosawa
 

What's hot (20)

Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
Secure Boot on ARM systems – Building a complete Chain of Trust upon existing...
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
Kali linux os
Kali linux osKali linux os
Kali linux os
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
Linux Memory Management
Linux Memory ManagementLinux Memory Management
Linux Memory Management
 
Storage Management in Linux OS.ppt
Storage Management in Linux OS.pptStorage Management in Linux OS.ppt
Storage Management in Linux OS.ppt
 
Ceph - A distributed storage system
Ceph - A distributed storage systemCeph - A distributed storage system
Ceph - A distributed storage system
 
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDPDockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
DockerCon 2017 - Cilium - Network and Application Security with BPF and XDP
 
Memory management in Linux
Memory management in LinuxMemory management in Linux
Memory management in Linux
 
Linux kernel memory allocators
Linux kernel memory allocatorsLinux kernel memory allocators
Linux kernel memory allocators
 
Boosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uringBoosting I/O Performance with KVM io_uring
Boosting I/O Performance with KVM io_uring
 
The basic concept of Linux FIleSystem
The basic concept of Linux FIleSystemThe basic concept of Linux FIleSystem
The basic concept of Linux FIleSystem
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Backup using rsync
Backup using rsyncBackup using rsync
Backup using rsync
 
Linux introduction
Linux introductionLinux introduction
Linux introduction
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 

Similar to Swap Administration in linux platform

swap process in red hat linux 7
swap process in red hat linux 7swap process in red hat linux 7
swap process in red hat linux 7
MohamedJafar5
 
Swapping | Computer Science
Swapping | Computer ScienceSwapping | Computer Science
Swapping | Computer Science
Transweb Global Inc
 
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
Popescu Iulia
 
Improving application performance through swap compression
Improving application performance through swap compression Improving application performance through swap compression
Improving application performance through swap compression
915086731
 
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...Joao Galdino Mello de Souza
 
How to Add Swap on Ubuntu
How to Add Swap on UbuntuHow to Add Swap on Ubuntu
How to Add Swap on Ubuntu
VEXXHOST Private Cloud
 
Virtual+memory.pdf for newbie learn devops
Virtual+memory.pdf for newbie learn devopsVirtual+memory.pdf for newbie learn devops
Virtual+memory.pdf for newbie learn devops
HThuBi1
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
Agnas Jasmine
 
Linux%20 memory%20management
Linux%20 memory%20managementLinux%20 memory%20management
Linux%20 memory%20management
Koteswaran Chandra Mohan
 
Hadoop Cluster With High Availability
Hadoop Cluster With High AvailabilityHadoop Cluster With High Availability
Hadoop Cluster With High Availability
Edureka!
 
HP-UX Swap and Dump Unleashed by Dusan Baljevic
HP-UX Swap and Dump Unleashed by Dusan BaljevicHP-UX Swap and Dump Unleashed by Dusan Baljevic
HP-UX Swap and Dump Unleashed by Dusan Baljevic
Circling Cycle
 
Vmfs
VmfsVmfs
Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)
Gerard Braad
 
OSSV [Open System SnapVault]
OSSV [Open System SnapVault]OSSV [Open System SnapVault]
OSSV [Open System SnapVault]
Ashwin Pawar
 
Operating System
Operating SystemOperating System
Operating System
Subhasis Dash
 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
Electronics - Embedded System
 
Faq on SnapDrive for UNIX NetApp
Faq on SnapDrive for UNIX NetAppFaq on SnapDrive for UNIX NetApp
Faq on SnapDrive for UNIX NetApp
Ashwin Pawar
 
Virtual memory pre-final-formatting
Virtual memory pre-final-formattingVirtual memory pre-final-formatting
Virtual memory pre-final-formatting
marangburu42
 
Vx vm
Vx vmVx vm

Similar to Swap Administration in linux platform (20)

swap process in red hat linux 7
swap process in red hat linux 7swap process in red hat linux 7
swap process in red hat linux 7
 
Swapping | Computer Science
Swapping | Computer ScienceSwapping | Computer Science
Swapping | Computer Science
 
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
 
Improving application performance through swap compression
Improving application performance through swap compression Improving application performance through swap compression
Improving application performance through swap compression
 
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
 
How to Add Swap on Ubuntu
How to Add Swap on UbuntuHow to Add Swap on Ubuntu
How to Add Swap on Ubuntu
 
Virtual+memory.pdf for newbie learn devops
Virtual+memory.pdf for newbie learn devopsVirtual+memory.pdf for newbie learn devops
Virtual+memory.pdf for newbie learn devops
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
 
Linux%20 memory%20management
Linux%20 memory%20managementLinux%20 memory%20management
Linux%20 memory%20management
 
Hadoop Cluster With High Availability
Hadoop Cluster With High AvailabilityHadoop Cluster With High Availability
Hadoop Cluster With High Availability
 
HP-UX Swap and Dump Unleashed by Dusan Baljevic
HP-UX Swap and Dump Unleashed by Dusan BaljevicHP-UX Swap and Dump Unleashed by Dusan Baljevic
HP-UX Swap and Dump Unleashed by Dusan Baljevic
 
Vmfs
VmfsVmfs
Vmfs
 
Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)
 
Swap
SwapSwap
Swap
 
OSSV [Open System SnapVault]
OSSV [Open System SnapVault]OSSV [Open System SnapVault]
OSSV [Open System SnapVault]
 
Operating System
Operating SystemOperating System
Operating System
 
virtual memory - Computer operating system
virtual memory - Computer operating systemvirtual memory - Computer operating system
virtual memory - Computer operating system
 
Faq on SnapDrive for UNIX NetApp
Faq on SnapDrive for UNIX NetAppFaq on SnapDrive for UNIX NetApp
Faq on SnapDrive for UNIX NetApp
 
Virtual memory pre-final-formatting
Virtual memory pre-final-formattingVirtual memory pre-final-formatting
Virtual memory pre-final-formatting
 
Vx vm
Vx vmVx vm
Vx vm
 

Recently uploaded

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 

Recently uploaded (20)

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 

Swap Administration in linux platform

  • 1. P R E S E N T E D B Y : A S H U T O S H G U P T A S O K I N A S O R O K H A I B A M C H I T A R A N J A N H SWAP ADMINISTRATION
  • 2. OBJECTIVE:- How to create and manage Linux swap space, file based swap, partition based swap??  To create swap space if physical memory is full.  If needed increase the amount of swap space.  To create swap space even if there is not available partition, but space is available in already existing partitions.
  • 3. SWAP SPACE  Linux divides its physical RAM (random access memory) into chucks of memory called pages.  Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory.  The combined sizes of the physical memory and the swap space is the amount of virtual memory available.
  • 4. SWAPPING:-  Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory.  If a process needs to bring a virtual page into physical memory and there are no free physical pages available, the operating system must make room for this page by discarding another page from physical memory.
  • 5. SWAP TYPES:-  Swap space can be  a dedicated swap partition (recommended)  a swap file  a combination of swap partitions and swap files.
  • 6. NEED OF SWAP SPACE  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.
  • 7. WHY SWAPPING: Shortage of memory  Efficient memory management needed  Process may be too big for physical memory  More active processes than physical memory can hold Requirements of multiprogramming  Efficient protection scheme  Simple way of sharing
  • 9. CONFIGURING SWAP SPACE USING DRIVE PARTITION STEPS:-  First check the current swap usage by using the commands “swapon –s” or “free”.  Create a new partition using fdisk. Set the partition’s system id as “82” (Linux Swap / Solaris).  Prepare the swap partition:- “mkswap <partition name>”  Enable the swap space for use by the system:- Temporary enable: “swapon <partition name>” Permanently enable: “gedit /etc/fstab”  To display current swap space:- “swapon –s”  To disable swaping on a partition, use “swapoff <partition name>” command.
  • 11.
  • 12.
  • 13. CONFIGURING SWAP SPACE USING SWAP FILE (if there is no available partition )  Create a file and write bytes to it equalizing the amount of swap space you wish to add,using dd command:- “dd if=/dev/zero of=/ram1 bs=1024 count=200000”  Prepare swap partition:- “mkswap <swapfile name>”  Enable swap space for use by the system:- Temporary enable: “swapon <swapfile name>” Permanently enable: “gedit /etc/fstab”  To display current swap space:- “swapon -s”  To disable swaping on a partition, use “swapoff <swapfile name>” command
  • 15.
  • 16. Conclusion  Managing swap space is an essential aspect of system administration.  Swap management is useful if you are planning to increase RAM in near future.  It is also useful in increasing processing speed of the system
  • 17. REFERENCES:-  http://docstore.mik.ua/orelly/linux/run/ch06_02.h tm “Installation procedure ”  https://www.kernel.org/doc/gorman/html/understa nd/understand014.html “definition of terminology of swap mangement”  http://ubuntu-version-8.blogspot.in/2009/05/4- virtual-memory-management.html “topological diagram”
  • 18. Thank you  Ashutosh Gupta (12UEC006)  Sokina sorokhaibam (12UEC024)  Chitranjan H(12UCS006)