logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cachestats - print cache statistics for a file

Description

       Print number of cached vs. not-cached pages.

Example

       $ cachestats -v ~/somefile.mp3
       pages in cache: 85/114 (74.6%)  [filesize=453.5K, pagesize=4K]

       cache map:
            0: |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|
           32: |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|
           64: |x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x|x| | | | | | | | | | | | |
           96: | | | | | | | | | | | | | | | | | |x|

Name

       cachestats - print cache statistics for a file

Options

-v "Verbose mode"
              Print verbose cache map, where each page that is present in the cache is marked with `x`.

       -q "Quiet mode"
              The exit status is 0 (success) if the file is fully cached.

See Also

       Also, you can use `vmstat 1` to view cache statistics.

cachestats                                         March 2013                                      CACHESTATS(1)

Synopsis

       cachestats [-qv] file

See Also