SlideShare a Scribd company logo
1 of 16
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Memory Management
• Uni-program – memory split into two parts
– One for Operating System (monitor)
– One for currently executing program
• Multi-program
– Non-O/S part is sub-divided and shared among active
processes
• Remember segment registers in the 8086
architecture
– Hardware designed to meet needs of O/S
– Base Address = segment address
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Swapping
• Problem: I/O (Printing, Network,
Keyboard, etc.) is so slow compared with
CPU that even in multi-programming
system, CPU can be idle most of the time
• Solutions:
– Increase main memory
• Expensive
• Programmers will eventually use all of this memory
for a single process
– Swapping
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
What is Swapping?
• Long term queue of processes stored on disk
• Processes “swapped” in as space becomes available
• As a process completes it is moved out of main
memory
• If none of the processes in memory are ready (i.e. all
I/O blocked)
– Swap out a blocked process to intermediate queue
– Swap in a ready process or a new process
• But swapping is an I/O process!
– It could make the situation worse
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Partitioning
• Splitting memory into sections to allocate
to processes (including Operating System)
• Two types
– Fixed-sized partitions
– Variable-sized partitions
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Fixed-Sized Partitions (continued)
• Equal size or Unequal size partitions
• Process is fitted into smallest hole that will
take it (best fit)
• Some wasted memory due to each block
having a hole of unused memory at the
end of its partition
• Leads to variable sized partitions
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Fixed-
sized
partitions
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Variable-Sized Partitions
• Allocate exactly the required memory to a process
• This leads to a hole at the end of memory, too small
to use – Only one small hole - less waste
• When all processes are blocked, swap out a
process and bring in another
• New process may be smaller than swapped out
process
• Reloaded process not likely to return to same place
in memory it started in
• Another hole
• Eventually have lots of holes (fragmentation)
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Variable-Sized Partitions
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Solutions to Holes in Variable-
Sized Partitions
• Coalesce - Join adjacent holes into a
single large hole
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Overlays
• In the early days of computing, programmers
had a small amount of memory to squeeze
programs into
• First "stabs" at memory management were
overlays:
– Programmer divided single application into smaller
independent programs called overlays
– When program first loaded, load first overlay into
memory
– When new overlay was required, next overlay is
read from drive and loaded in place of previous one
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Relocation
• No guarantee that process will load into the same
place in memory
• Instructions contain addresses
– Locations of data
– Addresses for instructions (branching)
• Logical address – relative to beginning of program
• Physical address – actual location in memory (this
time)
• Base Address – start of program or block of data
• Automatic conversion using base address
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Paging (continued)
• Split memory into equal sized, small
chunks -page frames
• Split programs (processes) into equal
sized small chunks – pages
• Allocate the required number page frames
to a process
• Operating System maintains list of free
frames
• A process does not require contiguous
page frames
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Paging (continued)
• Use page table to keep track of how the
process is distributed through the pages in
memory
• Now addressing becomes page
number:relative address within page which
is mapped to frame number:relative
address within frame.
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Paging (continued)
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Paging Example – Before
Process A
Page 0
Page 1
Page 2
Page 3
13
14
15
16
17
18
19
20
21
Free frame list
13
14
15
18
20
In
use
In
use
In
use
In
use
Memory Management – Page ‹#› of 49
CSCI 4717 – Computer Architecture
Paging Example – After
Process A
Page 0
Page 1
Page 2
Page 3
Free frame list
20
Process A
page table
13
14
15
18
13
14
15
16
17
18
19
20
21
In
use
In
use
In
use
In
use
Page 0
of A
Page 1
of A
Page 2
of A
Page 3
of A

More Related Content

Similar to Memory Management Architecture.ppt

07-MemoryManagement.ppt
07-MemoryManagement.ppt07-MemoryManagement.ppt
07-MemoryManagement.ppthello509579
 
Memory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryMemory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryShivam Mitra
 
08 operating system support
08 operating system support08 operating system support
08 operating system supportAnwal Mirza
 
lecture 8 b main memory
lecture 8 b main memorylecture 8 b main memory
lecture 8 b main memoryITNet
 
CSE2010- Module 4 V1.pptx
CSE2010- Module 4 V1.pptxCSE2010- Module 4 V1.pptx
CSE2010- Module 4 V1.pptxMadhuraK13
 
M20CA1030_391_2_Part2.pptx
M20CA1030_391_2_Part2.pptxM20CA1030_391_2_Part2.pptx
M20CA1030_391_2_Part2.pptxHarikishnaKNHk
 
PAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docxPAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docxImranBhatti58
 
16. PagingImplementIssused.pptx
16. PagingImplementIssused.pptx16. PagingImplementIssused.pptx
16. PagingImplementIssused.pptxMyName1sJeff
 
chap.4.memory.manag.ppt
chap.4.memory.manag.pptchap.4.memory.manag.ppt
chap.4.memory.manag.pptamadayshwan
 
Operating system 36 virtual memory
Operating system 36 virtual memoryOperating system 36 virtual memory
Operating system 36 virtual memoryVaibhav Khanna
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxAmanuelmergia
 

Similar to Memory Management Architecture.ppt (20)

07-MemoryManagement.ppt
07-MemoryManagement.ppt07-MemoryManagement.ppt
07-MemoryManagement.ppt
 
Memory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memoryMemory management in operating system | Paging | Virtual memory
Memory management in operating system | Paging | Virtual memory
 
08 operating system support
08 operating system support08 operating system support
08 operating system support
 
Os unit 3
Os unit 3Os unit 3
Os unit 3
 
Memory management1
Memory management1Memory management1
Memory management1
 
OS UNIT4.pptx
OS UNIT4.pptxOS UNIT4.pptx
OS UNIT4.pptx
 
lecture 8 b main memory
lecture 8 b main memorylecture 8 b main memory
lecture 8 b main memory
 
CSE2010- Module 4 V1.pptx
CSE2010- Module 4 V1.pptxCSE2010- Module 4 V1.pptx
CSE2010- Module 4 V1.pptx
 
Ch8
Ch8Ch8
Ch8
 
M20CA1030_391_2_Part2.pptx
M20CA1030_391_2_Part2.pptxM20CA1030_391_2_Part2.pptx
M20CA1030_391_2_Part2.pptx
 
Cache
CacheCache
Cache
 
Os4
Os4Os4
Os4
 
Os4
Os4Os4
Os4
 
PAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docxPAGIN AND SEGMENTATION.docx
PAGIN AND SEGMENTATION.docx
 
16. PagingImplementIssused.pptx
16. PagingImplementIssused.pptx16. PagingImplementIssused.pptx
16. PagingImplementIssused.pptx
 
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
 
Operating system 36 virtual memory
Operating system 36 virtual memoryOperating system 36 virtual memory
Operating system 36 virtual memory
 
Memory Management.pdf
Memory Management.pdfMemory Management.pdf
Memory Management.pdf
 
Lecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptxLecture-7 Main Memroy.pptx
Lecture-7 Main Memroy.pptx
 

Recently uploaded

MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
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 RecordAsst.prof M.Gokilavani
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 

Recently uploaded (20)

MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
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
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 

Memory Management Architecture.ppt

  • 1. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Memory Management • Uni-program – memory split into two parts – One for Operating System (monitor) – One for currently executing program • Multi-program – Non-O/S part is sub-divided and shared among active processes • Remember segment registers in the 8086 architecture – Hardware designed to meet needs of O/S – Base Address = segment address
  • 2. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Swapping • Problem: I/O (Printing, Network, Keyboard, etc.) is so slow compared with CPU that even in multi-programming system, CPU can be idle most of the time • Solutions: – Increase main memory • Expensive • Programmers will eventually use all of this memory for a single process – Swapping
  • 3. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture What is Swapping? • Long term queue of processes stored on disk • Processes “swapped” in as space becomes available • As a process completes it is moved out of main memory • If none of the processes in memory are ready (i.e. all I/O blocked) – Swap out a blocked process to intermediate queue – Swap in a ready process or a new process • But swapping is an I/O process! – It could make the situation worse
  • 4. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Partitioning • Splitting memory into sections to allocate to processes (including Operating System) • Two types – Fixed-sized partitions – Variable-sized partitions
  • 5. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Fixed-Sized Partitions (continued) • Equal size or Unequal size partitions • Process is fitted into smallest hole that will take it (best fit) • Some wasted memory due to each block having a hole of unused memory at the end of its partition • Leads to variable sized partitions
  • 6. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Fixed- sized partitions
  • 7. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Variable-Sized Partitions • Allocate exactly the required memory to a process • This leads to a hole at the end of memory, too small to use – Only one small hole - less waste • When all processes are blocked, swap out a process and bring in another • New process may be smaller than swapped out process • Reloaded process not likely to return to same place in memory it started in • Another hole • Eventually have lots of holes (fragmentation)
  • 8. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Variable-Sized Partitions
  • 9. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Solutions to Holes in Variable- Sized Partitions • Coalesce - Join adjacent holes into a single large hole
  • 10. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Overlays • In the early days of computing, programmers had a small amount of memory to squeeze programs into • First "stabs" at memory management were overlays: – Programmer divided single application into smaller independent programs called overlays – When program first loaded, load first overlay into memory – When new overlay was required, next overlay is read from drive and loaded in place of previous one
  • 11. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Relocation • No guarantee that process will load into the same place in memory • Instructions contain addresses – Locations of data – Addresses for instructions (branching) • Logical address – relative to beginning of program • Physical address – actual location in memory (this time) • Base Address – start of program or block of data • Automatic conversion using base address
  • 12. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Paging (continued) • Split memory into equal sized, small chunks -page frames • Split programs (processes) into equal sized small chunks – pages • Allocate the required number page frames to a process • Operating System maintains list of free frames • A process does not require contiguous page frames
  • 13. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Paging (continued) • Use page table to keep track of how the process is distributed through the pages in memory • Now addressing becomes page number:relative address within page which is mapped to frame number:relative address within frame.
  • 14. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Paging (continued)
  • 15. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Paging Example – Before Process A Page 0 Page 1 Page 2 Page 3 13 14 15 16 17 18 19 20 21 Free frame list 13 14 15 18 20 In use In use In use In use
  • 16. Memory Management – Page ‹#› of 49 CSCI 4717 – Computer Architecture Paging Example – After Process A Page 0 Page 1 Page 2 Page 3 Free frame list 20 Process A page table 13 14 15 18 13 14 15 16 17 18 19 20 21 In use In use In use In use Page 0 of A Page 1 of A Page 2 of A Page 3 of A