START sys/kern/sosplice/perf 2024-02-16T00:00:04Z ==== 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 1001 88952356 710.908 100.00% Conn: 1 Mbps: 710.908 Peak Mbps: 710.908 Avg Mbps: 710.908 1000 88821492 710.572 100.00% Conn: 1 Mbps: 710.572 Peak Mbps: 710.572 Avg Mbps: 710.572 2001 88773134 710.896 100.00% 2000 88757204 710.768 100.00% Conn: 1 Mbps: 710.768 Peak Mbps: 710.768 Avg Mbps: 710.768 Conn: 1 Mbps: 710.896 Peak Mbps: 710.908 Avg Mbps: 710.896 3001 89852474 718.820 100.00% 3000 89852358 718.819 100.00% Conn: 1 Mbps: 718.820 Peak Mbps: 718.820 Avg Mbps: 718.820 Conn: 1 Mbps: 718.819 Peak Mbps: 718.819 Avg Mbps: 718.819 4000 88658124 709.265 100.00% Conn: 1 Mbps: 709.265 Peak Mbps: 718.819 Avg Mbps: 709.265 4002 88707510 708.951 100.00% Conn: 1 Mbps: 708.951 Peak Mbps: 718.820 Avg Mbps: 708.951 5001 88315798 706.526 100.00% Conn: 1 Mbps: 706.526 Peak Mbps: 718.819 Avg Mbps: 706.526 5003 88364768 706.212 100.00% Conn: 1 Mbps: 706.212 Peak Mbps: 718.820 Avg Mbps: 706.212 --- 127.0.0.1 tcpbench statistics --- 534420342 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 706.212/711.157/718.820/4.199 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 534420342 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 706.526/711.190/718.819/4.104 Mbps sleep 1 ==== 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 1000 105779504 846.236 100.00% Conn: 1 Mbps: 846.236 Peak Mbps: 846.236 Avg Mbps: 846.236 1003 105992146 845.401 100.00% Conn: 1 Mbps: 845.401 Peak Mbps: 845.401 Avg Mbps: 845.401 2004 106533624 849.720 100.00% Conn: 1 Mbps: 849.720 Peak Mbps: 849.720 Avg Mbps: 849.720 2004 106255550 850.044 100.00% Conn: 1 Mbps: 850.044 Peak Mbps: 850.044 Avg Mbps: 850.044 3005 107076030 855.752 100.00% Conn: 1 Mbps: 855.752 Peak Mbps: 855.752 Avg Mbps: 855.752 3005 107010598 855.230 100.00% Conn: 1 Mbps: 855.230 Peak Mbps: 855.230 Avg Mbps: 855.230 4005 106613262 853.760 100.00% Conn: 1 Mbps: 853.760 Peak Mbps: 855.230 Avg Mbps: 853.760 4008 106809974 851.924 100.00% Conn: 1 Mbps: 851.924 Peak Mbps: 855.752 Avg Mbps: 851.924 5006 104864740 841.442 100.00% Conn: 1 Mbps: 841.442 Peak Mbps: 855.752 Avg Mbps: 841.442 5009 105358808 840.349 100.00% Conn: 1 Mbps: 840.349 Peak Mbps: 855.230 Avg Mbps: 840.349 --- 127.0.0.1 tcpbench statistics --- 636094664 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 841.442/849.015/855.752/4.887 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 636094664 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 840.349/848.957/855.230/5.483 Mbps sleep 1 ==== 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: 316.362 Peak Mbps: 316.362 Tx PPS: 26865 Elapsed: 1000 Mbps: 251.453 Peak Mbps: 251.453 Rx PPS: 21353 Elapsed: 2000 Mbps: 314.914 Peak Mbps: 316.362 Tx PPS: 26742 Elapsed: 2000 Mbps: 253.602 Peak Mbps: 253.602 Rx PPS: 21535 Elapsed: 3000 Mbps: 321.238 Peak Mbps: 321.238 Tx PPS: 27279 Elapsed: 3000 Mbps: 258.813 Peak Mbps: 258.813 Rx PPS: 21978 Elapsed: 4000 Mbps: 323.546 Peak Mbps: 323.546 Tx PPS: 27475 Elapsed: 4000 Mbps: 260.921 Peak Mbps: 260.921 Rx PPS: 22157 Elapsed: 5000 Mbps: 324.523 Peak Mbps: 324.523 Tx PPS: 27558 Elapsed: 5000 Mbps: 258.707 Peak Mbps: 260.921 Rx PPS: 21969 --- 127.0.0.1 tcpbench statistics --- 240362880 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 314.914/320.116/324.523/3.837 Mbps Elapsed: 6000 Mbps: 259.237 Peak Mbps: 260.921 Rx PPS: 22014 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 192874688 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 251.453/257.122/260.921/3.386 Mbps sleep 1 ==== 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: 226.629 Peak Mbps: 226.629 Tx PPS: 19245 Elapsed: 999 Mbps: 226.467 Peak Mbps: 226.467 Rx PPS: 19231 Elapsed: 2000 Mbps: 224.297 Peak Mbps: 226.629 Tx PPS: 19047 Elapsed: 1999 Mbps: 223.603 Peak Mbps: 226.467 Rx PPS: 18988 Elapsed: 3000 Mbps: 224.203 Peak Mbps: 226.629 Tx PPS: 19039 Elapsed: 3000 Mbps: 223.720 Peak Mbps: 226.467 Rx PPS: 18998 Elapsed: 4000 Mbps: 227.194 Peak Mbps: 227.194 Tx PPS: 19293 Elapsed: 4000 Mbps: 226.252 Peak Mbps: 226.467 Rx PPS: 19213 Elapsed: 5000 Mbps: 232.105 Peak Mbps: 232.105 Tx PPS: 19710 Elapsed: 5000 Mbps: 231.481 Peak Mbps: 231.481 Rx PPS: 19657 --- 127.0.0.1 tcpbench statistics --- 169494912 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 224.203/226.886/232.105/2.874 Mbps Elapsed: 6008 Mbps: 219.001 Peak Mbps: 231.481 Rx PPS: 18597 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 169006208 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 219.001/225.087/231.481/3.769 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m34.99s