START sys/kern/sosplice/perf 2025-01-16T01:13:00Z ==== 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 112521184 900.169 100.00% Conn: 1 Mbps: 900.169 Peak Mbps: 900.169 Avg Mbps: 900.169 999 112460368 900.584 100.00% Conn: 1 Mbps: 900.584 Peak Mbps: 900.584 Avg Mbps: 900.584 2000 113809904 911.391 100.00% Conn: 1 Mbps: 911.391 Peak Mbps: 911.391 Avg Mbps: 911.391 1999 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.468 Avg Mbps: 910.468 3000 113807008 910.456 100.00% Conn: 1 Mbps: 910.456 Peak Mbps: 911.391 Avg Mbps: 910.456 3000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 910.502 Avg Mbps: 910.502 4000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 911.391 Avg Mbps: 910.502 4000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.502 Avg Mbps: 910.468 5000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 911.391 Avg Mbps: 910.491 5000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 910.502 Avg Mbps: 910.502 --- 10.188.81.22 tcpbench statistics --- 681463552 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 900.169/908.602/911.391/4.231 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681463552 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.584/908.505/910.502/3.961 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 113001920 904.015 100.00% Conn: 1 Mbps: 904.015 Peak Mbps: 904.015 Avg Mbps: 904.015 999 112972960 904.688 100.00% Conn: 1 Mbps: 904.688 Peak Mbps: 904.688 Avg Mbps: 904.688 2000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.491 Avg Mbps: 910.491 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: 910.491 Avg Mbps: 910.491 3000 113805560 910.444 100.00% Conn: 1 Mbps: 910.444 Peak Mbps: 910.479 Avg Mbps: 910.444 4000 113827280 910.618 100.00% Conn: 1 Mbps: 910.618 Peak Mbps: 910.618 Avg Mbps: 910.618 4000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 910.514 Avg Mbps: 910.514 5000 113821488 910.572 100.00% Conn: 1 Mbps: 910.572 Peak Mbps: 910.618 Avg Mbps: 910.572 5000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.514 Avg Mbps: 910.491 --- 10.188.81.22 tcpbench statistics --- 681971800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 904.015/909.237/910.618/2.611 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681971800 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 904.688/909.323/910.514/2.318 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.236 Peak Mbps: 957.236 Rx PPS: 81287 Elapsed: 2000 Mbps: 958.041 Peak Mbps: 965.868 Tx PPS: 81355 Elapsed: 2000 Mbps: 958.088 Peak Mbps: 958.088 Rx PPS: 81359 Elapsed: 3000 Mbps: 958.029 Peak Mbps: 965.868 Tx PPS: 81354 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.071 Peak Mbps: 965.868 Tx PPS: 81273 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 965.868 Tx PPS: 81278 Elapsed: 5000 Mbps: 957.118 Peak Mbps: 958.088 Rx PPS: 81277 --- 10.188.81.22 tcpbench statistics --- 718902720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.071/959.228/965.868/3.346 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718134336 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.118/957.305/958.088/0.352 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.259 Peak Mbps: 957.259 Rx PPS: 81289 Elapsed: 2000 Mbps: 958.052 Peak Mbps: 965.868 Tx PPS: 81356 Elapsed: 2000 Mbps: 958.088 Peak Mbps: 958.088 Rx PPS: 81359 Elapsed: 3000 Mbps: 957.071 Peak Mbps: 965.868 Tx PPS: 81273 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.083 Peak Mbps: 965.868 Tx PPS: 81274 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 5000 Mbps: 958.076 Peak Mbps: 965.868 Tx PPS: 81358 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 --- 10.188.81.22 tcpbench statistics --- 718901248 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 957.071/959.230/965.868/3.348 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718104896 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.130/957.311/958.088/0.351 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m50.00s