<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="display: none;">P {margin-top:0;margin-bottom:0;}</style><style type="text/css" id="owaParaStyle" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
</head>
<body dir="ltr" fpstyle="1" aria-label="Message body" tabindex="0" style="">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family: Calibri,Arial,Helvetica,sans-serif; font-size: 12pt; color: #000000; margin: 0">
To answer at least part of my own question, I think the issue was cause by increasing the ulimit for nofile to 1000000. Here's the child_setup line:
<div><br>
</div>
<div>/usr/local/lib/erlang/erts-5.10.1/bin/child_setup false . exec /bin/sh -s unix:cmd 2>&1 3:999999 50:1 56:0 -</div>
<div><br>
</div>
<div><br>
<div dir="ltr" style="color: rgb(40, 40, 40);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> erlang-questions-bounces@erlang.org on behalf of Ransom Richardson<br>
<b>Sent:</b> Thursday, June 13, 2013 3:36 PM<br>
<b>To:</b> erlang-questions@erlang.org<br>
<b>Subject:</b> [erlang-questions] child_setup high CPU usage</font>
<div> </div>
</div>
<div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:#000000; margin:0">
I'm seeing an issue where under what should be light load I see two child_setup processes spawned by Erlang using 100% CPU (combined) and making my machine unresponsive for a number of seconds.
<div><br>
</div>
<div>I recently updated to R16B and never saw this issue on previous releases.
<div><br>
</div>
<div>This happens when processing files sent over ssl from a client. My code uploads the files to S3 (using erlcloud, which uses httpc). If the client uploads only a few files it works fine. But if the client uploads about 6 files in a row then I see the behavior
where the two child_setup processes consume 100% CPU. I would expect the only CPU intensive parts of this operation to be the calls to digest and MAC the S3 request. I'm not aware of any calls made to the shell in this scenario.</div>
<div><br>
</div>
<div>I plan to debug further, but would be interested if anyone else has seen this or has ideas as to what could be causing this or how best to start looking.</div>
<div><br>
</div>
<div>thanks,</div>
<div>Ransom</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>