ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkarachentsev <dkarachent...@gridgain.com>
Subject Re: Cache size in offheap mem in bytes
Date Wed, 27 Jun 2018 08:45:03 GMT

It will be incorrect, because entries are not stored sequentially, there are
a lot of infrastructure that requires additional space. For example, memory
is divided into pages and each page has header, each entry has key and
value, version and other service information. For quick access to entries is
created b+tree (which consists of pages too), synchronization primitives,
links and binary object overhead to allow access to it's fields. 

It's quire hard to say how much memory will be required, just approximately
[1]. The best way will be to load some number of data and measure how much
memory was consumed. You need to make many such measures, because only on
large number of entries memory consumption will increase linearly.

[1] https://apacheignite.readme.io/docs/capacity-planning


Sent from: http://apache-ignite-users.70518.x6.nabble.com/

View raw message