Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docpublic:reseaux:infra:perf [2011/03/03 09:26]
PROCACCIA
docpublic:reseaux:infra:perf [2011/06/18 14:45] (current)
PROCACCIA
Line 1: Line 1:
-===== Perf =====+===== Perfs Réseaux =====
  
-===== références =====+===== Références =====
  
-http://www.sans.org/reading_room/whitepapers/detection/capturing-10g-1g-traffic-correct-settings_33043 +  * http://www.sans.org/reading_room/whitepapers/detection/capturing-10g-1g-traffic-correct-settings_33043 
-http://www.redhat.com/promo/summit/2008/downloads/pdf/Thursday/Mark_Wagner.pdf +  http://www.redhat.com/promo/summit/2008/downloads/pdf/Thursday/Mark_Wagner.pdf  
 +  * http://acs.lbl.gov/~jason/tcpdump_advanced_filters.txt 
 +  * http://www.wains.be/pub/networking/tcpdump_advanced_filters.txt
  
 ===== Plateforme Evry ===== ===== Plateforme Evry =====
  
-==== Test Localhost ====+==== Serveur 1 ==== 
 + 
 +<code> 
 +olympie 
 +PowerEdge R610 
 +memory size: 16GiB DIMM Synchronous 1333 MHz (0.8 ns) 
 +16 cores Intel(R) Xeon(R) CPU           E5540  @ 2.53GHz 
 +[root@olympie ~]# ethtool -i eth6 
 +driver: bnx2x 
 +version: 1.52.1-6 
 +firmware-version: BC:5.0.13 PHY:0aa0:0406 
 +bus-info: 0000:05:00.1 
 +</code> 
 + 
 +==== Serveur 2 ==== 
 + 
 +<code> 
 +gates 
 +product: PowerEdge 2950 
 +8 cores Intel(R) Xeon(R) CPU           X5460  @ 3.16GHz 
 +memory size: 16GiB Synchronous 667 MHz (1.5 ns) 
 +[root@gates ~]# ethtool -i eth4 
 +driver: bnx2x 
 +version: 1.52.1-6 
 +firmware-version: BC:5.0.13 PHY:0aa0:0406 
 +bus-info: 0000:0a:00.0 
 +</code> 
 + 
 +==== Switch 10G ==== 
 + 
 +C6509 avec carte 8 ports 10G 
 + 
 +<code> 
 +Supervisor Engine 720 (Active)         WS-SUP720-BASE 
 +CEF720 8 port 10GE with DFC            WS-X6708-10GE 
 + 
 +System image file is "disk1:s72033-adventerprisek9_wan-mz.122-33.SXH8.bin" 
 +Version 12.2(33)SXH8, RELEASE SOFTWARE (fc1) 
 +</code> 
 + 
 +=====Test Localhost =====
  
 Pour tester les performances locales de la machine Pour tester les performances locales de la machine
Line 84: Line 126:
 </code> </code>
  
-====  Test Back2Back ====+=====  Test Back2Back =====
  
 Test réseau  "back2back" (fibre directe entre les 2 serveurs)  sans optimisation Test réseau  "back2back" (fibre directe entre les 2 serveurs)  sans optimisation
Line 190: Line 232:
           RX bytes:98194478 (93.6 MiB)  TX bytes:52506885555906 (47.7 TiB)           RX bytes:98194478 (93.6 MiB)  TX bytes:52506885555906 (47.7 TiB)
           Interruption:98 Mémoire:dd000000-dd7fffff            Interruption:98 Mémoire:dd000000-dd7fffff 
-<code>+</code>
  
 +Test TCP
  
 <code> <code>
Line 234: Line 277:
 [  3]  0.0-10.0 sec  11.0 GBytes  9.47 Gbits/sec [  3]  0.0-10.0 sec  11.0 GBytes  9.47 Gbits/sec
 </code> </code>
 +
 +==== Tests UDP ====
 +
 +Avec les parametres recommandés par l'IN2P3
 +
 +<code>
 +[root@gates ~]# iperf -s -u -w 32M -i 1 -B 157.159.33.76
 +------------------------------------------------------------
 +Server listening on UDP port 5001
 +Binding to local address 157.159.33.76
 +Receiving 1470 byte datagrams
 +UDP buffer size:  256 KByte (WARNING: requested 32.0 MByte)
 +------------------------------------------------------------
 +[  3] local 157.159.33.76 port 5001 connected with 157.159.33.77 port 5001
 +[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
 +[  3]  0.0- 1.0 sec  79.2 MBytes   664 Mbits/sec   0.004 ms 7023/63520 (11%)
 +[  3]  1.0- 2.0 sec  78.9 MBytes   662 Mbits/sec   0.006 ms 7249/63518 (11%)
 +[  3]  2.0- 3.0 sec  79.6 MBytes   667 Mbits/sec   0.004 ms 6763/63518 (11%)
 +[  3]  3.0- 4.0 sec  79.9 MBytes   670 Mbits/sec   0.003 ms 6514/63518 (10%)
 +[  3]  4.0- 5.0 sec  79.9 MBytes   670 Mbits/sec   0.004 ms 6553/63518 (10%)
 +[  3]  5.0- 6.0 sec  79.6 MBytes   668 Mbits/sec   0.004 ms 6705/63518 (11%)
 +[  3]  6.0- 7.0 sec  79.6 MBytes   668 Mbits/sec   0.006 ms 6629/63415 (10%)
 +[  3]  7.0- 8.0 sec  79.6 MBytes   667 Mbits/sec   0.013 ms 6575/63334 (10%)
 +[  3]  8.0- 9.0 sec  79.7 MBytes   669 Mbits/sec   0.014 ms 6595/63471 (10%)
 +[  3]  0.0-10.0 sec   796 MBytes   668 Mbits/sec   0.008 ms 66674/634704 (11%)
 +[  3]  0.0-10.0 sec  1 datagrams received out-of-order
 +
 +[root@olympie ~]# iperf -u -c 157.159.33.76 -w32M -t 10 -l9170 -b10G -B 157.159.33.77 -P1
 +------------------------------------------------------------
 +Client connecting to 157.159.33.76, UDP port 5001
 +Binding to local address 157.159.33.77
 +Sending 9170 byte datagrams
 +UDP buffer size:  256 KByte (WARNING: requested 32.0 MByte)
 +------------------------------------------------------------
 +[  3] local 157.159.33.77 port 5001 connected with 157.159.33.76 port 5001
 +[ ID] Interval       Transfer     Bandwidth
 +[  3]  0.0-10.0 sec  5.42 GBytes  4.66 Gbits/sec
 +[  3] Sent 634705 datagrams
 +[  3] Server Report:
 +[  3]  0.0-10.0 sec   796 MBytes   668 Mbits/sec   0.007 ms 66674/634704 (11%)
 +[  3]  0.0-10.0 sec  1 datagrams received out-of-order
 +
 +</code>
 +
 +==== Optimisations ====
 +
 +
 +<code>
 +Le 23/02/2011 09:43, Guillaume a écrit :
 +> Hello Jehan,
 +>
 +> - Attention aux buffers
 +> > TCP window size: 27.8 KByte (default)
 +> > UDP buffer size: 256 KByte (WARNING: requested 32.0 MByte)
 +>
 +> Les paramètres donnés à iperf sont non prioritaires par rapport aux paramètres sysctl, donc même si tu demande w32M ça n'est pas forcément utilisé. Je ne me souvient plus exactement quels paramètres kernel sont en jeu, mais peut être:
 +> net.core.rmem_max = 16777216
 +> net.core.wmem_max = 16777216
 +> net.ipv4.tcp_rmem = 4096 87380 16777216
 +> net.ipv4.tcp_wmem = 4096 65536 16777216
 +> (les paramètres tcp sont aussi pour UDP)
 +>
 +> - Il me semble avoir lu une histoire de problème de timestamp sur certains tests iperf en UDP: Chaque paquet part avec un timestamp et donc si tu met un seul thread ça fait un goulot d'appel système. Peut être tester avec 10 thread à 1G (options -P10 -b1G).
 +>
 +> - Les valeurs retournées par les tests iperf sont souvent fantaisistes, surtout quand ça marche moyen. Plutôt utiliser le monitoring des interfaces de l'équipement réseau en face.
 +>
 +> Guillaume 
 +</code>
 +
 +
 +Augmentation du nombre de thread a 8 pour parralleliser les transferts
 +
 +<code>
 +[root@olympie ~]# iperf -u -c 157.159.33.76 -w32M -t 10 -l9170 -b10G -B 157.159.33.77 -P8
 +bind failed: Address already in use
 +bind failed: Address already in use
 +bind failed: Address already in use
 +bind failed: Address already in use
 +bind failed: Address already in use
 +bind failed: Address already in use
 +bind failed: Address already in use
 +------------------------------------------------------------
 +Client connecting to 157.159.33.76, UDP port 5001
 +Binding to local address 157.159.33.77
 +Sending 9170 byte datagrams
 +UDP buffer size:  256 KByte (WARNING: requested 32.0 MByte)
 +------------------------------------------------------------
 +[ 10] local 157.159.33.77 port 33392 connected with 157.159.33.76 port 5001
 +[  3] local 157.159.33.77 port 5001 connected with 157.159.33.76 port 5001
 +[  5] local 157.159.33.77 port 39469 connected with 157.159.33.76 port 5001
 +[  4] local 157.159.33.77 port 36797 connected with 157.159.33.76 port 5001
 +[  7] local 157.159.33.77 port 58107 connected with 157.159.33.76 port 5001
 +[  6] local 157.159.33.77 port 48790 connected with 157.159.33.76 port 5001
 +[  8] local 157.159.33.77 port 38680 connected with 157.159.33.76 port 5001
 +[  9] local 157.159.33.77 port 57872 connected with 157.159.33.76 port 5001
 +[ ID] Interval       Transfer     Bandwidth
 +[ 10]  0.0-10.0 sec  1.44 GBytes  1.23 Gbits/sec
 +[ 10] Sent 168182 datagrams
 +[  3]  0.0-10.0 sec  1.44 GBytes  1.24 Gbits/sec
 +[  3] Sent 168473 datagrams
 +[  5]  0.0-10.0 sec  1.44 GBytes  1.23 Gbits/sec
 +[  5] Sent 168061 datagrams
 +[  4]  0.0-10.0 sec  1.44 GBytes  1.23 Gbits/sec
 +[  4] Sent 168243 datagrams
 +[  7]  0.0-10.0 sec  1.43 GBytes  1.23 Gbits/sec
 +[  7] Sent 167800 datagrams
 +[  6]  0.0-10.0 sec  1.44 GBytes  1.23 Gbits/sec
 +[  6] Sent 168212 datagrams
 +[  8]  0.0-10.0 sec  1.43 GBytes  1.23 Gbits/sec
 +[  8] Sent 167895 datagrams
 +[  9]  0.0-10.0 sec  1.43 GBytes  1.23 Gbits/sec
 +[  9] Sent 167909 datagrams
 +[SUM]  0.0-10.0 sec  11.5 GBytes  9.86 Gbits/sec
 +</code>
 +
 +
 +{{:docpublic:reseaux:infra:2010-03-03-iperf-olympie-gates-tcp1-udp2.png|2010-03-03-iperf-olympie-gates-tcp1-udp2.png }}
 +
docpublic/reseaux/infra/perf.1299144403.txt.gz · Last modified: 2011/03/03 09:26 by PROCACCIA
[unknown link type]Back to top
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0