Fresh is both RAM and disk. To get the RAM cache ratio it is traffic_top also.
The colors are kinda arbitrary. I "borrowed" the idea from dstat.
100 - 90 -> red
90 - 80 -> yellow
50 - 80 -> blue
0 - 50 -> geen
Trillion -> red
Billion -> red
Million -> yellow
Thousand -> cyan (should be blue)
<= 1000 -> green
There is a bug in the timing information.
Hi Bryan and community,
Thank you for your reply! Does the fresh indicates disk hits or both ram+disk hits?
And also a few other questions,
What does the different colors mean in the output?
What does Fresh(ms) mean, the sentence on the documentation site does not make sense to me (it says the average loop up time for fresh cache serving), but I am seeing a value of 400k, I don’t think each lookup takes 400k ms.
It depends on what you mean as a miss. If you mean that it has to go to the origin no matter what (even revalidating the cache entry) then it should be 100 - fresh.
Also, if you hit "a" you can get the stats from since the server started and you can get the number of incoming requests and requests going go the origin.
I see there is such tool traffic_top, but I am confusing which of the number shows miss ratio?
By miss ratio I mean the number that miss_ratio*request_traffic=traffic_to_origin.