Virtual Memory Part 1 Flashcards
(40 cards)
Instructions must be in ________ memory to be executed
physical
What is program size limited to?
Physical memory size
Physical memory cannot support a lot of processes. Thus ________ suffers
multiprogramming
We desire to allow some portions of the address space to be ___-_______ _________
non-memory resident
Non-memory resident means not in ______ memory
physical
What is demand paging?
Loading program code/data pages into memory on demand
An item that could be a candidate for demand paging are _____ _______
shared libraries
Swapping is when the OS stashes ______ pages away to the _____ ______ backed by stable storage
memory, swap space
Virtual memory gives the application the illusion of an ________ amount of memory
infinite
_______ memory supports more processes concurrently
virtual
What are 2 related approaches to virtual memory?
Swapping and demand paging
In demand paging, a page is brought into memory only when ______
needed
What are 3 benefits of demand paging?
- Less I/O need
- Faster response (We only load needed pages)
- More processes admitted to the system
In demand paging, a process generates ______ (_____) addresses which are mapped to physical addresses using a ____ ____
logical, virtual, page table
In demand paging, if a requested ____ is not in memory, the _____ brings it from the hard disk
page, kernel
What is the swap space?
Storage space reserved for moving pages back and forth between storage and memory
With swap spacing, physical memory is represented in ______ and swap space is represented in ______
pages, blocks
In swap spacing, ____ size equals ____ size
page, block
In traditional swap spacing, _______ processes are swapped out (meaning all of its _____)
entire, pages
In modern implementation of swap spacing, only _____ of processes are swapped out
portions
How do we know if a page is in memory?
Each page table entry has a valid/present bit
A valid/present bit of 1 means the page is _________
in-memory
A valid/present bit of 0 means the page is _________
not-in-memory
During an address translation, if the valid bit equals 0, what to outcomes are there?
- Illegal reference (outside address space)
- Legal reference but not in memory