[erlang-questions] Reading disc_copies table into memory upon starting mnesia

Dan Gudmundsson dangud@REDACTED
Fri Jan 22 10:24:02 CET 2010


There are no such plans, mnesia is mostly (except for disc_only) a ram
based database.
/Dan

On Fri, Jan 22, 2010 at 8:53 AM, Yogish Baliga <yogishb@REDACTED> wrote:
> Hello all,
>
>  Recently I noticed that disc_copies will try to read everything from the table into memory during startup. Even though the table size is around 20MB, memory consumed is around 500MB. As the size of the table increases, there is a high chance that it is not possible to start mnesia anymore as all memory is consumed by mnesia disc_copies table and before it could successfully start, VM crashes.
>
>  Is there any plan to re-implement disc_copies table without reading whole table into memory, instead read only partial data into memory. And also to specify the max. memory that can be allocated for mnesia tables [as in MySQL innodb_buffer_pool_size parameter].
>
> -- baliga
>
>
> "Point of view is worth 80 IQ points" --Alan Kay
>
> http://dudefrommangalore.blogspot.com/


More information about the erlang-questions mailing list