[erlang-questions] Problem with erlang:memory(processes_used)

Lukas Larsson <>
Mon Nov 24 10:49:35 CET 2014


Hello,

Could you please provide the output of
erlang:system_info({allocator,eheap_alloc})
and erlang:system_info({allocator,fix_alloc}). erlang:memory is based on
the total of the first element in the blocks_size tuple of each instance
for sbcs and mbcs. Something seems to be calculated or reported incorrectly
there.

Lukas

On Mon, Nov 24, 2014 at 10:29 AM, Alexander Petrovsky <>
wrote:

> Hi!
>
> On Erlang v.17, the function erlang:memory(process_used) shows that
> summary size on used memory near 17 (exa?)byte. The erlang application
> build on the CI server as erlang release and then  rolled on the cluster.
>
> CI server:
>
> > erlang:system_info(system_version).
> "Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10]
> [kernel-poll:false]\n"
>
> # uname -a
> Linux ci.our.net 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
>
>
> Target server:
>
> > erlang:system_info(system_version).
> "Erlang/OTP 17 [erts-6.2] [source] [64-bit] [smp:4:4] [async-threads:10]
> [kernel-poll:true]\n"
>
> > erlang:memory(processes_used).
>
> 18446744073687889792
>
> > lists:sum([V || {memory, V} <- [erlang:process_info(Pid, memory) || Pid
> <- erlang:processes()]]).
> 15523320
>
> # uname -a
> Linux n2432.our.net 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64 GNU/Linux
>
> # free -m
>              total       used       free     shared    buffers     cached
> Mem:          7978       3397       4581          0        289       1511
> -/+ buffers/cache:       1596       6382
> Swap:        15625          0      15625
>
> Can someone please help me with this?
>
> --
> Петровский Александр / Alexander Petrovsky,
>
> Skype: askjuise
> Phone: +7 914 8 820 815
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141124/c7a81359/attachment.html>


More information about the erlang-questions mailing list