[
https://issues.apache.org/jira/browse/IGNITE-29032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147810#comment-18147810
]
Dmitry Werner edited comment on IGNITE-29032 at 11/25/26, 6:35 PM:
-------------------------------------------------------------------
[~alex_pl] Thank you very much for the review!
Merged into master.
was (Author: dwerner):
[~alexpl] Thank you very much for the review!
Merged into master.
> 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)