[理工] [OS] 97台科大

看板Grad-ProbAsk作者 (saponevol23)時間12年前 (2012/02/05 22:35), 編輯推噓0(003)
留言3則, 1人參與, 最新討論串1/1
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
其實是一樣的意思,因為page所指到的就是memory裡的
02/06 00:03, 1F

02/06 00:05, , 2F
frame,如果就單指page的話,就是找到page table裡要被
02/06 00:05, 2F

02/06 00:05, , 3F
替換掉的page
02/06 00:05, 3F
文章代碼(AID): #1FBfEPKS (Grad-ProbAsk)