作者bernachom (Terry)
看板Grad-ProbAsk
標題[問題] OS-memory 計算..
時間Tue Mar 31 22:48:14 2009
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
1F:推 apsol:15ms>>>>50ns 03/31 22:52
2F:→ bernachom:請教一下,那,遠大於多少才可以省略呢? 03/31 22:55
3F:→ bernachom:搞不太清楚,相差多少才是遠大於... 03/31 22:56
4F:推 hateexam:至少差了10^6比值 跟昨天問題一樣 03/31 23:04
5F:→ bernachom:那..昨天那題,也可以省略嚕?謝謝. 03/31 23:09
6F:推 hateexam:昨天那題解法已經省略了... 03/31 23:26
7F:→ bernachom:看懂了...謝謝^^ 03/31 23:38
8F:推 hateexam:不會;) 03/31 23:39
9F:推 godiva82:恐龍版是省略的~我是覺得要算P不要省略好,剛好可以消掉~ 03/31 23:59
10F:推 WFC:個人是覺得他指的 page fault service 已包含page fault 所要 04/01 00:37
11F:→ WFC:服務的項目 文中並沒有指名是單純的 page fault process 04/01 00:38
12F:→ WFC:service 的時間 所以不加入 memory access的時間(已包含進去) 04/01 00:39
13F:→ WFC:恐龍 P311 下面有指出當 page fault 時要處理的零零總總有很多 04/01 00:40
14F:→ WFC:所以才會用 page fault time 概括之 04/01 00:41
15F:→ WFC:要不要加 感覺要看題意在考慮 04/01 00:41
16F:→ bernachom:腦筋有點打結..那什題目要說什麼才需要算呢? 04/01 00:45
17F:推 hateexam:抱歉 我沒仔細看 你昨天那題根本無關省不省略問題 04/01 03:19
18F:→ hateexam:因為他已經說分頁失誤所需花費的所有時間了 04/01 03:19