[erlang-questions] How to tune erlang memory allocator to use 25 GB of ram and stop munmaping it?

Lukas Larsson lukas@REDACTED
Wed Aug 14 16:55:54 CEST 2013


Looking quickly at the binary_alloc info you have a lot of the data
allocated by sys_alloc. sys_alloc uses malloc directly, so there is no
cache there. Maybe try setting +MBmmsbc 2048, I got 2048 by adding
mseg_alloc_carriers to sys_alloc_carriers for sbcs and then adding a small
buffer.

Lukas


On Wed, Aug 14, 2013 at 4:41 PM, Max Lapshin <max.lapshin@REDACTED> wrote:

> I'm running erlang R16B01 on Debian linux (kernel 3.2.0)
>
>
> Here is my binary allocator info:
> https://gist.github.com/maxlapshin/6231659
>
> here is mseg_allocator:  https://gist.github.com/maxlapshin/6231710
>
> I've restarted erlang with +MMmcs 30:
>
> erts-5.10.2/bin/beam.smp -K true -A 160 -MMmcs 30 -stbt s -- ...
>
> Looks like number of mmap/munmap has lowered.
>
> Will try to understand this allocator information.
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130814/3a1ba755/attachment.htm>


More information about the erlang-questions mailing list