Computer Science 330
Operating Systems
Fall 2022, Siena College
Lecture 0x0d: Memory Management
Date: Monday, November 7, 2022
Agenda
- Announcements
- Tomorrow: faculty candidate talk here at 9 AM, please attend if you can!
- The next readings/activities from OS zyBook: Chapter 7, due Friday, November 18
- Lab 6: Unix Systems Programming [HTML] [PDF] wrap up
soon, complete before you work on forking in the project
- Programming Project 3: Basic Shell [HTML] [PDF] repositories should
be set up by now, due Friday night
- Programming Project 3: Basic Shell [HTML] [PDF]
- reference solution executables on noreaster in
/home/cs330/basicshell
- Q&A time
- A new shared Linux VM
- A Banker's Algorithm example
- Memory management on the Commodore 64
- Looking at (a few of) the exercises for OS zyBook Chapter 6
- Section 6.1, we will do 1-4, look briefly at 5 and just mention 6
Terminology
- physical memory (RAM)
- physical address
- logical address space
- logical address
- source module
- object module
- load module
- static vs. dynamic relocation
- relocation register
- free-space management: first-fit, next-fit, best-fit, worst-fit
- external memory fragmentation
- swapping
- memory compaction
- linking
- sharing (of dynamic modules)
- paging
- page, page frame
- page table
- internal fragmentation
- segmentation
- segment
- segment table
- translation lookaside buffer
- principle of locality
- TLB hit ratio