Unit 7 : Memory Management Flashcards
List out 2 partision methods
- Fixed Partision
- Variable Partision
List out the 2 methods for fixed partision
- Fixed
- Fixed size of the memory
- Not the same value
- Paging
- Fixed size of the memory
- Same Value
- Fixed ( 1 - 100kb , 2 - 200 kb , 3 - 300 kb )
- Paging ( All parts are 50kb )
How does variable partisioning assign the space?
- Depends on the size of the program
What components does RAM uses to create Virtual Memory?
- Storage Device ( Hard Drive / SSD )
What techniques does Virtual Memory uses? What is the total Memory when there is 8GB of RAM and 2GB of Virtual Memory?
- Swap In / Out
- 10 GB
- But computer can only use 8GB
- When programs at not running at the RAM ( but app is still opening ) it will swap in to the virtual memory, if there is programs that is being used in virtual memory, it will swap out from virtual memory to RAM
What things that programmers do not have to worry about when a pc has virtual memory?
- Do not have to worry about space and writing overlay codes
What techniques does virtual memory implemented?
- Demand paging
- Demand segmentation
- This allows for a process larger then the system physical memory to be executed
In paging, physical memory is broken into fixed-sized blocks called what?
- Frames
In pagging, logical memory is also broken into blocks of the same size called what?
- Pages
What is the word paged means in memory?
- Write in to the memory when a process needs to be executed
What decides which pages to bring into memory?
- Pager
Does demand paging pages all the process?
- No, only pages that are needed are brought in
- An media player that has features like media and audio player, when user are playing audio, the media code won’t be in the memory
What are the advantages of demand paging? ( 3 )
- Avoid reading apges that will not be used
- Decreases paging time
- Decrease physical memory needed
- It only brings in pages that are needed into memory
List out 3 things for demand paging works ? ( 3 )
- Logical Memory
- Page Table
- Physical Memory
- Table examples on Slide 6
What does addresses specify in segmentation?
- Segment Name
- Offset
What does a logical address space have?
- A collection of segments
- Each segment has a name and a length
What is segmentation?
- Is a memory management scheme that supports a user view of memory
What is the most efficient virtual memory storage method?
- Demand Segmentation
What needs significant amount of hardware requirements?
- Demand Segmentation
- It allocetes memory in segments
Does all paging systems use segmentation?
- No
What keeps track of segments?
- Segment Descriptors
Instead of allocatiing pages in memory, it was allocating in what ?
- Segments
How does demand paging works ? ( 3 )
- Logical Address Space
- Physical Memory
- Segment Table
- See example on Slide 11