START sys/kern/sosplice/perf 2025-04-01T18:21:16Z ==== 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 pkill -x tcpbench *** Error 1 in target 'run-tcp-copy' (ignored) ./copy -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 1000 1377902776 11023.222 100.00% Conn: 1 Mbps: 11023.222 Peak Mbps: 11023.222 Avg Mbps: 11023.222 999 1377837344 11033.732 100.00% Conn: 1 Mbps: 11033.732 Peak Mbps: 11033.732 Avg Mbps: 11033.732 2000 1386029826 11088.239 100.00% Conn: 1 Mbps: 11088.239 Peak Mbps: 11088.239 Avg Mbps: 11088.239 2000 1385964626 11087.717 100.00% Conn: 1 Mbps: 11087.717 Peak Mbps: 11087.717 Avg Mbps: 11087.717 3000 1388546426 11108.371 100.00% Conn: 1 Mbps: 11108.371 Peak Mbps: 11108.371 Avg Mbps: 11108.371 3000 1388546206 11108.370 100.00% Conn: 1 Mbps: 11108.370 Peak Mbps: 11108.370 Avg Mbps: 11108.370 4000 1389127228 11113.018 100.00% 4000 1389176002 11113.408 100.00% Conn: 1 Mbps: 11113.018 Peak Mbps: 11113.018 Avg Mbps: 11113.018 Conn: 1 Mbps: 11113.408 Peak Mbps: 11113.408 Avg Mbps: 11113.408 5000 1383864978 11082.002 100.00% Conn: 1 Mbps: 11082.002 Peak Mbps: 11113.408 Avg Mbps: 11082.002 5000 1383979380 11071.835 100.00% Conn: 1 Mbps: 11071.835 Peak Mbps: 11113.018 Avg Mbps: 11071.835 --- 127.0.0.1 tcpbench statistics --- 8311645018 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11023.222/11083.048/11113.408/32.156 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8311645018 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11033.732/11082.934/11113.018/28.701 Mbps sleep 1 ==== run-tcp-splice ==== ln -s relay splice pkill -x tcpbench *** Error 1 in target 'run-tcp-splice' (ignored) ./splice -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench elapsed_ms bytes mbps bwidth elapsed_ms bytes mbps bwidth 999 1541511678 12344.438 100.00% Conn: 1 Mbps: 12344.438 Peak Mbps: 12344.438 Avg Mbps: 12344.438 1000 1541839254 12334.714 100.00% Conn: 1 Mbps: 12334.714 Peak Mbps: 12334.714 Avg Mbps: 12334.714 2000 1554489080 12435.913 100.00% Conn: 1 Mbps: 12435.913 Peak Mbps: 12435.913 Avg Mbps: 12435.913 2000 1554488664 12448.358 100.00% Conn: 1 Mbps: 12448.358 Peak Mbps: 12448.358 Avg Mbps: 12448.358 3000 1555163902 12441.311 100.00% Conn: 1 Mbps: 12441.311 Peak Mbps: 12441.311 Avg Mbps: 12441.311 3000 1555098470 12440.788 100.00% Conn: 1 Mbps: 12440.788 Peak Mbps: 12448.358 Avg Mbps: 12440.788 4000 1560208282 12481.666 100.00% Conn: 1 Mbps: 12481.666 Peak Mbps: 12481.666 Avg Mbps: 12481.666 4000 1560240986 12494.422 100.00% Conn: 1 Mbps: 12494.422 Peak Mbps: 12494.422 Avg Mbps: 12494.422 5000 1554098146 12432.785 100.00% Conn: 1 Mbps: 12432.785 Peak Mbps: 12481.666 Avg Mbps: 12432.785 5000 1554082216 12432.658 100.00% Conn: 1 Mbps: 12432.658 Peak Mbps: 12494.422 Avg Mbps: 12432.658 --- 127.0.0.1 tcpbench statistics --- 9316443768 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12334.714/12430.188/12494.422/52.326 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9316443768 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12344.438/12427.223/12481.666/44.994 Mbps sleep 1 ==== run-udp-copy ==== pkill -x tcpbench *** Error 1 in target 'run-udp-copy' (ignored) ./copy -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 1983.491 Peak Mbps: 1983.491 Tx PPS: 168435 Elapsed: 999 Mbps: 1985.559 Peak Mbps: 1985.559 Rx PPS: 168610 Elapsed: 2000 Mbps: 1986.431 Peak Mbps: 1986.431 Tx PPS: 168684 Elapsed: 1999 Mbps: 1986.537 Peak Mbps: 1986.537 Rx PPS: 168693 Elapsed: 3000 Mbps: 1988.081 Peak Mbps: 1988.081 Tx PPS: 168824 Elapsed: 2999 Mbps: 1986.058 Peak Mbps: 1986.537 Rx PPS: 168653 Elapsed: 4000 Mbps: 1987.000 Peak Mbps: 1988.081 Tx PPS: 168733 Elapsed: 3999 Mbps: 1987.023 Peak Mbps: 1987.023 Rx PPS: 168735 Elapsed: 5000 Mbps: 1986.953 Peak Mbps: 1988.081 Tx PPS: 168729 Elapsed: 5000 Mbps: 1986.964 Peak Mbps: 1987.023 Rx PPS: 168730 --- 127.0.0.1 tcpbench statistics --- 1489281280 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1983.491/1986.391/1988.081/1.546 Mbps Elapsed: 6002 Mbps: 1982.117 Peak Mbps: 1987.023 Rx PPS: 168318 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1489281280 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1982.117/1985.710/1987.023/1.685 Mbps sleep 1 ==== run-udp-splice ==== pkill -x tcpbench *** Error 1 in target 'run-udp-splice' (ignored) ./splice -u -4 12345 127.0.0.1 12346 & rpid=$! ; tcpbench -u -4 -t 7 -s -p 12346 & sleep 1 ; tcpbench -u -4 -t 5 127.0.0.1 ; kill $rpid ; pkill -x tcpbench Elapsed: 1000 Mbps: 1891.979 Peak Mbps: 1891.979 Tx PPS: 160664 Elapsed: 1000 Mbps: 1892.026 Peak Mbps: 1892.026 Rx PPS: 160668 Elapsed: 2000 Mbps: 1896.231 Peak Mbps: 1896.231 Tx PPS: 161025 Elapsed: 1999 Mbps: 1896.313 Peak Mbps: 1896.313 Rx PPS: 161032 Elapsed: 3000 Mbps: 1895.571 Peak Mbps: 1896.231 Tx PPS: 160969 Elapsed: 2999 Mbps: 1895.583 Peak Mbps: 1896.313 Rx PPS: 160970 Elapsed: 4000 Mbps: 1896.701 Peak Mbps: 1896.701 Tx PPS: 161065 Elapsed: 3999 Mbps: 1896.701 Peak Mbps: 1896.701 Rx PPS: 161065 Elapsed: 5000 Mbps: 1895.783 Peak Mbps: 1896.701 Tx PPS: 160987 Elapsed: 4999 Mbps: 1895.783 Peak Mbps: 1896.701 Rx PPS: 160987 --- 127.0.0.1 tcpbench statistics --- 1420588928 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1891.979/1895.253/1896.701/1.682 Mbps Elapsed: 6002 Mbps: 1886.428 Peak Mbps: 1896.701 Rx PPS: 160192 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1420588928 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1886.428/1893.806/1896.701/3.636 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s