[ 
https://issues.apache.org/jira/browse/IGNITE-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138929#comment-15138929
 ] 

Vladimir Ershov commented on IGNITE-2509:
-----------------------------------------

Fix one more problem related to metrics, run Den's script, got this output, 
assuming this is correct behavior:
{noformat}
[16:16:32] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8, heap=1.8GB]
onHeap=5,offEnt = 0, offAlloc = 2621465, swap = 2120, cache_size = 2125
onHeap=5,offEnt = 0, offAlloc = 2621465, swap = 2509, cache_size = 2514
onHeap=5,offEnt = 0, offAlloc = 2621465, swap = 3045, cache_size = 3050
onHeap=5,offEnt = 0, offAlloc = 2621465, swap = 3701, cache_size = 3706
onHeap=5,offEnt = 0, offAlloc = 2621465, swap = 4447, cache_size = 4452
{noformat}

Will add special test for Cluster metrics.

> Broken eviction and metrics for OFFHEAP_VALUES cache mode
> ---------------------------------------------------------
>
>                 Key: IGNITE-2509
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2509
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 1.5.0.final
>            Reporter: Denis Magda
>            Assignee: Vladimir Ershov
>            Priority: Blocker
>             Fix For: 1.6
>
>         Attachments: EvictionBug.java, eviction_fix.patch
>
>
> In case when {{OFFHEAP_VALUES}} mode is used {{EvictionPolicy}} calculates 
> values size wrongly which leads to the fact that data is evicted only when 
> either the limit on number of entries is reached or size of keys is bigger 
> than max allowed size.
> To reproduce set the following cache configuration
> {noformat}
>         FifoEvictionPolicy plc = new FifoEvictionPolicy();
>         plc.setMaxMemorySize(2 * 1024 * 1024);
>         cacheCfg.setEvictionPolicy(plc);
>         cacheCfg.setMemoryMode(CacheMemoryMode.OFFHEAP_VALUES);
>         cacheCfg.setSwapEnabled(true);
> {noformat}
> Test that reproduces the issue is attached.
> Also attached a patch that fixes the issue. However we should validate that 
> the fix is full and add additional tests to the test suites.
> Finally, {{cache.metrics().getOffHeapAllocatedSize()}} always returns 0 for 
> this cache mode. Has to be fixed as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to