What is the difference between buffer and cache memory in Linux?

后端 未结 12 1288
慢半拍i
慢半拍i 2020-12-02 03:33

To me it\'s not clear what\'s the difference between the two Linux memory concepts : buffer and cache. I\'ve read through this post and it seems to

12条回答
  •  我在风中等你
    2020-12-02 04:25

    It's not 'quite' as simple as this, but it might help understand:

    Buffer is for storing file metadata (permissions, location, etc). Every memory page is kept track of here.

    Cache is for storing actual file contents.

提交回复
热议问题