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

相关文章:

  • 2021-12-23
  • 2021-11-28
  • 2022-12-23
  • 2021-08-02
  • 2021-04-29
  • 2021-04-21
  • 2021-12-07
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2021-06-15
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-01-21
相关资源
相似解决方案