Understanding “Buffers” and “Cached” from free command

前端 未结 5 1199
独厮守ぢ
独厮守ぢ 2021-01-30 11:47

This has been asked earlier but don\'t want to update the same thread again as it was a old thread .

Want to clarify myself on the \"buffers\" and \"cache\" column from

5条回答
  •  一整个雨季
    2021-01-30 12:12

    Quoting from RHEL:

    Linux always tries to use RAM to speed up disk operations by using available memory for buffers (file system metadata) and cache (pages with actual contents of files or block devices).


    Quoting from serverFault

    shared / buffers / cached: This shows memory usage for specific purposes, these values are included in the value for used.

    The second line gives first-line values adjusted. It gives the original value for used minus the sum buffers+cached and the original value for free plus the sum buffers+cached, hence its title. These new values are often more meaningful than those of the first line.

    The last line Swap gives information about swap space usage. For example memory contents that have been temporarily moved to disk.

提交回复
热议问题