Chapter 8 (Virtual memory) Flashcards
What two characteristics lead to the memory management breakthrough?
All memory references are logical addresses translated at runtime
A process can be broken up into pieces and they need not be contiguous
What is the portion of the process in main memory at a given time called?
Resident set
What happens when something is referenced outside of the resident set?
Fault
T/F Virtual memory can be larger than main memory
T
What is it called when the OS may consume more CPU time managing the processes than running them
Thrashing
What acts as an index into the page table?
Page number
How do you get a physical address from a virtual address in paging?
Use the page number to index into the table. This gets the frame number which can be added to the offset to get the real address
T/F A page table cannot be stored in virtual memory
F, it can
What’s the drawback to an inverted page table?
The page number can no longer be used as an index into the page table
What is a solution to the drawback of an inverted page table?
Hash function to map the virtual page number to a hash table. The hash table entry has a pointer to the frame table entry
What’s the problem with virtual addresses?
Doubles the number of memory accesses
What is TLB?
Translation Lookaside Buffer
How can you help the virtual address problem of doubling the memory accesses?
Use a TLB
T/F The TLB caches the pages
F, only the page table entries
What is the “tag” for a cache block?
Leftmost bits of the address