[ https://issues.apache.org/jira/browse/GEODE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170221#comment-15170221 ]
ASF subversion and git services commented on GEODE-996: ------------------------------------------------------- Commit f15010cf6996e7d82c27ee9573e708182d061a80 in incubator-geode's branch refs/heads/feature/GEODE-996 from [~sboorlagadda] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=f15010c ] GEODE-996: OffheapStats - fragmentation percentage calculation has to be revisited. > OffheapStats - fragmentation percentage calculation has to be revisited. > ------------------------------------------------------------------------ > > Key: GEODE-996 > URL: https://issues.apache.org/jira/browse/GEODE-996 > Project: Geode > Issue Type: Bug > Components: docs, offheap > Reporter: Sai Boorlagadda > Assignee: Sai Boorlagadda > > Fragmentation calculation is not correct before compaction or even after > compaction if the largest fragment is >= MAX_SLAB_SIZE. > Currently the fragmentation is calculated as below. > {quote} > FS - LF > ----------- * 100 > FS > FS: Free space found during compaction > LF: Largest fragment found during compaction > {quote} > eg: > For a free space of 100G and largest fragment = 2G (MAX_SLAB_SIZE) > Fragmentation = (100G - 2G / 100G) * 100 ~ 98% (where as we want it to be > close to 0 as the free space is not fragmented) -- This message was sent by Atlassian JIRA (v6.3.4#6332)