I've changed methodics a bit so I repeat my measurments for ROCKET at
the end of the file.

Methodics: Increase rate till errors show

@Massimo
as you can see quad cherrypy is faster than quad rocket. but when you
look closer to "SOLO" comparision you can see that both servers are
hitting SAME WALL (880Req/sec), this must be some I/O setting.



request per second:

-----------ROCKET---------CHERRYPY
SOLO   880               880
QUAD  1881             2475


I can think of these:

sysctl -w fs.file-max=128000
sysctl -w net.ipv4.tcp_keepalive_time=300
sysctl -w net.core.somaxconn=250000
sysctl -w net.ipv4.tcp_max_syn_backlog=42500
sysctl -w net.core.netdev_max_backlog=42500
ulimit -n 10240
/bin/echo 0 > /proc/sys/net/ipv4/tcp_syncookies


r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server
192.168.0.1 --port=8080 ==uri=/vae/default/benchmark2 --ra 2500
--num-conns=10000

4 x CHERRYPY via POUND

Connection rate: 2475.3 conn/s (0.4 ms/conn, <=30 concurrent connections)
Connection time [ms]: min 0.9 avg 5.8 max 2998.4 median 4.5 stddev 43.4
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1.000

Request rate: 2475.3 req/s (0.4 ms/req)
Request size [B]: 64.0

Reply rate [replies/s]: min 0.0 avg 0.0 max 0.0 stddev 0.0 (0 samples)
Reply time [ms]: response 5.6 transfer 0.2
Reply size [B]: header 205.0 content 66.0 footer 2.0 (total 273.0)
Reply status: 1xx=0 2xx=0 3xx=10000 4xx=0 5xx=0

CPU time [s]: user 1.79 system 2.25 (user 44.3% system 55.7% total 100.0%)
Net I/O: 809.8 KB/s (6.6*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0


CHERRYPY SOLO

r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server
192.168.0.1 --port=8000 ==uri=/vae/default/benchmark2 --ra 880
--num-conns=10000

Connection rate: 880.0 conn/s (1.1 ms/conn, <=12 concurrent connections)
Connection time [ms]: min 0.7 avg 2.1 max 210.1 median 0.5 stddev 3.9
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1.000

Request rate: 880.0 req/s (1.1 ms/req)
Request size [B]: 64.0

Reply rate [replies/s]: min 880.0 avg 880.0 max 880.1 stddev 0.1 (2 samples)
Reply time [ms]: response 1.9 transfer 0.1
Reply size [B]: header 205.0 content 66.0 footer 2.0 (total 273.0)
Reply status: 1xx=0 2xx=0 3xx=10000 4xx=0 5xx=0

CPU time [s]: user 5.84 system 5.52 (user 51.4% system 48.5% total 99.9%)
Net I/O: 287.9 KB/s (2.4*10^6 bps)
- Show quoted text -

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0


#4xROCKET via POUND

r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server
192.168.0.1 --port=8080 ==uri=/vae/default/benchmark2 --ra 1881
--num-conns=10000
httperf --hog --client=0/1 --server=192.168.0.1 --port=8080 --uri=/
--rate=1881 --send-buffer=4096 --recv-buffer=16384 --num-conns=10000
--num-calls=1
Maximum connect burst length: 14

Total: connections 10000 requests 10000 replies 10000 test-duration 5.319 s

Connection rate: 1879.9 conn/s (0.5 ms/conn, <=24 concurrent connections)
Connection time [ms]: min 0.9 avg 4.3 max 3008.3 median 3.5 stddev 42.7
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1.000

Request rate: 1879.9 req/s (0.5 ms/req)
Request size [B]: 64.0

Reply rate [replies/s]: min 1879.3 avg 1879.3 max 1879.3 stddev 0.0 (1 samples)
Reply time [ms]: response 4.1 transfer 0.1
Reply size [B]: header 211.0 content 66.0 footer 0.0 (total 277.0)
Reply status: 1xx=0 2xx=0 3xx=10000 4xx=0 5xx=0

CPU time [s]: user 2.54 system 2.76 (user 47.7% system 52.0% total 99.6%)
Net I/O: 626.0 KB/s (5.1*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0


r...@kubatron:/home/kuba/httperf-0.9.0/src# ./httperf --hog --server
192.168.0.1 --port=8000 ==uri=/vae/default/benchmark2 --ra 880
--num-conns=10000
httperf --hog --client=0/1 --server=192.168.0.1 --port=8000 --uri=/
--rate=880 --send-buffer=4096 --recv-buffer=16384 --num-conns=10000
--num-calls=1
Maximum connect burst length: 5

Total: connections 10000 requests 10000 replies 10000 test-duration 11.364 s

Connection rate: 880.0 conn/s (1.1 ms/conn, <=9 concurrent connections)
Connection time [ms]: min 0.4 avg 1.3 max 12.0 median 0.5 stddev 1.4
Connection time [ms]: connect 0.1
Connection length [replies/conn]: 1.000

Request rate: 880.0 req/s (1.1 ms/req)
Request size [B]: 64.0

Reply rate [replies/s]: min 880.0 avg 880.0 max 880.1 stddev 0.1 (2 samples)
Reply time [ms]: response 1.2 transfer 0.1
Reply size [B]: header 205.0 content 66.0 footer 2.0 (total 273.0)
Reply status: 1xx=0 2xx=0 3xx=10000 4xx=0 5xx=0

CPU time [s]: user 6.24 system 5.12 (user 55.0% system 45.0% total 100.0%)
Net I/O: 287.9 KB/s (2.4*10^6 bps)

Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0
Errors: fd-unavail 0 addrunavail 0 ftab-full 0 other 0

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to