Memory Management - University of California, Davis
Memory Management
Raju Pandey Department of Computer Sciences
University of California, Davis Spring 2011
Overview
? Goals of memory management:
Subdividing memory to accommodate multiple processes Memory needs to be allocated to ensure a reasonable supply of
ready processes to consume available processor time
? Preparing a Program for Execution
Program Transformations Logical-to-Physical Address Binding
? Memory Partitioning Schemes
Fixed Partitions Variable Partitions
? Allocation Strategies for Variable Partitions ? Dealing with Insufficient Memory
ECS 150 (Operating Systems)
Memory Management, 2
The External View of the Memory Manager
Application Program
exec()
shmalloc()
sbrk()
getrlimit()
VirtualAlloc() VMQuery()
VirtualLock() VirtualFree()
ZeroMemory()
File Mgr Device Mgr Memory Mgr Process Mgr
File Mgr Device Mgr Memory Mgr Process Mgr
UNIX
ECS 150 (Operating Systems)
Windows
Hardware
Memory Management, 3
Memory Management Requirements
? Relocation
Programmer does not know where the program will be placed in memory when it is executed
While the program is executing, it may be swapped to disk and returned to main memory at a different location (relocated)
Memory references must be translated in the code to actual physical memory address
ECS 150 (Operating Systems)
Memory Management, 4
Memory Management Requirements
? Protection
Processes should not be able to reference memory locations in another process without permission
Impossible to check absolute addresses at compile time Must be checked at run time Memory protection requirement must be satisfied by the processor
(hardware) rather than the operating system (software)
o Operating system cannot anticipate all of the memory references a program will make
? Sharing
Allow several processes to access the same portion of memory Better to allow each process access to the same copy of the program
rather than have their own separate copy
ECS 150 (Operating Systems)
Memory Management, 5
................
................
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
- memory management thrashing segmentation and paging
- lecture 7 memory management
- memory management university of california davis
- operating systems memory management wpi
- the concept of memory
- operating systems memory management
- table 7 1 memory management techniques
- memory management in the java hotspot virtual machine
- internals chapter 8 virtual memory
Related searches
- university of california essay prompts
- university of california supplemental essays
- university of california free tuition
- university of california campuses
- university of california online certificates
- address university of california irvine
- university of california at irvine ca
- university of california irvine related people
- university of california irvine staff
- university of california irvine employment
- university of california irvine address
- university of california irvine online