SlideShare a Scribd company logo
P R E SE N T E D B Y :
A.MOHAMED JAFAR DEEN
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.
SWAPPING:-
Swapping is the process whereby a inactive page of
memory is copied to the preconfigured space on the
hard disk, called swap space, to free up that page of
memory.
When RAM holds more than 75% memory swap will
be activated
SWAP TYPES:-
Swap space can be
a dedicated swap partition
a swap file
a combination of swap partitions and swap files.
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”.
Prepare the swap partition:- “mkswap <partition name>”
Enable the swap space for use by the system:-
Temporary enable: “swapon <partition name>”
Permanently enable: “vim /etc/fstab”
To display current swap space:- “swapon –s”
To disable swaping on a partition, use “swapoff
<partition name>” command.
swap process in red hat linux 7
swap process in red hat linux 7
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: “vim /etc/fstab”
To display current swap space:- “swapon -s”
To disable swaping on a partition, use “swapoff
<swapfile name>” command
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

More Related Content

PPTX
Swap Administration in linux platform
PPTX
Drupal from scratch
PDF
Comparison of foss distributed storage
PDF
Contribuir a Drupal - Entorno
PDF
Linux: LVM
PDF
Red hat lvm cheatsheet
PDF
Control your service resources with systemd
PPTX
Mongodb backup
Swap Administration in linux platform
Drupal from scratch
Comparison of foss distributed storage
Contribuir a Drupal - Entorno
Linux: LVM
Red hat lvm cheatsheet
Control your service resources with systemd
Mongodb backup

What's hot (20)

PDF
Network File System (NFS)
PDF
Scale2014
PPT
Apache1.ppt
PDF
Drupal7 MEMCACHE
PDF
Setting up mongo replica set
PPTX
Ubuntu vps setup
PDF
DOCX
Run wordcount job (hadoop)
PPTX
Red Hat - LVM - Mazenet Solution
ODP
Logical Volume Manager. An Introduction
PDF
ZFS Talk Part 1
PDF
Lvm advanced topics
ODP
Installing Drupal 7 in Debian Environment
PPTX
What every data programmer needs to know about disks
PDF
Improve your storage with bcachefs
PDF
Redis persistence in practice
PPTX
Redis Persistence
PPT
Oreilly Webcast 01 19 10
DOCX
53 lab-nfs
PPTX
Learning of docker storage driver (container file system)
Network File System (NFS)
Scale2014
Apache1.ppt
Drupal7 MEMCACHE
Setting up mongo replica set
Ubuntu vps setup
Run wordcount job (hadoop)
Red Hat - LVM - Mazenet Solution
Logical Volume Manager. An Introduction
ZFS Talk Part 1
Lvm advanced topics
Installing Drupal 7 in Debian Environment
What every data programmer needs to know about disks
Improve your storage with bcachefs
Redis persistence in practice
Redis Persistence
Oreilly Webcast 01 19 10
53 lab-nfs
Learning of docker storage driver (container file system)
Ad

Similar to swap process in red hat linux 7 (20)

PPTX
Swap project
PDF
Linux LVM Logical Volume Management
DOCX
EXP_2(20BCA1066 Internet).docx
PDF
Hadoop Cluster With High Availability
PPTX
How to Add Swap on Ubuntu
PDF
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
PDF
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
PDF
Inspection and maintenance tools (Linux / OpenStack)
PPT
PDF
OSSV [Open System SnapVault]
PDF
Configuring+Disks+and+Filsystems-pdf.pdf
PDF
Putting some "logic" in LVM.
PDF
02 Hadoop deployment and configuration
PPT
Improving application performance through swap compression
PDF
Puppet: Eclipsecon ALM 2013
PDF
DevOps for Humans - Ansible for Drupal Deployment Victory!
PPTX
Flume and Hadoop performance insights
ODP
Workshop eZ Publish Caching Mechanisms
Swap project
Linux LVM Logical Volume Management
EXP_2(20BCA1066 Internet).docx
Hadoop Cluster With High Availability
How to Add Swap on Ubuntu
What.do .i.do .when_.physical.memory.is_.being_.reserved.because.swap_.reserv...
z/VM 6.3 - Mudanças de Comportamento do hypervisor para suporte de partições ...
Inspection and maintenance tools (Linux / OpenStack)
OSSV [Open System SnapVault]
Configuring+Disks+and+Filsystems-pdf.pdf
Putting some "logic" in LVM.
02 Hadoop deployment and configuration
Improving application performance through swap compression
Puppet: Eclipsecon ALM 2013
DevOps for Humans - Ansible for Drupal Deployment Victory!
Flume and Hadoop performance insights
Workshop eZ Publish Caching Mechanisms
Ad

Recently uploaded (20)

PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharma ospi slides which help in ospi learning
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
master seminar digital applications in india
Microbial disease of the cardiovascular and lymphatic systems
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
VCE English Exam - Section C Student Revision Booklet
Chinmaya Tiranga quiz Grand Finale.pdf
Microbial diseases, their pathogenesis and prophylaxis
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Anesthesia in Laparoscopic Surgery in India
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Cell Types and Its function , kingdom of life
Pharma ospi slides which help in ospi learning
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Orientation - ARALprogram of Deped to the Parents.pptx
Computing-Curriculum for Schools in Ghana
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Weekly quiz Compilation Jan -July 25.pdf
202450812 BayCHI UCSC-SV 20250812 v17.pptx
master seminar digital applications in india

swap process in red hat linux 7

  • 1. P R E SE N T E D B Y : A.MOHAMED JAFAR DEEN 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. SWAPPING:- Swapping is the process whereby a inactive page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. When RAM holds more than 75% memory swap will be activated
  • 4. SWAP TYPES:- Swap space can be a dedicated swap partition a swap file a combination of swap partitions and swap files.
  • 5. 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
  • 7. 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”. Prepare the swap partition:- “mkswap <partition name>” Enable the swap space for use by the system:- Temporary enable: “swapon <partition name>” Permanently enable: “vim /etc/fstab” To display current swap space:- “swapon –s” To disable swaping on a partition, use “swapoff <partition name>” command.
  • 10. 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: “vim /etc/fstab” To display current swap space:- “swapon -s” To disable swaping on a partition, use “swapoff <swapfile name>” command
  • 11. 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