START sys/kern/sosplice/perf 2024-12-20T04:37:50Z ==== 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 112580552 900.644 100.00% Conn: 1 Mbps: 900.644 Peak Mbps: 900.644 Avg Mbps: 900.644 1000 112548696 900.390 100.00% Conn: 1 Mbps: 900.390 Peak Mbps: 900.390 Avg Mbps: 900.390 2000 113824384 910.595 100.00% Conn: 1 Mbps: 910.595 Peak Mbps: 910.595 Avg Mbps: 910.595 2000 113812800 911.414 100.00% Conn: 1 Mbps: 911.414 Peak Mbps: 911.414 Avg Mbps: 911.414 3000 113815696 910.526 100.00% Conn: 1 Mbps: 910.526 Peak Mbps: 910.595 Avg Mbps: 910.526 3000 113812800 910.502 100.00% Conn: 1 Mbps: 910.502 Peak Mbps: 911.414 Avg Mbps: 910.502 4000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.595 Avg Mbps: 910.479 4000 113811352 910.491 100.00% Conn: 1 Mbps: 910.491 Peak Mbps: 911.414 Avg Mbps: 910.491 5000 113802664 910.421 100.00% Conn: 1 Mbps: 910.421 Peak Mbps: 910.595 Avg Mbps: 910.421 5000 113807008 910.456 100.00% Conn: 1 Mbps: 910.456 Peak Mbps: 911.414 Avg Mbps: 910.456 --- 10.188.81.22 tcpbench statistics --- 681531608 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 900.644/908.533/910.595/3.945 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681531608 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.390/908.651/911.414/4.146 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 112878840 903.031 100.00% Conn: 1 Mbps: 903.031 Peak Mbps: 903.031 Avg Mbps: 903.031 1000 112871600 902.973 100.00% Conn: 1 Mbps: 902.973 Peak Mbps: 902.973 Avg Mbps: 902.973 2000 113817144 911.449 100.00% Conn: 1 Mbps: 911.449 Peak Mbps: 911.449 Avg Mbps: 911.449 2000 113818592 910.549 100.00% Conn: 1 Mbps: 910.549 Peak Mbps: 910.549 Avg Mbps: 910.549 3000 113793976 910.352 100.00% Conn: 1 Mbps: 910.352 Peak Mbps: 911.449 Avg Mbps: 910.352 3000 113801216 910.410 100.00% Conn: 1 Mbps: 910.410 Peak Mbps: 910.549 Avg Mbps: 910.410 4000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 911.449 Avg Mbps: 910.514 4000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 910.549 Avg Mbps: 910.514 5000 113814248 910.514 100.00% Conn: 1 Mbps: 910.514 Peak Mbps: 911.449 Avg Mbps: 910.514 5000 113807008 910.456 100.00% Conn: 1 Mbps: 910.456 Peak Mbps: 910.549 Avg Mbps: 910.456 --- 10.188.81.22 tcpbench statistics --- 681884920 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 903.031/909.172/911.449/3.095 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681884920 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 902.973/908.980/910.549/3.004 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.059 Peak Mbps: 957.059 Rx PPS: 81272 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 958.064 Rx PPS: 81357 Elapsed: 3000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 3000 Mbps: 957.153 Peak Mbps: 958.064 Rx PPS: 81280 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.106 Peak Mbps: 958.064 Rx PPS: 81276 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.130 Peak Mbps: 958.064 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.064 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718156416 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.059/957.274/958.064/0.355 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.153 Peak Mbps: 957.153 Rx PPS: 81280 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 1999 Mbps: 958.064 Peak Mbps: 958.064 Rx PPS: 81357 Elapsed: 3000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 3000 Mbps: 957.118 Peak Mbps: 958.064 Rx PPS: 81277 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.064 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 5000 Mbps: 957.024 Peak Mbps: 958.064 Rx PPS: 81269 --- 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.159 Peak Mbps: 958.159 Rx PPS: 81365 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718190272 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 957.024/957.441/958.159/0.476 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m51.58s