[問題] OS-memory 計算..

看板Grad-ProbAsk作者 (Terry)時間17年前 (2009/03/31 22:48), 編輯推噓7(7011)
留言18則, 5人參與, 最新討論串1/1
Suppose that the virtual memory of a computer system adopts demand paging. Assume that the effective memory access time without any page fault is 50ns and the service time for a page fault is 15ms ,What is the maximum acceptable page-fault rate for an effective access time of no more than 120ns (1ns=10^-9,and 1ms=10^-3)? Answer:The maximum acceptable page fault rate is______ 解答寫: (1-p)*50ns + p*(15ms+50ns)<120ns, 50ns可省略 請教一下,為什麼50ns可省略呢? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.100.142

03/31 22:52, , 1F
15ms>>>>50ns
03/31 22:52, 1F

03/31 22:55, , 2F
請教一下,那,遠大於多少才可以省略呢?
03/31 22:55, 2F

03/31 22:56, , 3F
搞不太清楚,相差多少才是遠大於...
03/31 22:56, 3F

03/31 23:04, , 4F
至少差了10^6比值 跟昨天問題一樣
03/31 23:04, 4F

03/31 23:09, , 5F
那..昨天那題,也可以省略嚕?謝謝.
03/31 23:09, 5F

03/31 23:26, , 6F
昨天那題解法已經省略了...
03/31 23:26, 6F

03/31 23:38, , 7F
看懂了...謝謝^^
03/31 23:38, 7F

03/31 23:39, , 8F
不會;)
03/31 23:39, 8F

03/31 23:59, , 9F
恐龍版是省略的~我是覺得要算P不要省略好,剛好可以消掉~
03/31 23:59, 9F

04/01 00:37, , 10F
個人是覺得他指的 page fault service 已包含page fault 所要
04/01 00:37, 10F

04/01 00:38, , 11F
服務的項目 文中並沒有指名是單純的 page fault process
04/01 00:38, 11F

04/01 00:39, , 12F
service 的時間 所以不加入 memory access的時間(已包含進去)
04/01 00:39, 12F

04/01 00:40, , 13F
恐龍 P311 下面有指出當 page fault 時要處理的零零總總有很多
04/01 00:40, 13F

04/01 00:41, , 14F
所以才會用 page fault time 概括之
04/01 00:41, 14F

04/01 00:41, , 15F
要不要加 感覺要看題意在考慮
04/01 00:41, 15F

04/01 00:45, , 16F
腦筋有點打結..那什題目要說什麼才需要算呢?
04/01 00:45, 16F

04/01 03:19, , 17F
抱歉 我沒仔細看 你昨天那題根本無關省不省略問題
04/01 03:19, 17F

04/01 03:19, , 18F
因為他已經說分頁失誤所需花費的所有時間了
04/01 03:19, 18F
文章代碼(AID): #19qYqlV2 (Grad-ProbAsk)