START sys/kern/sosplice/perf 2025-03-16T19:21:29Z ==== 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 1391086052 11128.688 100.00% Conn: 1 Mbps: 11128.688 Peak Mbps: 11128.688 Avg Mbps: 11128.688 999 1390955420 11138.782 100.00% Conn: 1 Mbps: 11138.782 Peak Mbps: 11138.782 Avg Mbps: 11138.782 2000 1409000402 11272.003 100.00% Conn: 1 Mbps: 11272.003 Peak Mbps: 11272.003 Avg Mbps: 11272.003 2000 1409097022 11272.776 100.00% Conn: 1 Mbps: 11272.776 Peak Mbps: 11272.776 Avg Mbps: 11272.776 3000 1408096916 11264.775 100.00% Conn: 1 Mbps: 11264.775 Peak Mbps: 11272.003 Avg Mbps: 11264.775 3000 1408049602 11264.397 100.00% Conn: 1 Mbps: 11264.397 Peak Mbps: 11272.776 Avg Mbps: 11264.397 4000 1410423200 11283.386 100.00% Conn: 1 Mbps: 11283.386 Peak Mbps: 11283.386 Avg Mbps: 11283.386 4000 1410423200 11283.386 100.00% Conn: 1 Mbps: 11283.386 Peak Mbps: 11283.386 Avg Mbps: 11283.386 5000 1407624234 11260.994 100.00% Conn: 1 Mbps: 11260.994 Peak Mbps: 11283.386 Avg Mbps: 11260.994 5000 1407673308 11261.386 100.00% Conn: 1 Mbps: 11261.386 Peak Mbps: 11283.386 Avg Mbps: 11261.386 --- 127.0.0.1 tcpbench statistics --- 8434177882 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11128.688/11242.127/11283.386/57.231 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8434177882 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11138.782/11243.988/11283.386/53.154 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 1550211360 12401.691 100.00% Conn: 1 Mbps: 12401.691 Peak Mbps: 12401.691 Avg Mbps: 12401.691 1000 1550408072 12403.265 100.00% Conn: 1 Mbps: 12403.265 Peak Mbps: 12403.265 Avg Mbps: 12403.265 2000 1560041984 12492.829 100.00% Conn: 1 Mbps: 12492.829 Peak Mbps: 12492.829 Avg Mbps: 12492.829 2000 1560123358 12480.987 100.00% Conn: 1 Mbps: 12480.987 Peak Mbps: 12480.987 Avg Mbps: 12480.987 3000 1564262086 12526.623 100.00% Conn: 1 Mbps: 12526.623 Peak Mbps: 12526.623 Avg Mbps: 12526.623 3000 1564311160 12527.016 100.00% Conn: 1 Mbps: 12527.016 Peak Mbps: 12527.016 Avg Mbps: 12527.016 4000 1569384188 12555.074 100.00% Conn: 1 Mbps: 12555.074 Peak Mbps: 12555.074 Avg Mbps: 12555.074 4000 1569335114 12554.681 100.00% Conn: 1 Mbps: 12554.681 Peak Mbps: 12554.681 Avg Mbps: 12554.681 5000 1566783194 12546.812 100.00% Conn: 1 Mbps: 12546.812 Peak Mbps: 12555.074 Avg Mbps: 12546.812 5000 1567143070 12537.145 100.00% Conn: 1 Mbps: 12537.145 Peak Mbps: 12554.681 Avg Mbps: 12537.145 --- 127.0.0.1 tcpbench statistics --- 9368663560 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12403.265/12500.619/12554.681/54.437 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9368663560 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12401.691/12504.606/12555.074/55.755 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: 1948.775 Peak Mbps: 1948.775 Tx PPS: 165487 Elapsed: 1000 Mbps: 1948.904 Peak Mbps: 1948.904 Rx PPS: 165498 Elapsed: 2000 Mbps: 1954.781 Peak Mbps: 1954.781 Tx PPS: 165996 Elapsed: 1999 Mbps: 1954.851 Peak Mbps: 1954.851 Rx PPS: 166003 Elapsed: 3000 Mbps: 1952.249 Peak Mbps: 1954.781 Tx PPS: 165782 Elapsed: 2999 Mbps: 1952.261 Peak Mbps: 1954.851 Rx PPS: 165783 Elapsed: 4000 Mbps: 1952.826 Peak Mbps: 1954.781 Tx PPS: 165831 Elapsed: 3999 Mbps: 1952.814 Peak Mbps: 1954.851 Rx PPS: 165830 Elapsed: 5000 Mbps: 1950.235 Peak Mbps: 1954.781 Tx PPS: 165611 Elapsed: 4999 Mbps: 1950.235 Peak Mbps: 1954.851 Rx PPS: 165611 --- 127.0.0.1 tcpbench statistics --- 1463715584 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1948.775/1951.773/1954.781/2.085 Mbps Elapsed: 6002 Mbps: 1948.716 Peak Mbps: 1954.851 Rx PPS: 165482 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1463715584 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1948.716/1951.297/1954.851/2.213 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: 1885.785 Peak Mbps: 1885.785 Tx PPS: 160138 Elapsed: 1000 Mbps: 1885.856 Peak Mbps: 1885.856 Rx PPS: 160144 Elapsed: 2000 Mbps: 1886.777 Peak Mbps: 1886.777 Tx PPS: 160222 Elapsed: 1999 Mbps: 1886.836 Peak Mbps: 1886.836 Rx PPS: 160227 Elapsed: 3000 Mbps: 1886.880 Peak Mbps: 1886.880 Tx PPS: 160231 Elapsed: 2999 Mbps: 1886.892 Peak Mbps: 1886.892 Rx PPS: 160232 Elapsed: 4000 Mbps: 1883.960 Peak Mbps: 1886.880 Tx PPS: 159983 Elapsed: 3999 Mbps: 1883.948 Peak Mbps: 1886.892 Rx PPS: 159982 Elapsed: 5000 Mbps: 1884.702 Peak Mbps: 1886.880 Tx PPS: 160046 Elapsed: 5000 Mbps: 1884.690 Peak Mbps: 1886.892 Rx PPS: 160045 --- 127.0.0.1 tcpbench statistics --- 1414257856 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1883.960/1885.621/1886.880/1.145 Mbps Elapsed: 6002 Mbps: 1883.960 Peak Mbps: 1886.892 Rx PPS: 159983 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1414257856 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1883.948/1885.364/1886.892/1.236 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s