START sys/kern/sosplice/perf 2025-03-19T19:22:04Z ==== 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 999 1395741438 11177.109 100.00% Conn: 1 Mbps: 11177.109 Peak Mbps: 11177.109 Avg Mbps: 11177.109 1000 1395953884 11167.631 100.00% Conn: 1 Mbps: 11167.631 Peak Mbps: 11167.631 Avg Mbps: 11167.631 2000 1407915406 11263.323 100.00% Conn: 1 Mbps: 11263.323 Peak Mbps: 11263.323 Avg Mbps: 11263.323 2000 1407899048 11274.467 100.00% Conn: 1 Mbps: 11274.467 Peak Mbps: 11274.467 Avg Mbps: 11274.467 3000 1409958632 11290.960 100.00% Conn: 1 Mbps: 11290.960 Peak Mbps: 11290.960 Avg Mbps: 11290.960 3000 1410024076 11280.193 100.00% Conn: 1 Mbps: 11280.193 Peak Mbps: 11280.193 Avg Mbps: 11280.193 4000 1407830500 11262.644 100.00% Conn: 1 Mbps: 11262.644 Peak Mbps: 11280.193 Avg Mbps: 11262.644 4000 1408043374 11264.347 100.00% Conn: 1 Mbps: 11264.347 Peak Mbps: 11290.960 Avg Mbps: 11264.347 5000 1404116766 11232.934 100.00% Conn: 1 Mbps: 11232.934 Peak Mbps: 11280.193 Avg Mbps: 11232.934 5000 1404034836 11243.522 100.00% Conn: 1 Mbps: 11243.522 Peak Mbps: 11290.960 Avg Mbps: 11243.522 --- 127.0.0.1 tcpbench statistics --- 8434407046 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11167.631/11248.185/11290.960/43.110 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8434407046 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11177.109/11243.241/11280.193/36.400 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 1000 1546519624 12372.157 100.00% 1000 1546388760 12371.110 100.00% Conn: 1 Mbps: 12372.157 Peak Mbps: 12372.157 Avg Mbps: 12372.157 Conn: 1 Mbps: 12371.110 Peak Mbps: 12371.110 Avg Mbps: 12371.110 2000 1557794766 12462.358 100.00% Conn: 1 Mbps: 12462.358 Peak Mbps: 12462.358 Avg Mbps: 12462.358 2000 1558007420 12464.059 100.00% Conn: 1 Mbps: 12464.059 Peak Mbps: 12464.059 Avg Mbps: 12464.059 3000 1559354196 12487.321 100.00% Conn: 1 Mbps: 12487.321 Peak Mbps: 12487.321 Avg Mbps: 12487.321 3000 1559534146 12476.273 100.00% Conn: 1 Mbps: 12476.273 Peak Mbps: 12476.273 Avg Mbps: 12476.273 4000 1560192196 12494.032 100.00% Conn: 1 Mbps: 12494.032 Peak Mbps: 12494.032 Avg Mbps: 12494.032 4000 1560257640 12482.061 100.00% Conn: 1 Mbps: 12482.061 Peak Mbps: 12487.321 Avg Mbps: 12482.061 5000 1561549510 12492.396 100.00% Conn: 1 Mbps: 12492.396 Peak Mbps: 12494.032 Avg Mbps: 12492.396 5000 1561565868 12492.527 100.00% Conn: 1 Mbps: 12492.527 Peak Mbps: 12492.527 Avg Mbps: 12492.527 --- 127.0.0.1 tcpbench statistics --- 9345067650 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12372.157/12459.625/12492.527/44.773 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9345067650 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12371.110/12459.234/12494.032/45.555 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: 1950.129 Peak Mbps: 1950.129 Tx PPS: 165602 Elapsed: 999 Mbps: 1952.211 Peak Mbps: 1952.211 Rx PPS: 165778 Elapsed: 2000 Mbps: 1952.494 Peak Mbps: 1952.494 Tx PPS: 165802 Elapsed: 1999 Mbps: 1952.576 Peak Mbps: 1952.576 Rx PPS: 165809 Elapsed: 3000 Mbps: 1951.224 Peak Mbps: 1952.494 Tx PPS: 165695 Elapsed: 3000 Mbps: 1951.236 Peak Mbps: 1952.576 Rx PPS: 165696 Elapsed: 4000 Mbps: 1951.954 Peak Mbps: 1952.494 Tx PPS: 165757 Elapsed: 4000 Mbps: 1951.954 Peak Mbps: 1952.576 Rx PPS: 165757 Elapsed: 5000 Mbps: 1950.895 Peak Mbps: 1952.494 Tx PPS: 165667 Elapsed: 5000 Mbps: 1950.883 Peak Mbps: 1952.576 Rx PPS: 165666 --- 127.0.0.1 tcpbench statistics --- 1463234240 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1950.129/1951.339/1952.494/0.823 Mbps Elapsed: 6002 Mbps: 1947.024 Peak Mbps: 1952.576 Rx PPS: 165338 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1463234240 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1947.024/1950.981/1952.576/1.859 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: 1879.709 Peak Mbps: 1879.709 Tx PPS: 159622 Elapsed: 1000 Mbps: 1879.779 Peak Mbps: 1879.779 Rx PPS: 159628 Elapsed: 2000 Mbps: 1882.745 Peak Mbps: 1882.745 Tx PPS: 159879 Elapsed: 1999 Mbps: 1882.781 Peak Mbps: 1882.781 Rx PPS: 159882 Elapsed: 3000 Mbps: 1881.722 Peak Mbps: 1882.745 Tx PPS: 159793 Elapsed: 2999 Mbps: 1881.746 Peak Mbps: 1882.781 Rx PPS: 159795 Elapsed: 4000 Mbps: 1881.852 Peak Mbps: 1882.745 Tx PPS: 159804 Elapsed: 3999 Mbps: 1883.712 Peak Mbps: 1883.712 Rx PPS: 159961 Elapsed: 5000 Mbps: 1880.769 Peak Mbps: 1882.745 Tx PPS: 159712 Elapsed: 5000 Mbps: 1880.780 Peak Mbps: 1883.712 Rx PPS: 159713 --- 127.0.0.1 tcpbench statistics --- 1410518976 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1879.709/1881.359/1882.745/1.036 Mbps Elapsed: 6002 Mbps: 1875.369 Peak Mbps: 1883.712 Rx PPS: 159253 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1410518976 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1875.369/1880.695/1883.712/2.701 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s