-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Showing stats in a graphical layout via php/apache/ncurses #109
Comments
I can document these fields shortly. Remember, the caching code was originally based from Facebook's flashcache-wt: https://github.com/facebookarchive/flashcache/blob/master/doc/flashcache-doc.txt |
Here we go (I will add this with better detail to the Wiki and project source documentation):
RapidDisk-Cache device name.
Number of total reads to the RapidDisk-Cache front-node device. That means total reads that will hit both the RapidDisk RAM drive and backing store.
Number of total writes to the RapidDisk-Cache front-node device. That means total writes that will hit both the RapidDisk RAM drive and backing store.
Number of read/write operations that hit the cache (i.e. the RapidDisk RAM drive).
Follows a cache miss, where blocks are replaced into the cache volume i.e. the RapidDisk RAM drive).
Hmmm. I need to dig deeper into the code for this one. But this may be the writes replaced out of the cache. If that is the case, you would not see this increment in WA mode.
Invalidated overlapping read cache blocks.
Invalidated overlapping write cache blocks.
Backing store reads that were not cached.
Backing store writes that were not cached.
Backing store reads.
Backing store writes.
Cached reads.
Cached writes. EDIT:
Yes, in a WA caching policy, that should be the case, because the writes are not cached. |
@matteotenca This is next on my TODO list (i.e. documenting these fields) but am intrigued to learn more about this graphical piece. It would be neat. |
@pkoutoupis Thank you for the informations. I'm writing a PHP app using some JS libraries to show graphs etc. I want to write a PHP interface (webserver involved) and a Python CLI tool using I'm attaching two screenshots. Regards |
Updated Wiki to include stats description: https://github.com/pkoutoupis/rapiddisk/wiki/Miscellaneous#understanding-the-rapiddisk-cache-statistics and added you to the PR: #111 Also, the mockups look neat. Thank you for experimenting and doing this work. |
an very good feature for an very good utility |
Hello,
not an issue, but an idea: use
rapiddiskd
and (for example) a web server + PHP to showrapiddisk
's statistics in a fashonable way.ncurses
may be used too, in a command line tool, same idea, different approach.The objective is to show a real-time graph of the changing stats for a device. But to be honest I don't understand the exact meaning of many of the values - when/if you have time you might explain them to me:
device
- no problemreads
- global read operations performed byrapiddisk
? What is the unit of measurement of this value?writes
- as abovecache_hits
- the number of read operations (?) which did not require disk access?replacement
- no cluewrite_replacement
- no clueread_invalidates
- no cluewrite_invalidates
- no clueuncached_reads
- the number of read operations (?) which did not go into the cache?uncached_writes
- as abovedisk_reads
- the number of read operations (?) which required disk access? Is this equal toreads
-cache_hits
(orcache_reads
)?disk_writes
- same as above? In WA cachewrites
==disk_writes
==uncached_writes
?cache_reads
- no cluecache_writes
- no clueThanks in advance!
Regards
The text was updated successfully, but these errors were encountered: