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

Alexander Petrovsky <>
Mon Nov 24 10:59:43 CET 2014


Hi!

Sure! The results in attachment.

2014-11-24 9:49 GMT+00:00 Lukas Larsson <>:

> 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
>>
>>
>


-- 
Петровский Александр / Alexander Petrovsky,

Skype: askjuise
Phone: +7 914 8 820 815
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141124/e86681ca/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eheap_alloc
Type: application/octet-stream
Size: 8989 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141124/e86681ca/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_alloc
Type: application/octet-stream
Size: 10328 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141124/e86681ca/attachment-0003.obj>


More information about the erlang-questions mailing list