process memory and performance

Dmitriy Kargapolov <>
Tue Mar 1 22:29:54 CET 2011

On Fri, Feb 11, 2011 at 2:46 PM, Dmitriy Kargapolov <
> wrote:

> Hi all,
> I have some process (gen_sever) performing multiple mnesia queries, so
> complex lookup takes about 840 mks (pretty old h/w, non-smp, R11B-5). When
> internal in-memory storage added to this process, so its memory increased up
> to ~ 60MB, same lookup slow down to 2200 mks. Note that in this test lookup
> did not use big memory. This big memory organized as complex recursive data
> structure.
> Why memory allocated by process indirectly affects its performance? Is it
> related to how GC works?
> Thanks.

Revisiting this issue I found that previous developers of the project did
set 'fullsweep_after' gc parameter to 15, probably trying to reduce memory
consumption... Setting it back to default value (65535) I have "solved" the

More information about the erlang-questions mailing list