You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Sai Boorlagadda (JIRA)" <ji...@apache.org> on 2016/03/01 23:25:18 UTC

[jira] [Closed] (GEODE-996) OffheapStats - fragmentation percentage calculation has to be revisited.

     [ https://issues.apache.org/jira/browse/GEODE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sai Boorlagadda closed GEODE-996.
---------------------------------

> 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)