Memory Management Flashcards
Address Binding?
Programs on disk, ready to be brought into memory to execute form an input queue
Logical vs Physical Address Space?
The concept of a logical address space that is bound to a separate physical address space is central to proper memory management
Logical Address?
Generated by the CPU, also referred to as virtual addres
Physical Address?
Address seen by the memory unit
Logical Address Space?
Is the set of all logical addresses generated by a program
Physical Address Space?
Is the set of all physical addresses generated by a program
MMU?
Memory Management Unit
What does MMU do?
Hardware device that at run time maps virtual to physical address.
Many methods possible, covered in the rest of this chapter.
The user program deals with what?
Logical addresses it never sees the real physical addresses.
Dynamic relocation using a relocation register?
Routine is not loaded until it is called
Better memory-space utilization
Unused routine is never loaded
All routines kept on disk in relocatable load format
Contiguous Allocation?
Main memory must support both OS and user processes
Limited resource, must allocate efficiently
Contigous allocation is one early method
Main memory two partitions?
Resident operating system
User processes then held in high memory
Each proces contained in a single contiguous section of memory
Different Registers?
base register contains value of smallest physical address.
Limited register contains range of logical addresses each logical address must be less than the limit register
Multiple-Partition Allocation?
Degree of multiplrogramming limited by number of partitions
Variable-partition sizes for efficiency
Hole - block of available memory; holes of various size are scattered through memory
When a process arrives, it is allocated memory from a hole large enough to accomodate it
Dynamic Storage-Allocation Problem?
First-fit: Allocate first hole that is big enough
Best-Fit: Allocate the smallest hole that is big enough, must search entire list, unless ordered by size.
Worst-Fit: Allocate the largest hole, must also search entire list.