[
https://issues.apache.org/jira/browse/OAK-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14502532#comment-14502532
]
Marcel Reutegger commented on OAK-2744:
---------------------------------------
The reason for the low percentage for the document case is OAK-2646. IIRC, the
proposed cache percentages were used on systems where a higher overall cache
size was configured. E.g. with 2GB and 5% for the document cache, this means it
gets about 100MB, which is slightly less than with the default config.
> 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.3.0
>
>
> 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)