START sys/kern/sosplice/perf 2025-03-12T19:22:34Z ==== 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 1389886574 11130.223 100.00% Conn: 1 Mbps: 11130.223 Peak Mbps: 11130.223 Avg Mbps: 11130.223 1000 1390115586 11120.925 100.00% Conn: 1 Mbps: 11120.925 Peak Mbps: 11120.925 Avg Mbps: 11120.925 2000 1408877952 11282.306 100.00% Conn: 1 Mbps: 11282.306 Peak Mbps: 11282.306 Avg Mbps: 11282.306 1999 1408943384 11282.830 100.00% Conn: 1 Mbps: 11282.830 Peak Mbps: 11282.830 Avg Mbps: 11282.830 3000 1410402394 11283.219 100.00% 3000 1410402602 11283.221 100.00% Conn: 1 Mbps: 11283.219 Peak Mbps: 11283.219 Avg Mbps: 11283.219 Conn: 1 Mbps: 11283.221 Peak Mbps: 11283.221 Avg Mbps: 11283.221 4000 1411316070 11290.529 100.00% Conn: 1 Mbps: 11290.529 Peak Mbps: 11290.529 Avg Mbps: 11290.529 4000 1411348590 11290.789 100.00% Conn: 1 Mbps: 11290.789 Peak Mbps: 11290.789 Avg Mbps: 11290.789 5000 1412057560 11296.460 100.00% Conn: 1 Mbps: 11296.460 Peak Mbps: 11296.460 Avg Mbps: 11296.460 5000 1412122088 11296.977 100.00% Conn: 1 Mbps: 11296.977 Peak Mbps: 11296.977 Avg Mbps: 11296.977 --- 127.0.0.1 tcpbench statistics --- 8442416112 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11120.925/11254.791/11296.977/67.145 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8442416112 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11130.223/11256.705/11296.460/63.444 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 1550489490 12403.916 100.00% Conn: 1 Mbps: 12403.916 Peak Mbps: 12403.916 Avg Mbps: 12403.916 999 1550358626 12415.284 100.00% Conn: 1 Mbps: 12415.284 Peak Mbps: 12415.284 Avg Mbps: 12415.284 2000 1570682474 12565.460 100.00% Conn: 1 Mbps: 12565.460 Peak Mbps: 12565.460 Avg Mbps: 12565.460 2000 1570813338 12566.507 100.00% Conn: 1 Mbps: 12566.507 Peak Mbps: 12566.507 Avg Mbps: 12566.507 3000 1573883026 12591.064 100.00% Conn: 1 Mbps: 12591.064 Peak Mbps: 12591.064 Avg Mbps: 12591.064 3000 1573784878 12590.279 100.00% Conn: 1 Mbps: 12590.279 Peak Mbps: 12590.279 Avg Mbps: 12590.279 4000 1574053040 12605.029 100.00% Conn: 1 Mbps: 12605.029 Peak Mbps: 12605.029 Avg Mbps: 12605.029 4000 1574151188 12593.210 100.00% Conn: 1 Mbps: 12593.210 Peak Mbps: 12593.210 Avg Mbps: 12593.210 5000 1567456156 12539.649 100.00% 5000 1567521588 12540.173 100.00% Conn: 1 Mbps: 12539.649 Peak Mbps: 12593.210 Avg Mbps: 12539.649 Conn: 1 Mbps: 12540.173 Peak Mbps: 12605.029 Avg Mbps: 12540.173 --- 127.0.0.1 tcpbench statistics --- 9411337840 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12403.916/12538.660/12593.210/70.138 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9411337840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12415.284/12543.454/12605.029/67.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: 1926.966 Peak Mbps: 1926.966 Tx PPS: 163635 Elapsed: 1000 Mbps: 1927.060 Peak Mbps: 1927.060 Rx PPS: 163643 Elapsed: 2000 Mbps: 1934.859 Peak Mbps: 1934.859 Tx PPS: 164305 Elapsed: 1999 Mbps: 1934.954 Peak Mbps: 1934.954 Rx PPS: 164313 Elapsed: 3000 Mbps: 1933.725 Peak Mbps: 1934.859 Tx PPS: 164209 Elapsed: 2999 Mbps: 1933.725 Peak Mbps: 1934.954 Rx PPS: 164209 Elapsed: 4000 Mbps: 1932.253 Peak Mbps: 1934.859 Tx PPS: 164084 Elapsed: 3999 Mbps: 1932.253 Peak Mbps: 1934.954 Rx PPS: 164084 Elapsed: 5000 Mbps: 1931.311 Peak Mbps: 1934.859 Tx PPS: 164004 Elapsed: 5000 Mbps: 1931.323 Peak Mbps: 1934.954 Rx PPS: 164005 --- 127.0.0.1 tcpbench statistics --- 1448710016 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1926.966/1931.823/1934.859/2.716 Mbps Elapsed: 6002 Mbps: 1928.443 Peak Mbps: 1934.954 Rx PPS: 163760 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1448710016 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1927.060/1931.293/1934.954/2.777 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: 1849.291 Peak Mbps: 1849.291 Tx PPS: 157039 Elapsed: 1000 Mbps: 1849.362 Peak Mbps: 1849.362 Rx PPS: 157045 Elapsed: 2000 Mbps: 1851.909 Peak Mbps: 1851.909 Tx PPS: 157261 Elapsed: 1999 Mbps: 1851.968 Peak Mbps: 1851.968 Rx PPS: 157266 Elapsed: 3000 Mbps: 1851.117 Peak Mbps: 1851.909 Tx PPS: 157194 Elapsed: 2999 Mbps: 1851.117 Peak Mbps: 1851.968 Rx PPS: 157194 Elapsed: 4000 Mbps: 1849.550 Peak Mbps: 1851.909 Tx PPS: 157061 Elapsed: 3999 Mbps: 1849.539 Peak Mbps: 1851.968 Rx PPS: 157060 Elapsed: 5000 Mbps: 1850.551 Peak Mbps: 1851.909 Tx PPS: 157146 Elapsed: 5000 Mbps: 1850.575 Peak Mbps: 1851.968 Rx PPS: 157148 --- 127.0.0.1 tcpbench statistics --- 1387970880 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1849.291/1850.484/1851.909/0.972 Mbps Elapsed: 6002 Mbps: 1849.361 Peak Mbps: 1851.968 Rx PPS: 157044 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1387970880 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1849.361/1850.320/1851.968/0.988 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s