START sys/kern/sosplice/perf 2024-12-29T15:32:35Z ==== 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 112471952 899.776 100.00% Conn: 1 Mbps: 899.776 Peak Mbps: 899.776 Avg Mbps: 899.776 1000 112441544 899.532 100.00% Conn: 1 Mbps: 899.532 Peak Mbps: 899.532 Avg Mbps: 899.532 2000 113811352 911.402 100.00% Conn: 1 Mbps: 911.402 Peak Mbps: 911.402 Avg Mbps: 911.402 2000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.479 Avg Mbps: 910.479 3000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 911.402 Avg Mbps: 910.491 3000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.479 Avg Mbps: 910.479 4000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 911.402 Avg Mbps: 910.468 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 5000 113805560 910.444 100.00% Conn: 1 Mbps: 910.444 Peak Mbps: 911.402 Avg Mbps: 910.444 5000 113822936 910.583 100.00% Conn: 1 Mbps: 910.583 Peak Mbps: 910.583 Avg Mbps: 910.583 --- 10.188.81.22 tcpbench statistics --- 681440384 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 899.776/908.516/911.402/4.385 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681440384 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 899.532/908.313/910.583/4.391 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 113056944 904.456 100.00% Conn: 1 Mbps: 904.456 Peak Mbps: 904.456 Avg Mbps: 904.456 1000 113004816 904.039 100.00% Conn: 1 Mbps: 904.039 Peak Mbps: 904.039 Avg Mbps: 904.039 2000 113788184 911.217 100.00% Conn: 1 Mbps: 911.217 Peak Mbps: 911.217 Avg Mbps: 911.217 2000 113799768 910.398 100.00% Conn: 1 Mbps: 910.398 Peak Mbps: 910.398 Avg Mbps: 910.398 3000 113825832 910.607 100.00% Conn: 1 Mbps: 910.607 Peak Mbps: 911.217 Avg Mbps: 910.607 3000 113828728 910.630 100.00% Conn: 1 Mbps: 910.630 Peak Mbps: 910.630 Avg Mbps: 910.630 4000 113798320 910.387 100.00% Conn: 1 Mbps: 910.387 Peak Mbps: 911.217 Avg Mbps: 910.387 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.630 Avg Mbps: 910.491 5000 113834520 910.676 100.00% Conn: 1 Mbps: 910.676 Peak Mbps: 911.217 Avg Mbps: 910.676 5000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.630 Avg Mbps: 910.491 --- 10.188.81.22 tcpbench statistics --- 682009448 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 904.456/909.468/911.217/2.521 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 682009448 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 904.039/909.210/910.630/2.587 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.165 Peak Mbps: 957.165 Rx PPS: 81281 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.017 Peak Mbps: 958.017 Rx PPS: 81353 Elapsed: 3000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 3000 Mbps: 957.118 Peak Mbps: 958.017 Rx PPS: 81277 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.118 Peak Mbps: 958.017 Rx PPS: 81277 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.071 Peak Mbps: 958.017 Rx PPS: 81273 --- 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.106 Peak Mbps: 958.017 Rx PPS: 81276 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718144640 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.071/957.266/958.017/0.337 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.130 Peak Mbps: 957.130 Rx PPS: 81278 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 957.982 Peak Mbps: 957.982 Rx PPS: 81350 Elapsed: 3000 Mbps: 957.106 Peak Mbps: 965.868 Tx PPS: 81276 Elapsed: 3000 Mbps: 957.142 Peak Mbps: 957.982 Rx PPS: 81279 Elapsed: 4000 Mbps: 958.005 Peak Mbps: 965.868 Tx PPS: 81352 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 957.982 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.106 Peak Mbps: 957.982 Rx PPS: 81276 --- 10.188.81.22 tcpbench statistics --- 718902720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.094/959.228/965.868/3.346 Mbps Elapsed: 6000 Mbps: 957.106 Peak Mbps: 957.982 Rx PPS: 81276 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718152000 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.106/957.266/957.982/0.320 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m50.11s