START sys/kern/sosplice/perf 2025-01-13T02:28:12Z ==== 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 ssh ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make copy splice' 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 ln -s relay splice pkill -x tcpbench *** Error 1 in target 'run-tcp-copy' (ignored) ssh -f ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make PROG= LOCAL_ADDR=10.188.81.21 REMOTE_ADDR=10.188.81.22 remote-tcp-copy' ; sleep 2 ; tcpbench -t 7 -b 10.188.81.21 -s -p 12346 & sleep 1 ; tcpbench -t 5 10.188.81.22 ; pkill -x tcpbench pkill -x copy *** Error 1 in target 'remote-tcp-copy' (ignored) ./copy -b 10.188.81.22 12345 10.188.81.21 12346 & rpid=$! ; sleep 10 ; kill $rpid elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1000 112644264 901.154 100.00% Conn: 1 Mbps: 901.154 Peak Mbps: 901.154 Avg Mbps: 901.154 1000 112599376 900.795 100.00% Conn: 1 Mbps: 900.795 Peak Mbps: 900.795 Avg Mbps: 900.795 2000 113811352 911.402 100.00% Conn: 1 Mbps: 911.402 Peak Mbps: 911.402 Avg Mbps: 911.402 2000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 3000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 911.402 Avg Mbps: 910.479 3000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 4000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 911.402 Avg Mbps: 910.502 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 5000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 911.402 Avg Mbps: 910.491 5000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.491 Avg Mbps: 910.468 --- 10.188.81.22 tcpbench statistics --- 681602560 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 901.154/908.806/911.402/3.842 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681602560 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.795/908.547/910.491/3.876 Mbps sleep 1 ==== run-tcp-splice ==== ln -s relay splice ssh ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make copy splice' `copy' is up to date. `splice' is up to date. pkill -x tcpbench *** Error 1 in target 'run-tcp-splice' (ignored) ssh -f ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make PROG= LOCAL_ADDR=10.188.81.21 REMOTE_ADDR=10.188.81.22 remote-tcp-splice' ; sleep 2 ; tcpbench -t 7 -b 10.188.81.21 -s -p 12346 & sleep 1 ; tcpbench -t 5 10.188.81.22 ; pkill -x tcpbench pkill -x splice *** Error 1 in target 'remote-tcp-splice' (ignored) ./splice -b 10.188.81.22 12345 10.188.81.21 12346 & rpid=$! ; sleep 10 ; kill $rpid elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1000 113188712 905.510 100.00% Conn: 1 Mbps: 905.510 Peak Mbps: 905.510 Avg Mbps: 905.510 1000 113135136 905.081 100.00% Conn: 1 Mbps: 905.081 Peak Mbps: 905.081 Avg Mbps: 905.081 2000 113802664 910.421 100.00% Conn: 1 Mbps: 910.421 Peak Mbps: 910.421 Avg Mbps: 910.421 2000 113804112 910.433 100.00% Conn: 1 Mbps: 910.433 Peak Mbps: 910.433 Avg Mbps: 910.433 3000 113818592 910.549 100.00% Conn: 1 Mbps: 910.549 Peak Mbps: 910.549 Avg Mbps: 910.549 3000 113818592 910.549 100.00% Conn: 1 Mbps: 910.549 Peak Mbps: 910.549 Avg Mbps: 910.549 4000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.549 Avg Mbps: 910.468 4000 113798320 910.387 100.00% Conn: 1 Mbps: 910.387 Peak Mbps: 910.549 Avg Mbps: 910.387 5000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.549 Avg Mbps: 910.479 5000 113820040 910.560 100.00% Conn: 1 Mbps: 910.560 Peak Mbps: 910.560 Avg Mbps: 910.560 --- 10.188.81.22 tcpbench statistics --- 682170176 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 905.510/909.485/910.549/1.988 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 682170176 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 905.081/909.402/910.560/2.161 Mbps sleep 1 ==== run-udp-copy ==== ssh ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make copy splice' `copy' is up to date. `splice' is up to date. pkill -x tcpbench *** Error 1 in target 'run-udp-copy' (ignored) ssh -f ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make PROG= LOCAL_ADDR=10.188.81.21 REMOTE_ADDR=10.188.81.22 remote-udp-copy' ; sleep 2 ; tcpbench -u -t 7 -b 10.188.81.21 -s -p 12346 & sleep 1 ; tcpbench -u -t 5 10.188.81.22 ; pkill -x tcpbench pkill -x copy *** Error 1 in target 'remote-udp-copy' (ignored) ./copy -u -b 10.188.81.22 12345 10.188.81.21 12346 & rpid=$! ; sleep 10 ; kill $rpid Elapsed: 1000 Mbps: 965.868 Peak Mbps: 965.868 Tx PPS: 82020 Elapsed: 1000 Mbps: 957.142 Peak Mbps: 957.142 Rx PPS: 81279 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.005 Peak Mbps: 958.005 Rx PPS: 81352 Elapsed: 3000 Mbps: 957.071 Peak Mbps: 965.868 Tx PPS: 81273 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.118 Peak Mbps: 965.868 Tx PPS: 81277 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 --- 10.188.81.22 tcpbench statistics --- 718902720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.059/959.036/965.868/3.437 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718157888 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.130/957.278/958.005/0.325 Mbps sleep 1 ==== run-udp-splice ==== ssh ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make copy splice' `copy' is up to date. `splice' is up to date. pkill -x tcpbench *** Error 1 in target 'run-udp-splice' (ignored) ssh -f ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make PROG= LOCAL_ADDR=10.188.81.21 REMOTE_ADDR=10.188.81.22 remote-udp-splice' ; sleep 2 ; tcpbench -u -t 7 -b 10.188.81.21 -s -p 12346 & sleep 1 ; tcpbench -u -t 5 10.188.81.22 ; pkill -x tcpbench pkill -x splice *** Error 1 in target 'remote-udp-splice' (ignored) ./splice -u -b 10.188.81.22 12345 10.188.81.21 12346 & rpid=$! ; sleep 10 ; kill $rpid Elapsed: 1000 Mbps: 965.868 Peak Mbps: 965.868 Tx PPS: 82020 Elapsed: 1000 Mbps: 957.059 Peak Mbps: 957.059 Rx PPS: 81272 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.041 Peak Mbps: 958.041 Rx PPS: 81355 Elapsed: 3000 Mbps: 957.083 Peak Mbps: 965.868 Tx PPS: 81274 Elapsed: 3000 Mbps: 956.152 Peak Mbps: 958.041 Rx PPS: 81195 Elapsed: 4000 Mbps: 957.071 Peak Mbps: 965.868 Tx PPS: 81273 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.041 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.083 Peak Mbps: 965.868 Tx PPS: 81274 Elapsed: 5000 Mbps: 956.776 Peak Mbps: 958.041 Rx PPS: 81248 --- 10.188.81.22 tcpbench statistics --- 718902720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.071/959.034/965.868/3.438 Mbps Elapsed: 6000 Mbps: 956.930 Peak Mbps: 958.041 Rx PPS: 81261 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 717990080 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 956.152/957.015/958.041/0.559 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m49.87s