Memory footprint

pages 16k

malloc出來的是clean的

寫過之後變成dirty

 

memory mapped files

readonly的file是clean的

 

dirty--memory written by my app---ie,malloc, array,string,decoded image buffers

compressed---ios7---訪問前 會壓縮它

clean--data that can be paged out of memory---ie, image.jpg  blob.data  training.model framework的 const sec

可以被置換出去的 看上去也是隻讀的 

 

 memory可以省cpu時間

比如cache 比如多線程的context

gpu也可以用memory省時間

如果要省mem就要反過來用了

trade-offs

 

footprint指 dirty+compress 這部分mem

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章