START sys/kern/sosplice/perf 2024-12-22T05:33:25Z ==== 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 112606616 900.853 100.00% Conn: 1 Mbps: 900.853 Peak Mbps: 900.853 Avg Mbps: 900.853 1000 112547248 900.378 100.00% Conn: 1 Mbps: 900.378 Peak Mbps: 900.378 Avg Mbps: 900.378 2000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 910.526 Avg Mbps: 910.526 2000 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.526 Avg Mbps: 910.444 3000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.491 Avg Mbps: 910.468 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 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 910.618 Avg Mbps: 910.491 5000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 910.514 Avg Mbps: 910.502 --- 10.188.81.22 tcpbench statistics --- 681583736 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 900.853/908.586/910.618/3.867 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681583736 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.378/908.471/910.514/4.046 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 112877392 903.019 100.00% Conn: 1 Mbps: 903.019 Peak Mbps: 903.019 Avg Mbps: 903.019 999 112810784 903.390 100.00% Conn: 1 Mbps: 903.390 Peak Mbps: 903.390 Avg Mbps: 903.390 2000 113837416 911.611 100.00% Conn: 1 Mbps: 911.611 Peak Mbps: 911.611 Avg Mbps: 911.611 2000 113825832 910.607 100.00% Conn: 1 Mbps: 910.607 Peak Mbps: 910.607 Avg Mbps: 910.607 3000 113830176 910.641 100.00% Conn: 1 Mbps: 910.641 Peak Mbps: 911.611 Avg Mbps: 910.641 3000 113831624 911.565 100.00% Conn: 1 Mbps: 911.565 Peak Mbps: 911.565 Avg Mbps: 911.565 4000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 911.611 Avg Mbps: 910.514 4000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 911.565 Avg Mbps: 910.526 5000 113795424 910.363 100.00% Conn: 1 Mbps: 910.363 Peak Mbps: 911.611 Avg Mbps: 910.363 5000 113805560 910.444 100.00% Conn: 1 Mbps: 910.444 Peak Mbps: 911.565 Avg Mbps: 910.444 --- 10.188.81.22 tcpbench statistics --- 681910984 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 903.019/909.230/911.611/3.136 Mbps 6000 113820040 910.560 100.00% Conn: 1 Mbps: 910.560 Peak Mbps: 911.565 Avg Mbps: 910.560 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681910984 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 903.390/909.515/911.565/2.766 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.189 Peak Mbps: 957.189 Rx PPS: 81283 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.005 Peak Mbps: 958.005 Rx PPS: 81352 Elapsed: 3000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.005 Rx PPS: 81278 --- 10.188.81.22 tcpbench statistics --- 718901248 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.118 Peak Mbps: 958.005 Rx PPS: 81277 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718149056 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.118/957.284/958.005/0.324 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: 76700: 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.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: 2000 Mbps: 957.118 Peak Mbps: 957.165 Rx PPS: 81277 Elapsed: 3000 Mbps: 957.071 Peak Mbps: 965.868 Tx PPS: 81273 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 957.165 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 957.165 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.118 Peak Mbps: 965.868 Tx PPS: 81277 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 957.165 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: 958.052 Peak Mbps: 958.052 Rx PPS: 81356 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718152000 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.118/957.287/958.052/0.342 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m51.29s