SlideShare a Scribd company logo
Video Lecture and E-Content Created by
R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech.,
Assistant Professor of Computer Science &
Assistant Professor and Head, Department of M.Com.(CA),
Ayya Nadar Janaki Ammal College,
Sivakasi – 626 124.
Mobile: 099440-42243
e-mail : sivamsccsit@gmail.com website: www.rdsivakumar.blogspot.in
PAGING
Paging is one of the memory management schemes by which a computer can
store and retrieve data from secondary storage for use in main memory.
 In the paging memory-management scheme, the operating system retrieves
data from secondary storage in same-size blocks called pages.
PAGING DEFINITION
The main advantage of paging over memory segmentation is that it allows the
physical address space of a process to be noncontiguous.
Before paging came into use, systems had to fit whole programs into storage
contiguously, which caused various storage and fragmentation problems.
ADVANTAGES
Demand Paging - When pure demand paging is used, page loading only
occurs at the time of the data request, and not before.
Anticipatory paging - This technique, sometimes called "swap prefetch",
preloads a process's non-resident pages that are likely to be referenced in the
near future.
Free page queue - The free page queue is a list of page frames that are
available for assignment after a page fault.
PAGE REPLACEMENT ALGORITHMS
Page stealing - Some operating systems periodically look for pages that
have not been recently referenced and add them to the Free page
queue, after paging them out if they have been modified.
Pre-cleaning - Unix operating systems periodically use sync to pre-
clean all dirty pages, that is, to save all modified pages to hard disk.
PAGE REPLACEMENT ALGORITHMS (Conti..)
 Most programs reach a steady state in their demand for memory locality
both in terms of instructions fetched and data being accessed.
 This steady state is usually much less than the total memory required by
the program.
 This steady state is sometimes referred to as the working set: the set of
memory pages that are most frequently accessed.
THRASHING
 In multi-programming or in multi user environment it is common
for many users to be executing the same program.
 If individual copies of these programs were given to each user,
much of the primary storage would be wasted.
 The solution is to share those pages that can be shared.
SHARING
In some older virtual memory operating systems, space in swap backing
store is reserved when programs allocate memory for runtime data.
OS vendors typically issue guidelines about how much swap space should be
allocated.
TUNING SWAP SPACE SIZE
Swapping can decrease system reliability by some amount. If swapped data
gets corrupted on the disk, the memory will also have incorrect contents after
the data has later been returned.
RELIABILITY
Address generated by CPU is divided into:
 1. Page number (p) – used as an index into a page table which contains base
address of each page in physical memory.
 2. Page offset (d) – combined with base address to define the physical memory
address that is sent to the memory unit.
ADDRESS GENERATED
ADDRESS TRANSLATION ARCHITECTURE
PAGING EXAMPLE
Page-table base register (PTBR) points to the page table.
Page-table length register (PRLR) indicates size of the page table.
IMPLEMENTATION OF PAGE TABLE
Shared code
One copy of read-only (reentrant) code shared among processes (i.e., text
editors, compilers, window systems).
Shared code must appear in same location in the logical address space of
all processes.
Private code and data
Each process keeps a separate copy of the code and data.
The pages for the private code and data can appear anywhere in the logical
address space.
SHARED PAGE
Paging-R.D.Sivakumar

More Related Content

PPTX
Operating systems
PPTX
Operating system 01 introduction
PPTX
Input Output Control System
PPTX
Swap space management and protection in os
PPTX
The purpose of an operating system
PPTX
Windows memory management
PPTX
Seminar mc palm
Operating systems
Operating system 01 introduction
Input Output Control System
Swap space management and protection in os
The purpose of an operating system
Windows memory management
Seminar mc palm

What's hot (20)

PPTX
Computer Memory Systems
PDF
System software vt
PPTX
Os solaris memory management
DOCX
Operating system
PPS
Operating Systems and Memory Management
PPTX
Introduction of operating system
PPTX
Functions of OS Computer Application in Business
PPTX
Computer System Architecture-R.D.Sivakumar
PPTX
Computer memory & Memory Storage Devices.
PDF
Os organization
PPT
Primary Storage
PPTX
Operating system ms priyanka
PPTX
OPERATING SYSTEM
PDF
Sucet os module_4_notes
PPTX
Computer memory in general
PPTX
Operating system
PPTX
Memory and its types
PPSX
Operating system
PPTX
Operating System
PPT
OS Structure
Computer Memory Systems
System software vt
Os solaris memory management
Operating system
Operating Systems and Memory Management
Introduction of operating system
Functions of OS Computer Application in Business
Computer System Architecture-R.D.Sivakumar
Computer memory & Memory Storage Devices.
Os organization
Primary Storage
Operating system ms priyanka
OPERATING SYSTEM
Sucet os module_4_notes
Computer memory in general
Operating system
Memory and its types
Operating system
Operating System
OS Structure
Ad

Viewers also liked (20)

PDF
Open and online: connections, community and reality
PPT
Present Continuous
PDF
Garbage Collection without Paging
PDF
Java sockets
PPTX
Copenhagen Open For Connections Dias
PPTX
Web sockets in Java
PPTX
Multithreaded programming
PPTX
Insert a Page Number in the Running Head
PPTX
Presentiaon task sheduling first come first serve FCFS
PPT
multi-threading
PPS
The Look Of Love
PPTX
4 character encoding-ascii
PPT
Concurrency control ms neeti
PPT
PPTX
System Data Modelling Tools
PDF
Process' Virtual Address Space in GNU/Linux
PPT
C scan scheduling 50 2
KEY
3장. Garbage Collection
PPT
Look scheduling.51
PPT
Sstf scheduling.50
Open and online: connections, community and reality
Present Continuous
Garbage Collection without Paging
Java sockets
Copenhagen Open For Connections Dias
Web sockets in Java
Multithreaded programming
Insert a Page Number in the Running Head
Presentiaon task sheduling first come first serve FCFS
multi-threading
The Look Of Love
4 character encoding-ascii
Concurrency control ms neeti
System Data Modelling Tools
Process' Virtual Address Space in GNU/Linux
C scan scheduling 50 2
3장. Garbage Collection
Look scheduling.51
Sstf scheduling.50
Ad

Similar to Paging-R.D.Sivakumar (20)

PPT
Power Point Presentation on Virtual Memory.ppt
PPT
NOV11 virtual memory.ppt
PPT
virtual memory.ppt
PPTX
Paging +Algorithem+Segmentation+memory management
PPTX
PPTX
Os unit 2
PPT
PPTX
coafinal1-copy-150430204758-conversion-gate01.pptx
PPTX
Abhaycavirtual memory and the pagehit.pptx
PDF
os mod1 notes
PPT
Bab 4
 
PPT
Chapter 8 - Main Memory
PPT
Virtual Memory
PPT
Chapter 09 - Virtual Memory.ppt
PPT
NOV11 virtual memory.ppt
PPTX
Unit 5Memory management.pptx
PPTX
Memory Management
PPT
operating system
PPTX
Operating Systems Module 4_Memory Management.pptx
PPT
Ch9 OS
 
Power Point Presentation on Virtual Memory.ppt
NOV11 virtual memory.ppt
virtual memory.ppt
Paging +Algorithem+Segmentation+memory management
Os unit 2
coafinal1-copy-150430204758-conversion-gate01.pptx
Abhaycavirtual memory and the pagehit.pptx
os mod1 notes
Bab 4
 
Chapter 8 - Main Memory
Virtual Memory
Chapter 09 - Virtual Memory.ppt
NOV11 virtual memory.ppt
Unit 5Memory management.pptx
Memory Management
operating system
Operating Systems Module 4_Memory Management.pptx
Ch9 OS
 

More from Sivakumar R D . (20)

PPTX
Internet Connections and Its Protocols - R D Sivakumar
PPT
Internet - R D Sivakumar.
PPTX
Data Communication - R D Sivakumar
PPTX
NETWORK SERVICES - R D Sivakumar
PPTX
Computer Communications - R D Sivakumar
PPTX
Online Data Protection - R D Sivakumar
PPT
Software Engineering - R.D.Sivakumar
PPT
Different Kinds of Internet Protocols - R.D.Sivakumar
PPT
Internet - R.D.Sivakumar
PPT
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
PPT
E-learning Packages - R.D.Sivakumar
PPT
Digital Communication - R.D.Sivakumar
PPT
Digigogy in Teaching - R.D.Sivakumar
PPT
Cyber Commerce Technology - R.D.Sivakumar
PPT
Video Lesson Creation - R.D.Sivakumar
PPT
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
PPT
Innovative Presentation - R.D.Sivakumar
PPT
Open Source in E-Learning - R.D.Sivakumar
PPTX
Tuxpaint - R.D.Sivakumar
PPT
Academic Blog Design - R.D.Sivakumar
Internet Connections and Its Protocols - R D Sivakumar
Internet - R D Sivakumar.
Data Communication - R D Sivakumar
NETWORK SERVICES - R D Sivakumar
Computer Communications - R D Sivakumar
Online Data Protection - R D Sivakumar
Software Engineering - R.D.Sivakumar
Different Kinds of Internet Protocols - R.D.Sivakumar
Internet - R.D.Sivakumar
Electronic Publishing Tools for E-Learning - R.D.Sivakumar
E-learning Packages - R.D.Sivakumar
Digital Communication - R.D.Sivakumar
Digigogy in Teaching - R.D.Sivakumar
Cyber Commerce Technology - R.D.Sivakumar
Video Lesson Creation - R.D.Sivakumar
Cognitive and Personal Dimensions of Cyber Learning - R.D.Sivakumar
Innovative Presentation - R.D.Sivakumar
Open Source in E-Learning - R.D.Sivakumar
Tuxpaint - R.D.Sivakumar
Academic Blog Design - R.D.Sivakumar

Recently uploaded (20)

PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Complications of Minimal Access Surgery at WLH
PDF
Business Ethics Teaching Materials for college
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Pharma ospi slides which help in ospi learning
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
master seminar digital applications in india
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Institutional Correction lecture only . . .
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Complications of Minimal Access Surgery at WLH
Business Ethics Teaching Materials for college
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
RMMM.pdf make it easy to upload and study
Insiders guide to clinical Medicine.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Pharma ospi slides which help in ospi learning
Supply Chain Operations Speaking Notes -ICLT Program
2.FourierTransform-ShortQuestionswithAnswers.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
master seminar digital applications in india
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Institutional Correction lecture only . . .

Paging-R.D.Sivakumar

  • 1. Video Lecture and E-Content Created by R.D.SIVAKUMAR,M.Sc.,M.Phil.,M.Tech., Assistant Professor of Computer Science & Assistant Professor and Head, Department of M.Com.(CA), Ayya Nadar Janaki Ammal College, Sivakasi – 626 124. Mobile: 099440-42243 e-mail : sivamsccsit@gmail.com website: www.rdsivakumar.blogspot.in PAGING
  • 2. Paging is one of the memory management schemes by which a computer can store and retrieve data from secondary storage for use in main memory.  In the paging memory-management scheme, the operating system retrieves data from secondary storage in same-size blocks called pages. PAGING DEFINITION
  • 3. The main advantage of paging over memory segmentation is that it allows the physical address space of a process to be noncontiguous. Before paging came into use, systems had to fit whole programs into storage contiguously, which caused various storage and fragmentation problems. ADVANTAGES
  • 4. Demand Paging - When pure demand paging is used, page loading only occurs at the time of the data request, and not before. Anticipatory paging - This technique, sometimes called "swap prefetch", preloads a process's non-resident pages that are likely to be referenced in the near future. Free page queue - The free page queue is a list of page frames that are available for assignment after a page fault. PAGE REPLACEMENT ALGORITHMS
  • 5. Page stealing - Some operating systems periodically look for pages that have not been recently referenced and add them to the Free page queue, after paging them out if they have been modified. Pre-cleaning - Unix operating systems periodically use sync to pre- clean all dirty pages, that is, to save all modified pages to hard disk. PAGE REPLACEMENT ALGORITHMS (Conti..)
  • 6.  Most programs reach a steady state in their demand for memory locality both in terms of instructions fetched and data being accessed.  This steady state is usually much less than the total memory required by the program.  This steady state is sometimes referred to as the working set: the set of memory pages that are most frequently accessed. THRASHING
  • 7.  In multi-programming or in multi user environment it is common for many users to be executing the same program.  If individual copies of these programs were given to each user, much of the primary storage would be wasted.  The solution is to share those pages that can be shared. SHARING
  • 8. In some older virtual memory operating systems, space in swap backing store is reserved when programs allocate memory for runtime data. OS vendors typically issue guidelines about how much swap space should be allocated. TUNING SWAP SPACE SIZE
  • 9. Swapping can decrease system reliability by some amount. If swapped data gets corrupted on the disk, the memory will also have incorrect contents after the data has later been returned. RELIABILITY
  • 10. Address generated by CPU is divided into:  1. Page number (p) – used as an index into a page table which contains base address of each page in physical memory.  2. Page offset (d) – combined with base address to define the physical memory address that is sent to the memory unit. ADDRESS GENERATED
  • 13. Page-table base register (PTBR) points to the page table. Page-table length register (PRLR) indicates size of the page table. IMPLEMENTATION OF PAGE TABLE
  • 14. Shared code One copy of read-only (reentrant) code shared among processes (i.e., text editors, compilers, window systems). Shared code must appear in same location in the logical address space of all processes. Private code and data Each process keeps a separate copy of the code and data. The pages for the private code and data can appear anywhere in the logical address space. SHARED PAGE