<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="webkit-block-placeholder"></div><span class="Apple-tab-span" style="white-space:pre"> </span>I have two machines I've been trying my software on:<div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>My old macbook pro (2GHz Core Duo)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Ubuntu server with 8 2.33GHz Xeon cores.<br><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>On my mac:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0] [hipe] [kernel-poll:false]</div></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>On the ubuntu server:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [hipe] [kernel-poll:false]</div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>The exact problem I'm seeing is that when I run my software (which heavily exercises inets http client), any work that's sent to a node on the linux box is performed considerably more slowly than work on my mac.<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Isolating the components as I can into separate processes and using the synchronous form of <a href="http:request">http:request</a>, I see this on the nodes I have running:</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>My mac:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>httpc_manager <5291.60.0> httpc_manager:init/1 1136283 0</div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Each linux node:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div>httpc_manager <5253.44.0> httpc_manager:init/1 9530010 9217</div><div>httpc_manager <5294.44.0> httpc_manager:init/1 9360826 9850</div><div>httpc_manager <5292.44.0> httpc_manager:init/1 9635531 9773</div><div>httpc_manager <5293.44.0> httpc_manager:init/1 9611592 9544</div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Looking further into one of those processes:<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div><div><5253.44.0> httpc_manager:init/1 2629425 7236635 1102</div><div>httpc_manager proc_lib:sync_wait/2 29 </div></div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>I've got similar performance issues regardless of the number of nodes I run on the linux box. The load is distributed evenly across all nodes.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Is there any reason my Linux machine should perform significantly more poorly than my mac in this application?<br class="webkit-block-placeholder"></div><div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>-- </div><div>Dustin Sallings</div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>