SPLVM Virtualized System Meetup
Host: Mossaka
- Community hosted meetup for discussing anything related to distributed systems, operating systems, database, and networking. Currently focusing on virtualization, tracking course UCSD CSE 291.
- Schedule
- Biweekly Zoom meeting on Monday at 5pm PDT
- Code of Conduct
- Please use “Raise Hands” feature on Zoom
- Welcome to unmute or comment in chat at ANY TIME!
Background
https://stackoverflow.com/questions/37825859/cache-miss-a-tlb-miss-and-page-fault
The CPU generates the page number
and page offset
Page Table maps page number
to page frame number
page frame number
+ page offset
→ physical memory
- lookup
page number
in TLB
- TLB miss: go to Page Table
- TLB hit: we find
page frame number
and don’t go Page Table
- Page Fault
- occurs when the page accessed by a running program is not present in physical memory. It means the page is present in secondary memory but not yet loaded into a frame of physical memory
- use
page replacement algorithm
if page table is full
Software-controlled TLB
- on a TLB hits, MMU checks the valid bit
- if valid, perform addr translation
- if invalid, generates a page fault
- on a TLB miss, HW raises exception, traps into the OS and OS parses page table loads PTE into TLB
Hardware-controlled TLB
- on a TLB hits, MMU checks the valid bit
- if valid, perform addr translation
- if invalid, generates a page fault
- on a TLB miss, MMU parses page table loads PTE into TLB