You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/11/05 18:46:00 UTC

[jira] [Commented] (GEODE-8537) Memory increases whenever LRU eviction is enabled

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

ASF GitHub Bot commented on GEODE-8537:
---------------------------------------

gaussianrecurrence opened a new pull request #687:
URL: https://github.com/apache/geode-native/pull/687


   - Whenever LRU eviction was enabled it was noted an slight increase in the memory usage.
     Specifically in an scenario in which a set of entries are continously created and destroyed.
   - Problem was that entries within LRUList where inserted but not removed until LRU
      eviction happened and in the described case above, that was never.
   - Solution was to replace the LRUList by a refactored version called LRUQueue and
     also to remove the entries from the queue upon destroy or invalidation.
   - Also a dead-lock between EvictionController and EvictionThread has been solved.
     However this part is asking for a refactor.
   - Unit tests have been added for the LRUQueue.
   - Integration test have been added in the new integration test for the LRU eviction.
   - Also a wrongly implemented LRU eviction test was removed from the old integration tests.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Memory increases whenever LRU eviction is enabled
> -------------------------------------------------
>
>                 Key: GEODE-8537
>                 URL: https://issues.apache.org/jira/browse/GEODE-8537
>             Project: Geode
>          Issue Type: Bug
>          Components: native client
>    Affects Versions: 1.13.0
>            Reporter: Mario Salazar de Torres
>            Assignee: Mario Salazar de Torres
>            Priority: Major
>         Attachments: massif-8419.png, massif.out.8419
>
>
> *HAVING* configured concurrency-checks-enabled=false in the client-cache.xml for a region
> *HAVING* configured heap-lru-limit=10 in the client-cache.xml for the region region
> *HAVING* configured heap-lru-delta=10 in the client-cache.xml for the region region
> *HAVING* configured subscription-notification for the pool on which the region is defined
> *HAVING* regsitered interest on all the keys of this region, values included
> *AFTER* receiving lots of LOCA_CREATE and LOCAL_DESTROY notifications
> *THEN* memory increases continously over time, even going over the LRU limit.
> Find massif tool report as massif.out.8419 showing the memory increase.
> Also this is a capture of massif-visualizer for the report:
> !massif-8419.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)