[
https://issues.apache.org/jira/browse/OAK-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15484233#comment-15484233
]
Michael Dürig commented on OAK-4635:
------------------------------------
Bulk of the changes are in: http://svn.apache.org/viewvc?rev=1760372&view=rev
The former {{NodeCache}} based on levels according to the depth of a node in
the tree has now be replaces by the {{PriorityCache}}. That cache associates a
cost to each mapping such that mappings with higher costs have a lower chance
of being evicted. Currently the number of child nodes of a node is used for the
cost of a node in the cache.
> Improve cache eviction policy of the node deduplication cache
> -------------------------------------------------------------
>
> Key: OAK-4635
> URL: https://issues.apache.org/jira/browse/OAK-4635
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segment-tar
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Labels: perfomance
> Fix For: Segment Tar 0.0.12
>
> Attachments: OAK-4635.m, OAK-4635.pdf
>
>
> {{NodeCache}} uses one stripe per depth (of the nodes in the tree). Once its
> overall capacity (default 1000000 nodes) is exceeded, it clears all nodes
> from the stripe with the greatest depth. This can be problematic when the
> stripe with the greatest depth contains most of the nodes as clearing it
> would result in an almost empty cache.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)