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
PPTX
Operating system ms priyanka
PDF
Sucet os module_4_notes
PPTX
Computer memory in general
PPTX
Operating system
PPTX
Memory and its types
PPTX
Operating System
PPSX
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
Operating system ms priyanka
Sucet os module_4_notes
Computer memory in general
Operating system
Memory and its types
Operating System
Operating system
OS Structure
Ad

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

PPTX
Os unit 2
PPTX
Unit 5 Memory management in OS Unit 5 Memory management in OS
PPT
Chapter 04
PPT
Unit 5 Memory management System in OS.ppt
PPT
Memory management
PPT
Memory Management
PPT
Memory Management-Muhammad Ahmad.ppt
PPT
Computer memory management
PPT
PPT
unit-4 class (2).ppt,Memory managements part-1
PPT
chap.4.memory.manag.ppt
PPT
4 (1)
PPTX
Paging +Algorithem+Segmentation+memory management
PPTX
STORAGE MANAGEMENT AND PAGING ALGORITHMS.pptx
PPT
Main memory os - prashant odhavani- 160920107003
PPT
Chapter 2 part 1
PPT
Memory management
PDF
Main Memory
PPTX
Unit 5Memory management.pptx
Os unit 2
Unit 5 Memory management in OS Unit 5 Memory management in OS
Chapter 04
Unit 5 Memory management System in OS.ppt
Memory management
Memory Management
Memory Management-Muhammad Ahmad.ppt
Computer memory management
unit-4 class (2).ppt,Memory managements part-1
chap.4.memory.manag.ppt
4 (1)
Paging +Algorithem+Segmentation+memory management
STORAGE MANAGEMENT AND PAGING ALGORITHMS.pptx
Main memory os - prashant odhavani- 160920107003
Chapter 2 part 1
Memory management
Main Memory
Unit 5Memory management.pptx
Ad

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
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Pre independence Education in Inndia.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
master seminar digital applications in india
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Basic Mud Logging Guide for educational purpose
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Insiders guide to clinical Medicine.pdf
PDF
Classroom Observation Tools for Teachers
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Anesthesia in Laparoscopic Surgery in India
01-Introduction-to-Information-Management.pdf
Final Presentation General Medicine 03-08-2024.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pre independence Education in Inndia.pdf
Institutional Correction lecture only . . .
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPH.pptx obstetrics and gynecology in nursing
2.FourierTransform-ShortQuestionswithAnswers.pdf
O7-L3 Supply Chain Operations - ICLT Program
master seminar digital applications in india
102 student loan defaulters named and shamed – Is someone you know on the list?
Basic Mud Logging Guide for educational purpose
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Complications of Minimal Access Surgery at WLH
Insiders guide to clinical Medicine.pdf
Classroom Observation Tools for Teachers

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