jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-4451) Implement a proper template cache
Date Wed, 20 Jul 2016 08:02:20 GMT

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

Michael Dürig commented on OAK-4451:
------------------------------------

Initial implementation based on above commit at http://svn.apache.org/viewvc?rev=1753464&view=rev.

[~tmueller], could you have a look at the memory calculation bits? Specifically the implementations
of {{ReaderCache.getEntryWeight()}}.

> Implement a proper template cache
> ---------------------------------
>
>                 Key: OAK-4451
>                 URL: https://issues.apache.org/jira/browse/OAK-4451
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: segment-tar
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>              Labels: cache, monitoring, production
>             Fix For: 1.6, Segment Tar 0.0.6
>
>
> The template cache is currently just a map per segment. This is problematic in various
ways: 
> * A segment needs to be in memory and probably loaded first only to read something from
the cache. 
> * No monitoring, instrumentation of the cache
> * No control over memory consumption 
> We should there for come up with a proper template cache implementation in the same way
we have done for strings ({{StringCache}}) in OAK-3007. Analogously that cache should be owned
by the {{CachingSegmentReader}}. 



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

Mime
View raw message