Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
1PB of arg_reg - wait what?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Simon MacMullen  
View profile  
 More options May 8 2012, 10:30 am
From: Simon MacMullen <si...@rabbitmq.com>
Date: Tue, 08 May 2012 15:30:11 +0100
Local: Tues, May 8 2012 10:30 am
Subject: [erlang-questions] 1PB of arg_reg - wait what?
We've just had a report of a Rabbit broker dying trying to allocate
approximately 1PB of memory:

http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-May/019896....

Slogan: std_alloc: Cannot allocate 1124304355803072 bytes of memory (of
type "arg_reg").

Which is unfortunate enough in itself - but arg_reg? My understanding of
beam internals is not great, but that looks to be something like a stack
frame. A 1PB stack frame?

As far as I can see "arg_reg" memory is only allocated in one place,
around line 3100 of beam_emu.c:

https://github.com/erlang/otp/blob/maint/erts/emulator/beam/beam_emu....

...where size is set to c_p->arity * sizeof(c_p->arg_reg[0]).

process.arg_reg is an Eterm*, so sizeof(Eterm) *cannot* be huge, so it
must be the arity which is ~10^15. We have some excessive arities in
RabbitMQ, but not quite to that extent.

Does anyone have any idea how this could arise, or can it just be
chalked up to cosmic rays?

Cheers, Simon

--
Simon MacMullen
RabbitMQ, VMware
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Max Lapshin  
View profile  
 More options May 8 2012, 3:31 pm
From: Max Lapshin <max.laps...@gmail.com>
Date: Tue, 8 May 2012 23:31:24 +0400
Local: Tues, May 8 2012 3:31 pm
Subject: Re: [erlang-questions] 1PB of arg_reg - wait what?
99% that some error in process with many terms leads to error_logger
eating all possible CPU and memory.
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »