You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Rakov (JIRA)" <ji...@apache.org> on 2017/06/14 15:40:00 UTC

[jira] [Updated] (IGNITE-5490) Implement replacement for obsolete CacheMetrics#getOffHeapAllocatedSize

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

Ivan Rakov updated IGNITE-5490:
-------------------------------
    Description: 
With 2.0 new architecture, many caches can share one memory policy. Memory metrics allows to measure memory usage (loaded pages) for the whole policy. However, there's also a need to measure how much memory (or pages) is used by each cache.
Before 2.0 such information was accessible with CacheMetrics#getOffHeapAllocatedSize, but current implemetation returns 0.
We should either implement it or provide alternative metrics (e. g. approximate number of loaded pages per cache). Please note that precise number of loaded pages per cache is not defined - one page can contain entries of different caches.

  was:
With 2.0 new architecture, many caches can share one memory policy. Memory metrics allows to measure memory usage (loaded pages) for the whole policy. However, there's also a need to measure how much memory (or pages) is used by each cache.
Before 2.0 such information was accessible with CacheMetrics#getOffHeapAllocatedSize, but current implemetation returns 0.
We should either implement it or provide alternative metrics (e. g. approximate number of loaded pages per cache). Please note that precise number of loaded pages per cache is not defined - one page can contain entries of differet caches.


> Implement replacement for obsolete CacheMetrics#getOffHeapAllocatedSize
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-5490
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5490
>             Project: Ignite
>          Issue Type: Improvement
>          Components: cache
>    Affects Versions: 2.0
>            Reporter: Ivan Rakov
>
> With 2.0 new architecture, many caches can share one memory policy. Memory metrics allows to measure memory usage (loaded pages) for the whole policy. However, there's also a need to measure how much memory (or pages) is used by each cache.
> Before 2.0 such information was accessible with CacheMetrics#getOffHeapAllocatedSize, but current implemetation returns 0.
> We should either implement it or provide alternative metrics (e. g. approximate number of loaded pages per cache). Please note that precise number of loaded pages per cache is not defined - one page can contain entries of different caches.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)