[ https://issues.apache.org/jira/browse/OAK-1804?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14010188#comment-14010188 ]
Jukka Zitting commented on OAK-1804: ------------------------------------ In revision 1597854 I adjusted the compaction code to avoid memory problems when doing a deep compaction of an existing repository. In revision 1597860 I committed the oak-run part of your earlier patch, apart from the compaction level option. I think we need to refactor the code a bit to make this part a bit more flexible. > TarMK compaction > ---------------- > > Key: OAK-1804 > URL: https://issues.apache.org/jira/browse/OAK-1804 > Project: Jackrabbit Oak > Issue Type: New Feature > Components: segmentmk > Reporter: Jukka Zitting > Assignee: Alex Parvulescu > Labels: production, tools > Fix For: 1.0.1, 1.1 > > Attachments: SegmentNodeStore.java.patch, compaction.patch > > > The TarMK would benefit from periodic "compact" operations that would > traverse and recreate (parts of) the content tree in order to optimize the > storage layout. More specifically, such compaction would: > * Optimize performance by increasing locality and reducing duplication, both > of which improve the effectiveness of caching. > * Allow the garbage collector to release more unused disk space by removing > references to segments where only a subset of content is reachable. -- This message was sent by Atlassian JIRA (v6.2#6252)