START sys/kern/sosplice/perf 2024-12-31T04:44: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 `copy' is up to date. `splice' is up to date. 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 112526976 900.216 100.00% Conn: 1 Mbps: 900.216 Peak Mbps: 900.216 Avg Mbps: 900.216 999 112480640 900.746 100.00% Conn: 1 Mbps: 900.746 Peak Mbps: 900.746 Avg Mbps: 900.746 2000 113812800 911.414 100.00% Conn: 1 Mbps: 911.414 Peak Mbps: 911.414 Avg Mbps: 911.414 2000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.479 Avg Mbps: 910.479 3000 113802664 910.421 100.00% Conn: 1 Mbps: 910.421 Peak Mbps: 911.414 Avg Mbps: 910.421 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.414 Avg Mbps: 910.468 4000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.479 Avg Mbps: 910.468 5000 113807008 910.456 100.00% Conn: 1 Mbps: 910.456 Peak Mbps: 911.414 Avg Mbps: 910.456 5000 113808456 910.468 100.00% Conn: 1 Mbps: 910.468 Peak Mbps: 910.479 Avg Mbps: 910.468 --- 10.188.81.22 tcpbench statistics --- 681476584 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 900.216/908.595/911.414/4.206 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 681476584 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 900.746/908.528/910.479/3.891 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 113058392 904.467 100.00% Conn: 1 Mbps: 904.467 Peak Mbps: 904.467 Avg Mbps: 904.467 1000 113022192 904.178 100.00% Conn: 1 Mbps: 904.178 Peak Mbps: 904.178 Avg Mbps: 904.178 2000 113802664 911.333 100.00% Conn: 1 Mbps: 911.333 Peak Mbps: 911.333 Avg Mbps: 911.333 2000 113809904 910.479 100.00% Conn: 1 Mbps: 910.479 Peak Mbps: 910.479 Avg Mbps: 910.479 3000 113798320 910.387 100.00% Conn: 1 Mbps: 910.387 Peak Mbps: 911.333 Avg Mbps: 910.387 3000 113802664 910.421 100.00% Conn: 1 Mbps: 910.421 Peak Mbps: 910.479 Avg Mbps: 910.421 4000 113820040 910.560 100.00% Conn: 1 Mbps: 910.560 Peak Mbps: 911.333 Avg Mbps: 910.560 4000 113798320 910.387 100.00% Conn: 1 Mbps: 910.387 Peak Mbps: 910.479 Avg Mbps: 910.387 5000 113801216 910.410 100.00% Conn: 1 Mbps: 910.410 Peak Mbps: 911.333 Avg Mbps: 910.410 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 --- 682032616 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 904.467/909.431/911.333/2.506 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 682032616 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 904.178/909.210/910.583/2.517 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.177 Peak Mbps: 957.177 Rx PPS: 81282 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.083 Peak Mbps: 965.868 Tx PPS: 81274 Elapsed: 3000 Mbps: 957.106 Peak Mbps: 958.017 Rx PPS: 81276 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.106 Peak Mbps: 965.868 Tx PPS: 81276 Elapsed: 5000 Mbps: 957.118 Peak Mbps: 958.017 Rx PPS: 81277 --- 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 --- 718159360 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 957.106/957.280/958.017/0.331 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: 65907: 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.177 Peak Mbps: 957.177 Rx PPS: 81282 Elapsed: 2000 Mbps: 958.064 Peak Mbps: 965.868 Tx PPS: 81357 Elapsed: 2000 Mbps: 958.088 Peak Mbps: 958.088 Rx PPS: 81359 Elapsed: 3000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 Elapsed: 3000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 4000 Mbps: 957.059 Peak Mbps: 965.868 Tx PPS: 81272 Elapsed: 4000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 Elapsed: 5000 Mbps: 957.094 Peak Mbps: 965.868 Tx PPS: 81275 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.059/959.036/965.868/3.437 Mbps Elapsed: 6000 Mbps: 957.130 Peak Mbps: 958.088 Rx PPS: 81278 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 718190272 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 957.118/957.295/958.088/0.355 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m51.34s