[理工] [OS] 97台科大
TLB miss的動作
1. A TLB miss occurs
2. Search the page table and find the demanding page has its valid bit
unasserted
3. A page-fault trap occurs
4. Save the user registers and process state. Then allocate the CPU to
other process
5. Try to find a frame from the frame pool, but no free frame remains
6. Find a page to be replaced
7. Check the frame table for the newly allocated frame. If the dirty bit is
set, schedule a disk operation to write the frame back to secondary memory.
8. Schedules a disk operation to read the desired page into the newly
allocated frame
9. When the disk read is complete, updates the page table and TLB
10. Restart the postponed process.
-------------------------------------------
想請問6.的page指的是memory裡的frame還是page table裡的page?
怎麼感覺他還沒找到frame替換就跑去找page了
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.255.186.69
→
02/06 00:03, , 1F
02/06 00:03, 1F
→
02/06 00:05, , 2F
02/06 00:05, 2F
→
02/06 00:05, , 3F
02/06 00:05, 3F