[理工] 計組 CACHE

看板Grad-ProbAsk作者 (古月小楓)時間14年前 (2011/11/26 22:02), 編輯推噓3(3014)
留言17則, 6人參與, 最新討論串1/1
Which of th following statement are generally true? a)Caches take adventage of temporal locality b)On a read , the value returned depends on which blocks are in the cache. c)Most of the cost of the memory hierarchy is at the highest level. d)Most of the capacity of the memory hierarchy is at the lowest level. (answer )a , d 我想問的是 為什麼 c 是錯的呢? cost 高的不是在 較高層的記憶體嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.41.128.136

11/26 22:04, , 1F
抱歉 脫離已久 看到回一下 highest level 是指memory吧
11/26 22:04, 1F

11/26 22:05, , 2F
那您覺得caches的cost比較高還是memory
11/26 22:05, 2F

11/26 22:06, , 3F
題目指的cost 到底是 硬體成本 還是 時間成本阿?
11/26 22:06, 3F

11/26 22:06, , 4F
硬體的話 不是cache 比較高嗎? 如果是耗時 不是mem嗎
11/26 22:06, 4F

11/26 22:14, , 5F
我覺得cost是指硬體 請知道的回答一下
11/26 22:14, 5F

11/26 22:18, , 6F
時間成本的話,false沒什麼問題,不過我覺得是問硬體的金
11/26 22:18, 6F

11/26 22:19, , 7F
錢成本,我的想法是,高層的單位大小cost會比低層多
11/26 22:19, 7F

11/26 22:19, , 8F
但是不見得低層花的錢比較少,ex周遭有人買了無數硬碟...
11/26 22:19, 8F

11/26 22:20, , 9F
但高層,如cache,所花的錢不見得比較多,因為量大小不同
11/26 22:20, 9F

11/26 22:27, , 10F
這邊指的應該是指同單位的cost 如:都1M cache 跟 memory
11/26 22:27, 10F

11/26 22:28, , 11F
他沒說同單位吧? 他只說記憶體架構最多花在最上層,TorF
11/26 22:28, 11F

11/26 22:43, , 12F
他這邊COST指的是miss penalty八,highest level指的
11/26 22:43, 12F

11/26 22:44, , 13F
L1,L2 cache , lowest level指的是 disk storage之類的
11/26 22:44, 13F

11/26 22:46, , 14F
這樣想的話,就是越低階層的記憶體,搜尋的成本會越大
11/26 22:46, 14F

11/26 22:58, , 15F
對阿 我好奇的是哪個cost ?
11/26 22:58, 15F

11/27 23:32, , 16F
硬體吧!!
11/27 23:32, 16F

09/11 14:37, , 17F
他沒說同單位吧? 他只 https://daxiv.com
09/11 14:37, 17F
文章代碼(AID): #1EqF5vC8 (Grad-ProbAsk)