SlideShare a Scribd company logo
1 of 10
Download to read offline
MEMORY MANAGEMENT
1 | P a g e
1. Hardware Implementation Of Page Table
2. Types of page tables
Submitted by:
Sukhraj singh
449/12
1241916
MEMORY MANAGEMENT
2 | P a g e
HARDWARE IMPLEMENTATION OF PAGE TABLE
When Page Table Is Reasonably Small
1. In this case page table is implemented by the use of dedicated registers.
2. As every memory access go through the paging map, these registers should be
built with very high speed logic to make the paging address translation efficient.
3. Brief working: the CPU dispatcher reloads these registers just as it reloads the
other register .instructions to load or modify the page table registers are only in the
hand of operating system that can change the memory map
4. Example: DEC PDP-11 is the example of such an architecture as its address
consists of 16 bits , and the page size is 8kb .the page table thus consist of eight
entries that are kept in fast register .
Thus the use of registers for the page table is satisfactory if page table is small
like 256 entries
When Page Table Is Very Large
1. Use of fast registers not feasible
2. Page table is kept in main memory and there is Page-table base register (PTBR)
that points to the page table. Page-table length register (PRLR) indicates size of
the page table.
Advantage: changing page tables requires changing only one register , as a result
the context switch time reduces.
Disadvantage: In this scheme every data/instruction access requires two memory
accesses. One for the page table and one for the data/instruction thus the memory
access is slowed by the factor of two. this delay would be intolerable under most
circumstances.
MEMORY MANAGEMENT
3 | P a g e
3.The problem is solved using translation look –aside buffer (TLB)
4. The CPU's memory management unit (MMU) stores a cache of recently used
mappings from the operating system's page table. This is called the translation look
a side buffer (TLB).
5. The TLB is associative, high speed memory . each entry in TLB consists of two
parts : a key and a value. When associative memory is presented with an item is
compared with all keys simultaneously. If the item is found, the corresponding
value field is returned .
6. The seach is fast ,the hardware is expensive .
7.Working With Translation Look –Aside Buffer (TLB): the TLB contains only
a few of the page table entries . when a logical address is generated by the CPU ,
its page number is presented to the TLB . if the page number is found , its frame
number is immediately available and is used to access memory . if the page
number is not in TLB (known as TLB miss ), a memory reference to the page table
must be made . When the frame number is obtained , we can use it to access
memory . in addition , we add the page number and frame number to the tlb , so
they will be found quickly on next reference.
MEMORY MANAGEMENT
4 | P a g e
EXAMPLE SHOWING WORKING OF TLB
MEMORY MANAGEMENT
5 | P a g e
MEMORY MANAGEMENT
6 | P a g e
MEMORY MANAGEMENT
7 | P a g e
MEMORY MANAGEMENT
8 | P a g e
TYPES OF PAGE TABLE
Hierarchical Page Tables:
1.also Known as Multilevel Paging
2.The page table might be too big to fit in a contiguous space, so we may have a
hierarchy with several levels
3.Break up the logical address space into multiple page tables.
A simple technique is a two-level page table, three-level page table
Example :
Two-Level Paging Example
A logical address (on 32-bit machine with 4K page size) is divided into:
 a page number consisting of 20 bits.
 a page offset consisting of 12 bits.
Since the page table is paged, the page number is further divided into:
 a 10-bit page number.
 a 10-bit page offset.
Thus, a logical address is as follows:
where pi is an index into the outer page table, and p2 is the displacement within
the page of the outer page table.
MEMORY MANAGEMENT
9 | P a g e
Fig: Address-translation scheme for a two-level 32-bit paging architecture
Hash page table
1.Common in address spaces > 32 bits.
2.The virtual page number is hashed into a page table. This page table contains a chain of
elements hashing to the same location.
3.Each element consists of three fields:
(1) the virtual page number,
(2) the value of the mapped page frame,
(3) a pointer to the next element in the linked list.
4.Virtual page numbers are compared in this chain searching for a match. If a match is found,
the corresponding physical frame is extracted.
MEMORY MANAGEMENT
10 | P a g e
Inverted Page Table
1. The inverted page table (IPT) combines a page table and a frame table into one data
structure.
2. One entry for each virtual page number & real page of memory.
3. Entry consists of the virtual address of the page stored in that real memory location, with
information about the process that owns that page.
Advantage: Decreases memory needed to store each page table
Disadvantage :
1. Increases time needed to search the table when a page reference occurs.
2. There is only one virtual page entry for every physical page, one physical page cannot have
two (or more) shared virtual addresses.
Fig: Inverted Page Table Architecture

More Related Content

What's hot

Microprocessor 80386
Microprocessor 80386Microprocessor 80386
Microprocessor 80386
yash sawarkar
 
Computer memory management
Computer memory managementComputer memory management
Computer memory management
Kumar
 
Dbms recovering from a system crash
Dbms recovering from a system crashDbms recovering from a system crash
Dbms recovering from a system crash
Abhishek Kumar Gupta
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
koolkampus
 

What's hot (20)

Microprocessor 80386
Microprocessor 80386Microprocessor 80386
Microprocessor 80386
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Memory management
Memory managementMemory management
Memory management
 
Concurrency control
Concurrency controlConcurrency control
Concurrency control
 
File access method
File access methodFile access method
File access method
 
Concurrency Control in Database Management System
Concurrency Control in Database Management SystemConcurrency Control in Database Management System
Concurrency Control in Database Management System
 
Computer memory management
Computer memory managementComputer memory management
Computer memory management
 
Presentation on Segmentation
Presentation on SegmentationPresentation on Segmentation
Presentation on Segmentation
 
Dbms recovering from a system crash
Dbms recovering from a system crashDbms recovering from a system crash
Dbms recovering from a system crash
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
Directory implementation and allocation methods
Directory implementation and allocation methodsDirectory implementation and allocation methods
Directory implementation and allocation methods
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
Disk structure
Disk structureDisk structure
Disk structure
 
Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Computer architecture page replacement algorithms
Computer architecture page replacement algorithmsComputer architecture page replacement algorithms
Computer architecture page replacement algorithms
 
Operating system 37 demand paging
Operating system 37 demand pagingOperating system 37 demand paging
Operating system 37 demand paging
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
phases of algorithm
phases of algorithmphases of algorithm
phases of algorithm
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Directory structure
Directory structureDirectory structure
Directory structure
 

Similar to Hardware implementation of page table

Chapter 04
Chapter 04Chapter 04
Chapter 04
Google
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
C.U
 

Similar to Hardware implementation of page table (20)

Csc4320 chapter 8 2
Csc4320 chapter 8 2Csc4320 chapter 8 2
Csc4320 chapter 8 2
 
Ppt
PptPpt
Ppt
 
Memory Management
Memory ManagementMemory Management
Memory Management
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
 
Memory Management Strategies - III.pdf
Memory Management Strategies - III.pdfMemory Management Strategies - III.pdf
Memory Management Strategies - III.pdf
 
Unix Memory Management - Operating Systems
Unix Memory Management - Operating SystemsUnix Memory Management - Operating Systems
Unix Memory Management - Operating Systems
 
OS-01 Virtual Memory.pptx
OS-01 Virtual Memory.pptxOS-01 Virtual Memory.pptx
OS-01 Virtual Memory.pptx
 
Os4
Os4Os4
Os4
 
Os4
Os4Os4
Os4
 
Memory Management Strategies - IV.pdf
Memory Management Strategies - IV.pdfMemory Management Strategies - IV.pdf
Memory Management Strategies - IV.pdf
 
Operating System- Multilevel Paging, Inverted Page Table
Operating System- Multilevel Paging, Inverted Page TableOperating System- Multilevel Paging, Inverted Page Table
Operating System- Multilevel Paging, Inverted Page Table
 
memory
memorymemory
memory
 
Vm
VmVm
Vm
 
OS_Ch9
OS_Ch9OS_Ch9
OS_Ch9
 
OSCh9
OSCh9OSCh9
OSCh9
 
Ch9 OS
Ch9 OSCh9 OS
Ch9 OS
 
4 (1)
4 (1)4 (1)
4 (1)
 
chap.4.memory.manag.ppt
chap.4.memory.manag.pptchap.4.memory.manag.ppt
chap.4.memory.manag.ppt
 
Paging.ppt
Paging.pptPaging.ppt
Paging.ppt
 
Virtual Memory 53565686598386865286860.pdf
Virtual Memory 53565686598386865286860.pdfVirtual Memory 53565686598386865286860.pdf
Virtual Memory 53565686598386865286860.pdf
 

Recently uploaded

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Recently uploaded (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Intro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdfIntro To Electric Vehicles PDF Notes.pdf
Intro To Electric Vehicles PDF Notes.pdf
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

Hardware implementation of page table

  • 1. MEMORY MANAGEMENT 1 | P a g e 1. Hardware Implementation Of Page Table 2. Types of page tables Submitted by: Sukhraj singh 449/12 1241916
  • 2. MEMORY MANAGEMENT 2 | P a g e HARDWARE IMPLEMENTATION OF PAGE TABLE When Page Table Is Reasonably Small 1. In this case page table is implemented by the use of dedicated registers. 2. As every memory access go through the paging map, these registers should be built with very high speed logic to make the paging address translation efficient. 3. Brief working: the CPU dispatcher reloads these registers just as it reloads the other register .instructions to load or modify the page table registers are only in the hand of operating system that can change the memory map 4. Example: DEC PDP-11 is the example of such an architecture as its address consists of 16 bits , and the page size is 8kb .the page table thus consist of eight entries that are kept in fast register . Thus the use of registers for the page table is satisfactory if page table is small like 256 entries When Page Table Is Very Large 1. Use of fast registers not feasible 2. Page table is kept in main memory and there is Page-table base register (PTBR) that points to the page table. Page-table length register (PRLR) indicates size of the page table. Advantage: changing page tables requires changing only one register , as a result the context switch time reduces. Disadvantage: In this scheme every data/instruction access requires two memory accesses. One for the page table and one for the data/instruction thus the memory access is slowed by the factor of two. this delay would be intolerable under most circumstances.
  • 3. MEMORY MANAGEMENT 3 | P a g e 3.The problem is solved using translation look –aside buffer (TLB) 4. The CPU's memory management unit (MMU) stores a cache of recently used mappings from the operating system's page table. This is called the translation look a side buffer (TLB). 5. The TLB is associative, high speed memory . each entry in TLB consists of two parts : a key and a value. When associative memory is presented with an item is compared with all keys simultaneously. If the item is found, the corresponding value field is returned . 6. The seach is fast ,the hardware is expensive . 7.Working With Translation Look –Aside Buffer (TLB): the TLB contains only a few of the page table entries . when a logical address is generated by the CPU , its page number is presented to the TLB . if the page number is found , its frame number is immediately available and is used to access memory . if the page number is not in TLB (known as TLB miss ), a memory reference to the page table must be made . When the frame number is obtained , we can use it to access memory . in addition , we add the page number and frame number to the tlb , so they will be found quickly on next reference.
  • 4. MEMORY MANAGEMENT 4 | P a g e EXAMPLE SHOWING WORKING OF TLB
  • 8. MEMORY MANAGEMENT 8 | P a g e TYPES OF PAGE TABLE Hierarchical Page Tables: 1.also Known as Multilevel Paging 2.The page table might be too big to fit in a contiguous space, so we may have a hierarchy with several levels 3.Break up the logical address space into multiple page tables. A simple technique is a two-level page table, three-level page table Example : Two-Level Paging Example A logical address (on 32-bit machine with 4K page size) is divided into:  a page number consisting of 20 bits.  a page offset consisting of 12 bits. Since the page table is paged, the page number is further divided into:  a 10-bit page number.  a 10-bit page offset. Thus, a logical address is as follows: where pi is an index into the outer page table, and p2 is the displacement within the page of the outer page table.
  • 9. MEMORY MANAGEMENT 9 | P a g e Fig: Address-translation scheme for a two-level 32-bit paging architecture Hash page table 1.Common in address spaces > 32 bits. 2.The virtual page number is hashed into a page table. This page table contains a chain of elements hashing to the same location. 3.Each element consists of three fields: (1) the virtual page number, (2) the value of the mapped page frame, (3) a pointer to the next element in the linked list. 4.Virtual page numbers are compared in this chain searching for a match. If a match is found, the corresponding physical frame is extracted.
  • 10. MEMORY MANAGEMENT 10 | P a g e Inverted Page Table 1. The inverted page table (IPT) combines a page table and a frame table into one data structure. 2. One entry for each virtual page number & real page of memory. 3. Entry consists of the virtual address of the page stored in that real memory location, with information about the process that owns that page. Advantage: Decreases memory needed to store each page table Disadvantage : 1. Increases time needed to search the table when a page reference occurs. 2. There is only one virtual page entry for every physical page, one physical page cannot have two (or more) shared virtual addresses. Fig: Inverted Page Table Architecture