[erlang-questions] poor performance on Linux?

Dustin Sallings <>
Thu Aug 16 22:30:05 CEST 2007


	I have two machines I've been trying my software on:

	My old macbook pro (2GHz Core Duo)
	Ubuntu server with 8 2.33GHz Xeon cores.

	On my mac:

Erlang (BEAM) emulator version 5.5.5 [source] [async-threads:0]  
[hipe] [kernel-poll:false]

	On the ubuntu server:

Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0]  
[hipe] [kernel-poll:false]

	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.

	Isolating the components as I can into separate processes and using  
the synchronous form of http:request, I see this on the nodes I have  
running:

	My mac:

httpc_manager         <5291.60.0>  httpc_manager:init/1            
1136283    0

	Each linux node:

httpc_manager         <5253.44.0>  httpc_manager:init/1            
9530010 9217
httpc_manager         <5294.44.0>  httpc_manager:init/1            
9360826 9850
httpc_manager         <5292.44.0>  httpc_manager:init/1            
9635531 9773
httpc_manager         <5293.44.0>  httpc_manager:init/1            
9611592 9544

	Looking further into one of those processes:

<5253.44.0>           httpc_manager:init/1               2629425   
7236635 1102
httpc_manager         proc_lib:sync_wait/2                    29

	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.

	Is there any reason my Linux machine should perform significantly  
more poorly than my mac in this application?

-- 
Dustin Sallings


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070816/88c2aeab/attachment.html>


More information about the erlang-questions mailing list