START sys/kern/sosplice/perf 2024-12-24T17:06:46Z ==== 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 112557384 900.459 100.00% Conn: 1 Mbps: 900.459 Peak Mbps: 900.459 Avg Mbps: 900.459 1000 112515392 900.123 100.00% Conn: 1 Mbps: 900.123 Peak Mbps: 900.123 Avg Mbps: 900.123 2000 113817144 910.537 100.00% Conn: 1 Mbps: 910.537 Peak Mbps: 910.537 Avg Mbps: 910.537 2000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 910.514 Avg Mbps: 910.514 3000 113818592 910.549 100.00% Conn: 1 Mbps: 910.549 Peak Mbps: 910.549 Avg Mbps: 910.549 3000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.514 Avg Mbps: 910.479 4000 113821488 910.572 100.00% Conn: 1 Mbps: 910.572 Peak Mbps: 910.572 Avg Mbps: 910.572 4000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 910.514 Avg Mbps: 910.502 5000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.572 Avg Mbps: 910.479 5000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.514 Avg Mbps: 910.479 --- 10.188.81.22 tcpbench statistics --- 681521472 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 900.459/908.519/910.572/4.030 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681521472 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.123/908.420/910.514/4.148 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 113096040 904.768 100.00% Conn: 1 Mbps: 904.768 Peak Mbps: 904.768 Avg Mbps: 904.768 1000 113038120 904.305 100.00% Conn: 1 Mbps: 904.305 Peak Mbps: 904.305 Avg Mbps: 904.305 2000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.468 Avg Mbps: 910.468 2000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 3000 113817144 910.537 100.00% Conn: 1 Mbps: 910.537 Peak Mbps: 910.537 Avg Mbps: 910.537 3000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 4000 113820040 910.560 100.00% Conn: 1 Mbps: 910.560 Peak Mbps: 910.560 Avg Mbps: 910.560 4000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 910.514 Avg Mbps: 910.514 5000 113843208 910.746 100.00% Conn: 1 Mbps: 910.746 Peak Mbps: 910.746 Avg Mbps: 910.746 5000 113831624 910.653 100.00% Conn: 1 Mbps: 910.653 Peak Mbps: 910.653 Avg Mbps: 910.653 --- 10.188.81.22 tcpbench statistics --- 682122392 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 904.768/909.416/910.746/2.326 Mbps 6000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.653 Avg Mbps: 910.491 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 682122392 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 904.305/909.491/910.653/2.320 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.118 Peak Mbps: 957.118 Rx PPS: 81277 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.130 Peak Mbps: 958.017 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.017 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.017 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718174080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.118/957.274/958.017/0.332 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.142 Peak Mbps: 957.142 Rx PPS: 81279 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.118 Peak Mbps: 965.868 Tx PPS: 81277 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: 958.029 Peak Mbps: 965.868 Tx PPS: 81354 Elapsed: 5000 Mbps: 957.083 Peak Mbps: 958.017 Rx PPS: 81274 --- 10.188.81.22 tcpbench statistics --- 718902720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.059/959.228/965.868/3.348 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.017 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718185856 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 957.083/957.268/958.017/0.336 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m50.03s