[zorp-hu] benchmark (Zorp 600MBit!)

Balazs Scheidler bazsi@balabit.hu
Mon, 15 Jul 2002 15:08:13 +0200


Egy kis csemege:

ab-bigfile-80.txt:Transfer rate:          43511.69 [Kbytes/sec] received
ab-bigfile-82.txt:Transfer rate:          81620.74 [Kbytes/sec] received
ab-k-bigfile-80.txt:Transfer rate:          57123.91 [Kbytes/sec] received
ab-k-bigfile-81.txt:Transfer rate:          58070.11 [Kbytes/sec] received
ab-k-bigfile-82.txt:Transfer rate:          84042.16 [Kbytes/sec] received
ab-k-mediumfile-80.txt:Transfer rate:          46780.05 [Kbytes/sec] received
ab-k-mediumfile-81.txt:Transfer rate:          50427.26 [Kbytes/sec] received
ab-k-mediumfile-82.txt:Transfer rate:          77882.35 [Kbytes/sec] received
ab-k-smallfile-80.txt:Transfer rate:          16491.81 [Kbytes/sec] received
ab-k-smallfile-81.txt:Transfer rate:          24495.35 [Kbytes/sec] received
ab-k-smallfile-82.txt:Transfer rate:          40841.31 [Kbytes/sec] received
ab-mediumfile-81.txt:Transfer rate:          17114.91 [Kbytes/sec] received
ab-mediumfile-82.txt:Transfer rate:          62904.04 [Kbytes/sec] received
ab-smallfile-80.txt:Transfer rate:          2228.95 [Kbytes/sec] received
ab-smallfile-81.txt:Transfer rate:          2238.59 [Kbytes/sec] received
ab-smallfile-82.txt:Transfer rate:          23522.93 [Kbytes/sec] received

Kis magyarazat:
---------------

A teszt ab-vel keszult (apache bench), a szerveren apache futott, 30-as
keepalive limittel.

a vas: gigabit ethernet kartyakkal (1500-as MTU)

kliens: 900Mhz Celeron, 256MB RAM, 32 bit PCI
tuzfal: Intel alaplap, 2x PIII 1.26Ghz server proci, 512MB RAM, 64bit PCI
szerver: Compaq Proliant DL380 (1x PIII 1Ghz), 512MB RAM, 64bit PCI

A filenevek igy epulnek fel:
ab-         konstans
-k          ha van, akkor az ab hasznal HTTP keep-alive-t
smallfile   10k-s file
mediumfile  100k-s file
bigfile     1M-s file
-<szam>     a szam egy portszam 3 lehetseges ertekkel:

		80: Zorp HTTP proxy
		81: Zorp Plug proxy
		82: forwarding, conntrack-el

Az eredmenyeken tisztan latszik, hogy a proxy tuzfal session inditasa eleg
draga, de ha egyszer mar megy (foleg a keepalive-s eredmenyeknel), akkor
eleg jol felveszi a versenyt a csomagszurokkel is. A session inditas
netfilternek is eleg draga, ez latszik a nem keepalive-os teszten.

A Zorp legjobb eredmenye: 58070 kByte/sec (plug), ami majdnem 600MBit !!!
Ugyanez a teszt HTTP proxy eseten alig valamivel alacsonyabb 57123 kB/sec

A legrealisabb terhelest webszerver elott az ab-k-smallfile jelenti
(keepalive, 10k-s filemeret) itt is kb 160MBit-et kepes atvinni teljes
protokoll elemzessel.

Masodik processzor eseten meg van mit javitanunk (a Zorp-on illetve a
kernelen) Magas lock contention eseten ugyanis erosen romlik a teljesitmeny.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1