Report Linux memory cache content

24
2013-08
  • matt

    Is there a way to report the contents of the file cache held on RAM?

  • Answers
  • Rolnik

    Have you tried the 'top' command? It has tons of metrics.


  • Related Question

    Which is better? High cache memory or low cache?
  • soul

    Which is better? High cache memory or low cache? And what exactly is their difference.


  • Related Answers
  • William Hilsum

    Always - More the better.

    If you are talking about the CPU cache, Wikipedia says it best -

    A CPU cache is a cache used by the central processing unit of a computer to reduce the average time to access memory. The cache is a smaller, faster memory which stores copies of the data from the most frequently used main memory locations. As long as most memory accesses are cached memory locations, the average latency of memory accesses will be closer to the cache latency than to the latency of main memory.