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/02/22 23:34:18 UTC

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

Sai Boorlagadda created GEODE-996:
-------------------------------------

             Summary: 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: offheap
            Reporter: 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)