START sys/kern/sosplice/perf 2024-07-25T03:43:11Z ==== 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 112448784 899.590 100.00% Conn: 1 Mbps: 899.590 Peak Mbps: 899.590 Avg Mbps: 899.590 999 112402448 900.120 100.00% Conn: 1 Mbps: 900.120 Peak Mbps: 900.120 Avg Mbps: 900.120 2000 113822936 910.583 100.00% Conn: 1 Mbps: 910.583 Peak Mbps: 910.583 Avg Mbps: 910.583 2000 113822936 910.583 100.00% Conn: 1 Mbps: 910.583 Peak Mbps: 910.583 Avg Mbps: 910.583 3000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.583 Avg Mbps: 910.479 3000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.583 Avg Mbps: 910.468 4000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.583 Avg Mbps: 910.468 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.583 Avg Mbps: 910.491 5000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.583 Avg Mbps: 910.479 5000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.583 Avg Mbps: 910.468 --- 10.188.81.22 tcpbench statistics --- 681399840 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 899.590/908.320/910.583/4.365 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681399840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.120/908.426/910.583/4.153 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 112988888 903.911 100.00% Conn: 1 Mbps: 903.911 Peak Mbps: 903.911 Avg Mbps: 903.911 1000 112965720 903.726 100.00% Conn: 1 Mbps: 903.726 Peak Mbps: 903.726 Avg Mbps: 903.726 2000 113822936 911.495 100.00% Conn: 1 Mbps: 911.495 Peak Mbps: 911.495 Avg Mbps: 911.495 2000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 910.514 Avg Mbps: 910.514 3000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 911.495 Avg Mbps: 910.526 3000 113822936 910.583 100.00% Conn: 1 Mbps: 910.583 Peak Mbps: 910.583 Avg Mbps: 910.583 4000 113818592 910.549 100.00% Conn: 1 Mbps: 910.549 Peak Mbps: 911.495 Avg Mbps: 910.549 4000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 910.583 Avg Mbps: 910.502 5000 113793976 910.352 100.00% Conn: 1 Mbps: 910.352 Peak Mbps: 911.495 Avg Mbps: 910.352 5000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 910.583 Avg Mbps: 910.526 --- 10.188.81.22 tcpbench statistics --- 681963112 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 903.911/909.366/911.495/2.757 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681963112 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 903.726/909.170/910.583/2.722 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.738 Peak Mbps: 965.738 Tx PPS: 82009 Elapsed: 1000 Mbps: 956.965 Peak Mbps: 956.965 Rx PPS: 81264 Elapsed: 2000 Mbps: 958.052 Peak Mbps: 965.738 Tx PPS: 81356 Elapsed: 1999 Mbps: 958.147 Peak Mbps: 958.147 Rx PPS: 81364 Elapsed: 3000 Mbps: 957.071 Peak Mbps: 965.738 Tx PPS: 81273 Elapsed: 3000 Mbps: 957.106 Peak Mbps: 958.147 Rx PPS: 81276 Elapsed: 4000 Mbps: 957.094 Peak Mbps: 965.738 Tx PPS: 81275 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.147 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.738 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.118 Peak Mbps: 958.147 Rx PPS: 81277 --- 10.188.81.22 tcpbench statistics --- 718883584 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.071/959.010/965.738/3.385 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.147 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718122560 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 956.965/957.266/958.147/0.398 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: 54706: 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: 965.114 Peak Mbps: 965.114 Tx PPS: 81956 Elapsed: 1000 Mbps: 956.411 Peak Mbps: 956.411 Rx PPS: 81217 Elapsed: 2000 Mbps: 958.052 Peak Mbps: 965.114 Tx PPS: 81356 Elapsed: 1999 Mbps: 958.041 Peak Mbps: 958.041 Rx PPS: 81355 Elapsed: 3000 Mbps: 957.059 Peak Mbps: 965.114 Tx PPS: 81272 Elapsed: 3000 Mbps: 957.118 Peak Mbps: 958.041 Rx PPS: 81277 Elapsed: 4000 Mbps: 957.094 Peak Mbps: 965.114 Tx PPS: 81275 Elapsed: 4000 Mbps: 957.118 Peak Mbps: 958.041 Rx PPS: 81277 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.114 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.083 Peak Mbps: 958.041 Rx PPS: 81274 --- 10.188.81.22 tcpbench statistics --- 718805568 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.059/958.883/965.114/3.138 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.041 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718050432 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 956.411/957.150/958.041/0.474 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m53.06s