Reading disc_copies table into memory upon starting mnesia

Yogish Baliga yogishb@REDACTED
Fri Jan 22 08:53:57 CET 2010


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