START sys/kern/sosplice/perf 2025-04-04T01:20:49Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1803642126 14429.137 100.00% Conn: 1 Mbps: 14429.137 Peak Mbps: 14429.137 Avg Mbps: 14429.137 1000 1803543978 14428.352 100.00% Conn: 1 Mbps: 14428.352 Peak Mbps: 14428.352 Avg Mbps: 14428.352 2000 1813493278 14522.469 100.00% Conn: 1 Mbps: 14522.469 Peak Mbps: 14522.469 Avg Mbps: 14522.469 2000 1813591426 14508.731 100.00% Conn: 1 Mbps: 14508.731 Peak Mbps: 14508.731 Avg Mbps: 14508.731 3000 1811005782 14488.046 100.00% Conn: 1 Mbps: 14488.046 Peak Mbps: 14522.469 Avg Mbps: 14488.046 3000 1810907634 14487.261 100.00% Conn: 1 Mbps: 14487.261 Peak Mbps: 14508.731 Avg Mbps: 14487.261 4000 1814767290 14518.138 100.00% Conn: 1 Mbps: 14518.138 Peak Mbps: 14522.469 Avg Mbps: 14518.138 4000 1814767394 14518.139 100.00% Conn: 1 Mbps: 14518.139 Peak Mbps: 14518.139 Avg Mbps: 14518.139 5000 1815290422 14536.860 100.00% Conn: 1 Mbps: 14536.860 Peak Mbps: 14536.860 Avg Mbps: 14536.860 5000 1815388466 14523.108 100.00% Conn: 1 Mbps: 14523.108 Peak Mbps: 14523.108 Avg Mbps: 14523.108 --- 127.0.0.1 tcpbench statistics --- 10867603736 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14429.137/14498.930/14536.860/38.344 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10867603736 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14428.352/14493.118/14523.108/34.636 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 1997896502 15983.172 100.00% Conn: 1 Mbps: 15983.172 Peak Mbps: 15983.172 Avg Mbps: 15983.172 1000 1998142288 15985.138 100.00% Conn: 1 Mbps: 15985.138 Peak Mbps: 15985.138 Avg Mbps: 15985.138 2000 2018018330 16160.307 100.00% Conn: 1 Mbps: 16160.307 Peak Mbps: 16160.307 Avg Mbps: 16160.307 2000 2018198684 16145.589 100.00% Conn: 1 Mbps: 16145.589 Peak Mbps: 16145.589 Avg Mbps: 16145.589 3000 2012929848 16103.439 100.00% Conn: 1 Mbps: 16103.439 Peak Mbps: 16160.307 Avg Mbps: 16103.439 3000 2013060712 16104.486 100.00% Conn: 1 Mbps: 16104.486 Peak Mbps: 16145.589 Avg Mbps: 16104.486 4000 2015825334 16142.745 100.00% Conn: 1 Mbps: 16142.745 Peak Mbps: 16160.307 Avg Mbps: 16142.745 4000 2015825322 16126.603 100.00% Conn: 1 Mbps: 16126.603 Peak Mbps: 16145.589 Avg Mbps: 16126.603 5000 2013013814 16104.111 100.00% Conn: 1 Mbps: 16104.111 Peak Mbps: 16160.307 Avg Mbps: 16104.111 5000 2013013826 16120.231 100.00% Conn: 1 Mbps: 16120.231 Peak Mbps: 16145.589 Avg Mbps: 16120.231 --- 127.0.0.1 tcpbench statistics --- 12075571910 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15985.138/16099.148/16160.307/61.127 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12075571910 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15983.172/16096.016/16145.589/57.939 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: 3219.429 Peak Mbps: 3219.429 Tx PPS: 273389 Elapsed: 1000 Mbps: 3056.484 Peak Mbps: 3056.484 Rx PPS: 259552 Elapsed: 2000 Mbps: 3327.940 Peak Mbps: 3327.940 Tx PPS: 282603 Elapsed: 1999 Mbps: 2973.599 Peak Mbps: 3056.484 Rx PPS: 252513 Elapsed: 3000 Mbps: 3273.504 Peak Mbps: 3327.940 Tx PPS: 277981 Elapsed: 2999 Mbps: 3069.238 Peak Mbps: 3069.238 Rx PPS: 260635 Elapsed: 4000 Mbps: 3218.793 Peak Mbps: 3327.940 Tx PPS: 273335 Elapsed: 4000 Mbps: 2980.635 Peak Mbps: 3069.238 Rx PPS: 253111 Elapsed: 5000 Mbps: 3299.270 Peak Mbps: 3327.940 Tx PPS: 280169 Elapsed: 5000 Mbps: 3020.791 Peak Mbps: 3069.238 Rx PPS: 256521 --- 127.0.0.1 tcpbench statistics --- 2446154880 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3218.793/3267.787/3327.940/43.316 Mbps Elapsed: 6000 Mbps: 3144.369 Peak Mbps: 3144.369 Rx PPS: 267015 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2282655424 bytes received over 6.007 seconds bandwidth min/avg/max/std-dev = 2973.599/3040.853/3144.369/58.191 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: 3339.626 Peak Mbps: 3339.626 Tx PPS: 283596 Elapsed: 1000 Mbps: 2761.613 Peak Mbps: 2761.613 Rx PPS: 234512 Elapsed: 2000 Mbps: 3289.359 Peak Mbps: 3339.626 Tx PPS: 279327 Elapsed: 1999 Mbps: 2870.102 Peak Mbps: 2870.102 Rx PPS: 243724 Elapsed: 3000 Mbps: 3280.169 Peak Mbps: 3339.626 Tx PPS: 278547 Elapsed: 2999 Mbps: 2825.110 Peak Mbps: 2870.102 Rx PPS: 239904 Elapsed: 4000 Mbps: 3310.634 Peak Mbps: 3339.626 Tx PPS: 281134 Elapsed: 3999 Mbps: 2831.045 Peak Mbps: 2870.102 Rx PPS: 240408 Elapsed: 5000 Mbps: 3283.891 Peak Mbps: 3339.626 Tx PPS: 278863 Elapsed: 5000 Mbps: 2853.572 Peak Mbps: 2870.102 Rx PPS: 242321 --- 127.0.0.1 tcpbench statistics --- 2483165376 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3280.169/3300.736/3339.626/22.121 Mbps Elapsed: 6000 Mbps: 2731.573 Peak Mbps: 2870.102 Rx PPS: 231961 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2114513280 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2731.573/2812.169/2870.102/49.406 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s