[erlang-questions] latency of smp vs non-smp + optimizing throughput

Joel Reymont joelr1@REDACTED
Mon Oct 6 15:34:01 CEST 2008


The good news here is that Solaris/Opteron (Nevada) doesn't seem to  
break a sweat. Note that SMP is disabled.

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

--- 3k games, 15K players, 3 VMs ---

(1@REDACTED)2> dmb:test(3000).
gateway:start('1@REDACTED', 4000, 500000)
Waiting for game servers...
Starting a port server on 4000...
Simulating gameplay with 3000 games...
50 games started, 262 players
...
3000 games started, 15115 players
dmb: 3000 games launching simultaneously
dmb: waiting for games to end...

=INFO REPORT==== 6-Oct-2008::13:24:59 ===
     module: stats
     elapsed: 10.000873
     bytes_in: 68767
     bytes_out: 21636
     packets_in: 3842
     packets_out: 2404
     {bytes_in,per_sec}: 6876
     {bytes_out,per_sec}: 2163
     {packets_in,per_sec}: 384
     {packets_out,per_sec}: 240
     {time_to_client,min}: 0.328
     {time_to_server,min}: -0.153
     {time_to_client,max}: 15.524
     {time_to_server,max}: 7.772
     {time_to_client,avg}: 0.9502826468283405
     {time_to_server,avg}: 0.5327277638966361

=INFO REPORT==== 6-Oct-2008::13:25:09 ===
     module: stats
     elapsed: 10.001858
     bytes_in: 282707
     bytes_out: 88956
     packets_in: 15795
     packets_out: 9884
     {bytes_in,per_sec}: 28265
     {bytes_out,per_sec}: 8893
     {packets_in,per_sec}: 1579
     {packets_out,per_sec}: 988
     {time_to_client,min}: 0.342
     {time_to_server,min}: -0.154
     {time_to_client,max}: 32.193
     {time_to_server,max}: 9.188
     {time_to_client,avg}: 0.5440724004487766
     {time_to_server,avg}: 0.16925260605105938

=INFO REPORT==== 6-Oct-2008::13:25:19 ===
     module: stats
     elapsed: 9.998239
     bytes_in: 1017300
     bytes_out: 1076952
     packets_in: 43558
     packets_out: 73806
     {bytes_in,per_sec}: 101747
     {bytes_out,per_sec}: 107714
     {packets_in,per_sec}: 4356
     {packets_out,per_sec}: 7381
     {time_to_client,min}: 0.273
     {time_to_server,min}: -0.166
     {time_to_client,max}: 17.486
     {time_to_server,max}: 36.317
     {time_to_client,avg}: 0.8381414371981343
     {time_to_server,avg}: -0.06003086403873219

=INFO REPORT==== 6-Oct-2008::13:25:29 ===
     module: stats
     elapsed: 9.999059
     bytes_in: 941158
     bytes_out: 2475950
     packets_in: 39362
     packets_out: 190330
     {bytes_in,per_sec}: 94124
     {bytes_out,per_sec}: 247618
     {packets_in,per_sec}: 3936
     {packets_out,per_sec}: 19034
     {time_to_client,min}: 0.27
     {time_to_server,min}: -0.167
     {time_to_client,max}: 140.496
     {time_to_server,max}: 13.837
     {time_to_client,avg}: 85.4554748230033
     {time_to_server,avg}: 3.818637893852275

=INFO REPORT==== 6-Oct-2008::13:25:39 ===
     module: stats
     elapsed: 10.001362
     bytes_in: 537800
     bytes_out: 3835109
     packets_in: 22175
     packets_out: 309980
     {bytes_in,per_sec}: 53772
     {bytes_out,per_sec}: 383458
     {packets_in,per_sec}: 2217
     {packets_out,per_sec}: 30993
     {time_to_client,min}: 6.174
     {time_to_server,min}: 0.252
     {time_to_client,max}: 1159.445
     {time_to_server,max}: 54.943
     {time_to_client,avg}: 223.2975698054841
     {time_to_server,avg}: 22.01449211439593

=INFO REPORT==== 6-Oct-2008::13:25:49 ===
     module: stats
     elapsed: 9.998972
     bytes_in: 791081
     bytes_out: 2707910
     packets_in: 32433
     packets_out: 225746
     {bytes_in,per_sec}: 79116
     {bytes_out,per_sec}: 270818
     {packets_in,per_sec}: 3243
     {packets_out,per_sec}: 22576
     {time_to_client,min}: 33.944
     {time_to_server,min}: 0.533
     {time_to_client,max}: 2487.903
     {time_to_server,max}: 136.146
     {time_to_client,avg}: 600.7879700669516
     {time_to_server,avg}: 20.330412830951946

=INFO REPORT==== 6-Oct-2008::13:25:59 ===
     module: stats
     elapsed: 10.000539
     bytes_in: 74843
     bytes_out: 2826243
     packets_in: 3055
     packets_out: 231956
     {bytes_in,per_sec}: 7483
     {bytes_out,per_sec}: 282609
     {packets_in,per_sec}: 305
     {packets_out,per_sec}: 23194
     {time_to_client,min}: 76.3
     {time_to_server,min}: 0.758
     {time_to_client,max}: 2539.293
     {time_to_server,max}: 114.08
     {time_to_client,avg}: 1168.0286129495837
     {time_to_server,avg}: 4.338520242410239

=INFO REPORT==== 6-Oct-2008::13:26:09 ===
     module: stats
     elapsed: 9.999128
     bytes_in: 2258335
     bytes_out: 887220
     packets_in: 92719
     packets_out: 71770
     {bytes_in,per_sec}: 225853
     {bytes_out,per_sec}: 88729
     {packets_in,per_sec}: 9272
     {packets_out,per_sec}: 7177
     {time_to_client,min}: 74.793
     {time_to_server,min}: -0.16
     {time_to_client,max}: 6072.688
     {time_to_server,max}: 403.202
     {time_to_client,avg}: 2467.0929211869234
     {time_to_server,avg}: 21.581616260229122

=INFO REPORT==== 6-Oct-2008::13:26:19 ===
     module: stats
     elapsed: 10.00713
     bytes_in: 2868537
     bytes_out: 168167
     packets_in: 118195
     packets_out: 13846
     {bytes_in,per_sec}: 286649
     {bytes_out,per_sec}: 16804
     {packets_in,per_sec}: 11811
     {packets_out,per_sec}: 1383
     {time_to_client,min}: 141.216
     {time_to_server,min}: -0.162
     {time_to_client,max}: 9914.637
     {time_to_server,max}: 527.446
     {time_to_client,avg}: 796.8525357953445
     {time_to_server,avg}: 22.936007665596

=INFO REPORT==== 6-Oct-2008::13:26:29 ===
     module: stats
     elapsed: 9.992855
     bytes_in: 2117299
     bytes_out: 549453
     packets_in: 89253
     packets_out: 40298
     {bytes_in,per_sec}: 211881
     {bytes_out,per_sec}: 54984
     {packets_in,per_sec}: 8931
     {packets_out,per_sec}: 4032
     {time_to_client,min}: 11.262
     {time_to_server,min}: -0.162
     {time_to_client,max}: 10542.49
     {time_to_server,max}: 439.312
     {time_to_client,avg}: 237.57952461078088
     {time_to_server,avg}: 94.565093206288

=INFO REPORT==== 6-Oct-2008::13:26:39 ===
     module: stats
     elapsed: 10.000009
     bytes_in: 1310469
     bytes_out: 1931419
     packets_in: 56212
     packets_out: 152378
     {bytes_in,per_sec}: 131046
     {bytes_out,per_sec}: 193141
     {packets_in,per_sec}: 5621
     {packets_out,per_sec}: 15237
     {time_to_client,min}: 0.271
     {time_to_server,min}: 13.38
     {time_to_client,max}: 6630.608
     {time_to_server,max}: 505.429
     {time_to_client,avg}: 5.189399196632146
     {time_to_server,avg}: 43.817916713631014

=INFO REPORT==== 6-Oct-2008::13:26:49 ===
     module: stats
     elapsed: 9.999995
     bytes_in: 690046
     bytes_out: 2840243
     packets_in: 30002
     packets_out: 227816
     {bytes_in,per_sec}: 69004
     {bytes_out,per_sec}: 284024
     {packets_in,per_sec}: 3000
     {packets_out,per_sec}: 22781
     {time_to_client,min}: 0.281
     {time_to_server,min}: 19.745
     {time_to_client,max}: 63.059
     {time_to_server,max}: 506.526
     {time_to_client,avg}: 3.4162563678436983
     {time_to_server,avg}: 32.55984930907259

=INFO REPORT==== 6-Oct-2008::13:26:59 ===
     module: stats
     elapsed: 10.003134
     bytes_in: 518215
     bytes_out: 2372858
     packets_in: 22845
     packets_out: 193438
     {bytes_in,per_sec}: 51805
     {bytes_out,per_sec}: 237211
     {packets_in,per_sec}: 2283
     {packets_out,per_sec}: 19337
     {time_to_client,min}: 0.27
     {time_to_server,min}: 13.644
     {time_to_client,max}: 72.208
     {time_to_server,max}: 289.966
     {time_to_client,avg}: 1.0623046789650372
     {time_to_server,avg}: 28.797672193416293

=INFO REPORT==== 6-Oct-2008::13:27:09 ===
     module: stats
     elapsed: 9.997725
     bytes_in: 1239798
     bytes_out: 1145689
     packets_in: 56628
     packets_out: 93128
     {bytes_in,per_sec}: 124008
     {bytes_out,per_sec}: 114594
     {packets_in,per_sec}: 5664
     {packets_out,per_sec}: 9314
     {time_to_client,min}: 0.262
     {time_to_server,min}: -0.168
     {time_to_client,max}: 81.195
     {time_to_server,max}: 253.462
     {time_to_client,avg}: 8.403465667253972
     {time_to_server,avg}: 2.3821230459554026

=INFO REPORT==== 6-Oct-2008::13:27:19 ===
     module: stats
     elapsed: 10.000059
     bytes_in: 4330839
     bytes_out: 804560
     packets_in: 183647
     packets_out: 63266
     {bytes_in,per_sec}: 433081
     {bytes_out,per_sec}: 80455
     {packets_in,per_sec}: 18364
     {packets_out,per_sec}: 6326
     {time_to_client,min}: 0.252
     {time_to_server,min}: -0.168
     {time_to_client,max}: 87.52
     {time_to_server,max}: 122.569
     {time_to_client,avg}: 4.041418440137954
     {time_to_server,avg}: 41.888633391776644

=INFO REPORT==== 6-Oct-2008::13:27:29 ===
     module: stats
     elapsed: 9.999943
     bytes_in: 6079331
     bytes_out: 1207405
     packets_in: 257496
     packets_out: 95114
     {bytes_in,per_sec}: 607936
     {bytes_out,per_sec}: 120741
     {packets_in,per_sec}: 25749
     {packets_out,per_sec}: 9511
     {time_to_client,min}: 0.248
     {time_to_server,min}: -0.168
     {time_to_client,max}: 110.687
     {time_to_server,max}: 160.911
     {time_to_client,avg}: 0.6254370271594177
     {time_to_server,avg}: 0.6895430481677953

=INFO REPORT==== 6-Oct-2008::13:27:39 ===
     module: stats
     elapsed: 9.99912
     bytes_in: 2437108
     bytes_out: 1673955
     packets_in: 102193
     packets_out: 137242
     {bytes_in,per_sec}: 243732
     {bytes_out,per_sec}: 167410
     {packets_in,per_sec}: 10220
     {packets_out,per_sec}: 13725
     {time_to_client,min}: 0.23
     {time_to_server,min}: -0.17
     {time_to_client,max}: 272.111
     {time_to_server,max}: 75.171
     {time_to_client,avg}: 1.0046702454518566
     {time_to_server,avg}: -0.08508062985883734

dmb: exited successfully, 164.797657 seconds elapsed
ok
(1@REDACTED)3>
=INFO REPORT==== 6-Oct-2008::13:27:49 ===
     module: stats
     elapsed: 10.007192
     bytes_in: 448990
     bytes_out: 439782
     packets_in: 18794
     packets_out: 36034
     {bytes_in,per_sec}: 44866
     {bytes_out,per_sec}: 43946
     {packets_in,per_sec}: 1878
     {packets_out,per_sec}: 3600
     {time_to_client,min}: 0.273
     {time_to_server,min}: -0.169
     {time_to_client,max}: 12.465
     {time_to_server,max}: 8.763
     {time_to_client,avg}: 5.224798551005151
     {time_to_server,avg}: 0.09153370462824446




More information about the erlang-questions mailing list