Understanding Erlang based behaviour.

vipin <>
Mon Mar 6 08:18:38 CET 2006


Hi,
  In order to understand the behaviour of an Erlang server, we deviced
  several experiments based around a simple echo server. The Erlang-based
  echo server accepts connections from clients and merely echoes the
  messages sent to it. To start with, we spawned clients from a single
  separate machine and logged the number of messages handled by the
  echo server. We seemed to be approaching a certain limit.

  Now, if we used two separate client machines to spawn clients,
  we seemed to be approaching a different limit that appears to be
  twice the earlier single client machine limit. So, naturally we
  moved to three separate client machines to spawn clients. The
  ability to handle client machines shot up sharply and erratically.

  We would appreciate anyone shedding light on the results of our
  experiments. We are attaching below the Erlang code for both
  the echo server and clients. The results are tabulated below.

  We measured the server load in terms of the number of client messages
  handled per minute. The machine on which the Erlang-based echo server
  ran was constant throughout the experiment.

 No of           pkt/min       pkt/min
  Clients        (single m/c)  (two m/c)
-----------------------------------------
   10            123751        237008			
   20            123754        261100			
   30            123744        255102			
   40            123752        252738			
   60            123757        249248			
   80            123760        252072			
   100           123760        252523			
   150           123766        248284			
   200           123766        247534			
   300           123766        253735			
   500           123766        268661			
   1000          123765        299774			
-----------------------------------------
 
 No of          pkt/min
  Clients       (three m/c)
-----------------------------------------
   15          505751.9
   30          726991
   45          915570.4
   60          1039133.7
   75          1124196.2
   90          1157796.3
   150         1094065
   210         1074785
   300         912289.6
   600         996473.7
   1200        363128.5
-----------------------------------------

Thanks in advance.
Vipin Puri


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: echoserv.erl
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060306/86ca4b7d/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: echoclient.erl
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060306/86ca4b7d/attachment-0001.ksh>


More information about the erlang-questions mailing list