[
https://issues.apache.org/jira/browse/GEODE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sai Boorlagadda reassigned GEODE-996:
-------------------------------------
Assignee: Sai Boorlagadda
> 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)