Lecture 7: Memory Management
[Pages:27]Lecture7:MemoryManagement
CSE120:PrinciplesofOpera>ngSystems
UCSanDiego:SummerSessionI,2009 FrankUyeda
Announcements
? PeerWiseques>onsduetomorrow. ? Project2isdueonFriday.
? MilestoneonTuesdaynight.
? Homework3isduenextMonday.
2
GoalsforToday
? Mo>va>onforMemoryManagement ? UnderstandPaging
? Howtotranslatefromvirtualtophysicaladdress ? Determinesize,structureofpagetables
3
MemoryManagement
? Goalsofmemorymanagement
? Provideaconvenientabstrac>onforprogramming ? Allocatescarcememoryresourcesamongcompe>ng
processes ? Maximizeperformancewithminimaloverhead
? Mechanisms
? Physicalandvirtualaddressing ? Techniques:Par>>oning,paging,segmenta>on ? Pagetablemanagement,TLBs,VMtricks
? Policies
? Pagereplacementalgorithms
4
Inthebeginning.....
? Batchprogrammedsystems
? Programsusephysical
SP
addressesdirectly ? OSloadsjob,runsit,unloadsit ? Similartowhatnachosdoes
rightnow
(you'llchangethisinProject2)
PC
PhysicalMemory
Stack
Heap DataSegment TextSegment
Opera>ngSystem
5
LettherebeMul>programming
? Mul>programmingchangesallofthis
? Wantmul>pleprocessesinmemoryatonce
? OverlapI/OandCPUofmul>plejobs
? Candoitanumberofways
? Fixedandvariablepar>>oning,paging,segmenta>on
? Requirements
? Needprotec>on?restrictwhichaddressesjobscanuse ? Fasttransla>on?lookupsneedtobefast ? Fastchanges?upda>ngmemoryhardwareoncontext
switch
6
VirtualMemory
? Thebasicabstrac>onprovidedbytheOSmemory managementisvirtualmemory
? Aprocess'saddressspaceinmemoryisnotnecessarily thesameasthephysicalmemory(RAM)addressinwhich itresides
? Whenaprocessrequestsamemoryaddress,theOSwill translatetheaddressfromavirtualaddresstoaphysical address.
7
VirtualAddresses
? Processesaccessmemoryusingavirtualaddress
? ThevirtualaddressisnotthesameasthephysicalRAMaddressinwhichitresides ? TheOS(hardwareMMU)translatesthevirtualaddressintothephysicalRAMaddress ? Whodeterminesthemappingforthetransla>on?
0xFFF.....(EndingAddress) SP
Stack
AddressSpace
Heap
DataSegment
PC 0x00.......(Star>ngAddress)
TextSegment
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- lecture 7 memory management
- 8 memory management unit students portal
- arm system memory management unit architecture
- arm memory management unit keil
- memory management paging
- 7 arm processor mmu preliminary homepages at wmu
- arm memory management unit
- rm system memory management unit architecture
- joseph yiu september 2016 arm community
- arm system memory management unit architecture specification
Related searches
- memory management pdf
- stop code memory management windows 10
- memory management tool
- fix memory management windows 10
- memory management unit pdf
- memory management error
- memory management in computer architecture
- stop code memory management windows 10 fix
- memory management software windows 10
- windows 10 memory management crash
- microsoft memory management tool
- memory management blue screen windows 10