作者wqchung (pp)
站內Programming
標題[問題] 軟體cache的問題
時間Wed Jan 6 16:10:24 2010
請問一下os(WinX) cache機制的問題
就是跑一隻A程式時,如果A程式沒做任何cache機制
是否os會幫A程式cache一些資訊在memory(似乎會)或hd(不清楚)
還有可否有tool可dump所有cache的資料
thx^^
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.249.164.196
※ 編輯: wqchung 來自: 60.249.164.196 (01/06 16:11)
1F:→ adrianshum:cache 什麼? 202.155.236.82 01/06 16:32
2F:→ wqchung:如圖片....之類等等 60.249.164.196 01/06 16:47
3F:→ wqchung:如A程式功能load了幾張圖,我怎知os有無幫 60.249.164.196 01/06 16:48
4F:→ wqchung:我cache這些圖在memory.... 60.249.164.196 01/06 16:49
5F:→ adrianshum:看你何謂 cache. OS 在不同層次自己有 202.155.236.82 01/06 18:02
6F:→ adrianshum:做各類 caching, 比如某檔案剛讀過,os 202.155.236.82 01/06 18:02
7F:→ adrianshum:會把資料 cache 起也說不定, 但肯定不 202.155.236.82 01/06 18:03
8F:→ adrianshum:會根據你的程式 logic 去自動 cache 某 202.155.236.82 01/06 18:03
9F:→ adrianshum:些資料, 比如你load 了圖片, 又 close 202.155.236.82 01/06 18:03
10F:→ adrianshum:了, os 或會 cache 到 file data, 令你 202.155.236.82 01/06 18:04
11F:→ adrianshum:再開的時候, 讀檔的時候能從 mem 讀到 202.155.236.82 01/06 18:04
12F:→ adrianshum:但不可能幫你 cache令你那個圖片object 202.155.236.82 01/06 18:05
13F:→ adrianshum:下次不用再construct 202.155.236.82 01/06 18:05
14F:→ wqchung:看來我搞混os caching做法,一直以為os會幫 60.249.164.196 01/06 18:13
15F:→ wqchung:某個process切割某塊frame來放cache data 60.249.164.196 01/06 18:13