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

Dmitry Werner updated IGNITE-29032:
-----------------------------------
    Summary: Make page eviction account for the size of the inserted data  
(was: Improvement of the page eviction mechanism for in-memory)

> Make page eviction account for the size of the inserted data
> ------------------------------------------------------------
>
>                 Key: IGNITE-29032
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29032
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Dmitry Werner
>            Assignee: Dmitry Werner
>            Priority: Major
>             Fix For: 2.20
>
>          Time Spent: 7h
>  Remaining Estimate: 0h
>
> With page eviction enabled, an in-memory data region can still overflow with 
> IgniteOutOfMemoryException when a large entry or a putAll batch is inserted.
> Before an insert, eviction frees pages only until a fixed number of empty 
> pages is available (DataRegionConfiguration.emptyPagesPoolSize, 100 by 
> default), regardless of how much space the insert needs. An entry or batch 
> that needs more pages than that exhausts the region. The only workaround is 
> to raise emptyPagesPoolSize to cover the largest entry.
> Eviction should take the size of the inserted data into account: before an 
> insert, as many pages as the entry or batch needs are reserved, and old 
> entries are evicted until that many pages are free. An insert that cannot fit 
> in the region at all is rejected with IgniteOutOfMemoryException.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to