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

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