You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/04/10 07:18:12 UTC

[jira] [Commented] (OAK-2744) Change default cache distribution ratio if persistent cache is enabled

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

Chetan Mehrotra commented on OAK-2744:
--------------------------------------

[~egli] [~mreutegg] [~tmueller] Thoughts?

> Change default cache distribution ratio if persistent cache is enabled
> ----------------------------------------------------------------------
>
>                 Key: OAK-2744
>                 URL: https://issues.apache.org/jira/browse/OAK-2744
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: mongomk
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.0.13, 1.3.0, 1.2.1
>
>
> By default the cache memory in DocumentNodeStore is distributed in following ratio
> * nodeCache - 25%
> * childrenCache - 10%
> * docChildrenCache - 3%
> * diffCache - 5%
> * documentCache - Is given the rest i.e. 57%
> However off late we have found that with persistent cache enabled we can lower the cache allocated to Document cache. That would reduce the time spent in invalidating cache entries in periodic reads. So far we are using following ration in few setup and that is turning out well
> * nodeCachePercentage=35
> * childrenCachePercentage=20
> * diffCachePercentage=30
> * docChildrenCachePercentage=10
> * documentCache - Is given the rest i.e. 5%
> We should use the above distribution by default if the persistent cache is found to be enabled



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