START sys/kern/sosplice/perf 2024-03-15T13:09:46Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -MD -MP -c /usr/src/regress/sys/kern/sosplice/perf/relay.c cc -o relay relay.o ln -s relay copy pkill -x tcpbench *** Error 1 in target 'run-tcp-copy' (ignored) ./copy -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1000 69145266 553.162 100.00% Conn: 1 Mbps: 553.162 Peak Mbps: 553.162 Avg Mbps: 553.162 1001 69063728 551.958 100.00% Conn: 1 Mbps: 551.958 Peak Mbps: 551.958 Avg Mbps: 551.958 2000 61865956 494.928 100.00% Conn: 1 Mbps: 494.928 Peak Mbps: 553.162 Avg Mbps: 494.928 2001 61865984 495.423 100.00% Conn: 1 Mbps: 495.423 Peak Mbps: 551.958 Avg Mbps: 495.423 3001 61816882 494.535 100.00% Conn: 1 Mbps: 494.535 Peak Mbps: 553.162 Avg Mbps: 494.535 3001 61800448 494.404 100.00% Conn: 1 Mbps: 494.404 Peak Mbps: 551.958 Avg Mbps: 494.404 4001 61915030 495.320 100.00% Conn: 1 Mbps: 495.320 Peak Mbps: 553.162 Avg Mbps: 495.320 4001 61931520 495.452 100.00% Conn: 1 Mbps: 495.452 Peak Mbps: 551.958 Avg Mbps: 495.452 5002 61865956 494.928 100.00% Conn: 1 Mbps: 494.928 Peak Mbps: 553.162 Avg Mbps: 494.928 5002 61865984 494.928 100.00% Conn: 1 Mbps: 494.928 Peak Mbps: 551.958 Avg Mbps: 494.928 --- 127.0.0.1 tcpbench statistics --- 378131528 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 494.535/506.575/553.162/23.295 Mbps 6014 61407232 485.433 100.00% sleep 1 Conn: 1 Mbps: 485.433 Peak Mbps: 551.958 Avg Mbps: 485.433 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 377934896 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 485.433/502.933/551.958/22.207 Mbps ==== run-tcp-splice ==== ln -s relay splice pkill -x tcpbench *** Error 1 in target 'run-tcp-splice' (ignored) ./splice -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1001 105459918 842.837 100.00% Conn: 1 Mbps: 842.837 Peak Mbps: 842.837 Avg Mbps: 842.837 1003 105574424 842.069 100.00% Conn: 1 Mbps: 842.069 Peak Mbps: 842.069 Avg Mbps: 842.069 2002 109664032 877.312 100.00% Conn: 1 Mbps: 877.312 Peak Mbps: 877.312 Avg Mbps: 877.312 2003 109664032 877.312 100.00% Conn: 1 Mbps: 877.312 Peak Mbps: 877.312 Avg Mbps: 877.312 3003 110449216 882.711 100.00% Conn: 1 Mbps: 882.711 Peak Mbps: 882.711 Avg Mbps: 882.711 3003 110449216 883.594 100.00% Conn: 1 Mbps: 883.594 Peak Mbps: 883.594 Avg Mbps: 883.594 4004 113197360 905.579 100.00% Conn: 1 Mbps: 905.579 Peak Mbps: 905.579 Avg Mbps: 905.579 4005 113180990 904.543 100.00% Conn: 1 Mbps: 904.543 Peak Mbps: 904.543 Avg Mbps: 904.543 5005 105492262 843.938 100.00% Conn: 1 Mbps: 843.938 Peak Mbps: 905.579 Avg Mbps: 843.938 5006 105508632 843.226 100.00% Conn: 1 Mbps: 843.226 Peak Mbps: 904.543 Avg Mbps: 843.226 --- 127.0.0.1 tcpbench statistics --- 653026914 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 842.837/870.475/905.579/24.070 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 653026914 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 842.069/870.149/904.543/24.201 Mbps ==== run-udp-copy ==== pkill -x tcpbench *** Error 1 in target 'run-udp-copy' (ignored) ./copy -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 61.918 Peak Mbps: 61.918 Tx PPS: 5258 Elapsed: 1000 Mbps: 60.187 Peak Mbps: 60.187 Rx PPS: 5111 Elapsed: 2000 Mbps: 81.182 Peak Mbps: 81.182 Tx PPS: 6893 Elapsed: 2013 Mbps: 57.776 Peak Mbps: 60.187 Rx PPS: 4906 Elapsed: 3000 Mbps: 84.234 Peak Mbps: 84.234 Tx PPS: 7153 Elapsed: 3013 Mbps: 56.772 Peak Mbps: 60.187 Rx PPS: 4821 Elapsed: 4000 Mbps: 101.168 Peak Mbps: 101.168 Tx PPS: 8591 Elapsed: 4014 Mbps: 47.952 Peak Mbps: 60.187 Rx PPS: 4072 Elapsed: 5000 Mbps: 71.080 Peak Mbps: 101.168 Tx PPS: 6036 Elapsed: 5014 Mbps: 63.849 Peak Mbps: 63.849 Rx PPS: 5422 --- 127.0.0.1 tcpbench statistics --- 62702784 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 61.918/79.916/101.168/13.220 Mbps Elapsed: 6015 Mbps: 46.033 Peak Mbps: 63.849 Rx PPS: 3909 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 41670848 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 46.033/55.428/63.849/6.391 Mbps ==== run-udp-splice ==== pkill -x tcpbench *** Error 1 in target 'run-udp-splice' (ignored) ./splice -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 89.380 Peak Mbps: 89.380 Tx PPS: 7590 Elapsed: 1000 Mbps: 85.305 Peak Mbps: 85.305 Rx PPS: 7244 Elapsed: 2000 Mbps: 88.703 Peak Mbps: 89.380 Tx PPS: 7532 Elapsed: 2000 Mbps: 88.662 Peak Mbps: 88.662 Rx PPS: 7529 Elapsed: 3000 Mbps: 88.826 Peak Mbps: 89.380 Tx PPS: 7543 Elapsed: 3000 Mbps: 88.826 Peak Mbps: 88.826 Rx PPS: 7543 Elapsed: 4000 Mbps: 88.803 Peak Mbps: 89.380 Tx PPS: 7541 Elapsed: 4000 Mbps: 88.803 Peak Mbps: 88.826 Rx PPS: 7541 Elapsed: 5000 Mbps: 101.509 Peak Mbps: 101.509 Tx PPS: 8620 Elapsed: 5000 Mbps: 62.578 Peak Mbps: 88.826 Rx PPS: 5314 --- 127.0.0.1 tcpbench statistics --- 68165376 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 88.703/91.444/101.509/5.038 Mbps Elapsed: 6015 Mbps: 86.829 Peak Mbps: 88.826 Rx PPS: 7373 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 62788160 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 62.578/83.500/88.826/9.445 Mbps PASS sys/kern/sosplice/perf Duration 0m36.67s