START sys/kern/sosplice/perf 2024-03-05T21:19:34Z ==== 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 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 -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 112456024 899.648 100.00% Conn: 1 Mbps: 899.648 Peak Mbps: 899.648 Avg Mbps: 899.648 999 112425616 900.305 100.00% Conn: 1 Mbps: 900.305 Peak Mbps: 900.305 Avg Mbps: 900.305 2000 113809904 911.391 100.00% Conn: 1 Mbps: 911.391 Peak Mbps: 911.391 Avg Mbps: 911.391 2000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 3000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 911.391 Avg Mbps: 910.468 3000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.491 Avg Mbps: 910.479 4000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 911.391 Avg Mbps: 910.502 4000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.491 Avg Mbps: 910.479 5000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 911.391 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 --- 681414320 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 899.648/908.500/911.391/4.440 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681414320 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.305/908.444/910.491/4.070 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 113030880 904.247 100.00% Conn: 1 Mbps: 904.247 Peak Mbps: 904.247 Avg Mbps: 904.247 1000 112997576 903.981 100.00% Conn: 1 Mbps: 903.981 Peak Mbps: 903.981 Avg Mbps: 903.981 2000 113780944 910.248 100.00% Conn: 1 Mbps: 910.248 Peak Mbps: 910.248 Avg Mbps: 910.248 2000 113773704 910.190 100.00% Conn: 1 Mbps: 910.190 Peak Mbps: 910.190 Avg Mbps: 910.190 3000 113827280 910.618 100.00% Conn: 1 Mbps: 910.618 Peak Mbps: 910.618 Avg Mbps: 910.618 3000 113844656 910.757 100.00% Conn: 1 Mbps: 910.757 Peak Mbps: 910.757 Avg Mbps: 910.757 4000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 910.618 Avg Mbps: 910.526 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.757 Avg Mbps: 910.491 5000 113817144 910.537 100.00% Conn: 1 Mbps: 910.537 Peak Mbps: 910.618 Avg Mbps: 910.537 5000 113820040 910.560 100.00% Conn: 1 Mbps: 910.560 Peak Mbps: 910.757 Avg Mbps: 910.560 --- 10.188.81.22 tcpbench statistics --- 681996416 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 904.247/909.235/910.618/2.497 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681996416 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 903.981/909.196/910.757/2.614 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: 964.325 Peak Mbps: 964.325 Tx PPS: 81889 Elapsed: 1000 Mbps: 955.823 Peak Mbps: 955.823 Rx PPS: 81167 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 964.325 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.029 Peak Mbps: 958.029 Rx PPS: 81354 Elapsed: 3000 Mbps: 957.059 Peak Mbps: 964.325 Tx PPS: 81272 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.029 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.106 Peak Mbps: 964.325 Tx PPS: 81276 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.029 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.083 Peak Mbps: 964.325 Tx PPS: 81274 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.029 Rx PPS: 81278 --- 10.188.81.22 tcpbench statistics --- 718706944 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.059/958.727/964.325/2.824 Mbps Elapsed: 6000 Mbps: 957.118 Peak Mbps: 958.029 Rx PPS: 81277 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718019520 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 955.823/957.060/958.029/0.644 Mbps sleep 1 copy: write: Connection refused listen 10.188.81.22 12345 connect 10.188.81.21 12346 copy... ==== run-udp-splice ==== ssh ot2 'cd /usr/src/regress/sys/kern/sosplice/perf && make copy splice' /bin/sh: kill: 22336: No such process *** Error 1 in /usr/src/regress/sys/kern/sosplice/perf (Makefile:38 'remote-udp-copy') `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: 964.431 Peak Mbps: 964.431 Tx PPS: 81898 Elapsed: 1000 Mbps: 955.304 Peak Mbps: 955.304 Rx PPS: 81123 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 964.431 Tx PPS: 81357 Elapsed: 1999 Mbps: 957.652 Peak Mbps: 957.652 Rx PPS: 81322 Elapsed: 3000 Mbps: 957.059 Peak Mbps: 964.431 Tx PPS: 81272 Elapsed: 3000 Mbps: 956.706 Peak Mbps: 957.652 Rx PPS: 81242 Elapsed: 4000 Mbps: 957.094 Peak Mbps: 964.431 Tx PPS: 81275 Elapsed: 4000 Mbps: 956.517 Peak Mbps: 957.652 Rx PPS: 81226 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 964.431 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.047 Peak Mbps: 957.652 Rx PPS: 81271 --- 10.188.81.22 tcpbench statistics --- 718718720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.059/958.749/964.431/2.866 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 957.652 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 717747200 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 955.304/956.726/957.652/0.729 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m51.41s