[ 
https://issues.apache.org/jira/browse/OAK-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15101839#comment-15101839
 ] 

Teodor Rosu commented on OAK-3850:
----------------------------------

Regarding timers:
First. I added a timer to the "readIfPresent in NodeCache" operation ( in the 
test above where all the reads are served from the persistent cache ). Below 
you can see the time spent in reading from cache. 
 
org.apache.jackrabbit.oak.plugins.document.persistentCache.PersistentCacheStats.NODE.hitTimer,
 
count=98719774, 
min=0.246, 
max=10.925, 
mean=0.4496718933147956, 
stddev=0.4170056965106299, 
median=0.41400000000000003, 
p75=0.449, 
p95=0.608, 
p98=0.792, 
p99=0.842, 
p999=10.925, 
mean_rate=1234535.2823771138, 
m1=1206272.3707543525, 
m5=1149945.882194646, 
m15=1133372.9935419066, 
rate_unit=events/second, 
duration_unit=microseconds 

Second. Is the entry load ( on cache miss ) Timer needed ( or very relevant )? 
On persistent cache load operation oak will either hit the DocumentStore 
memory/persistent cache which should be very fast OR the DocumentStore 
(uncached) find operation which is considerably slower. 

> Collect and expose Persistent Cache stats
> -----------------------------------------
>
>                 Key: OAK-3850
>                 URL: https://issues.apache.org/jira/browse/OAK-3850
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core, documentmk
>            Reporter: Teodor Rosu
>         Attachments: OAK-3850-v0.patch, OAK-3850-v1.patch, 
> test-performance-v0.patch
>
>
> Expose persistent cache statistics ( see: [Guava 
> CacheStats|http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheStats.html]
>  )



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to