START sys/kern/sosplice/perf 2025-03-30T18:23:56Z ==== 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 1354773960 10838.192 100.00% Conn: 1 Mbps: 10838.192 Peak Mbps: 10838.192 Avg Mbps: 10838.192 999 1354643432 10847.995 100.00% Conn: 1 Mbps: 10847.995 Peak Mbps: 10847.995 Avg Mbps: 10847.995 2000 1368311412 10957.449 100.00% Conn: 1 Mbps: 10957.449 Peak Mbps: 10957.449 Avg Mbps: 10957.449 2000 1368343908 10946.751 100.00% Conn: 1 Mbps: 10946.751 Peak Mbps: 10946.751 Avg Mbps: 10946.751 3000 1364663682 10917.309 100.00% Conn: 1 Mbps: 10917.309 Peak Mbps: 10957.449 Avg Mbps: 10917.309 3000 1364663774 10917.310 100.00% Conn: 1 Mbps: 10917.310 Peak Mbps: 10946.751 Avg Mbps: 10917.310 4000 1365439292 10923.514 100.00% Conn: 1 Mbps: 10923.514 Peak Mbps: 10957.449 Avg Mbps: 10923.514 4000 1365390426 10934.057 100.00% Conn: 1 Mbps: 10934.057 Peak Mbps: 10946.751 Avg Mbps: 10934.057 5000 1368247716 10956.939 100.00% Conn: 1 Mbps: 10956.939 Peak Mbps: 10957.449 Avg Mbps: 10956.939 5000 1368280744 10946.246 100.00% Conn: 1 Mbps: 10946.246 Peak Mbps: 10946.751 Avg Mbps: 10946.246 --- 127.0.0.1 tcpbench statistics --- 8186858392 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10838.192/10918.681/10957.449/43.521 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8186858392 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10847.995/10918.472/10946.751/36.830 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 1501597610 12012.781 100.00% Conn: 1 Mbps: 12012.781 Peak Mbps: 12012.781 Avg Mbps: 12012.781 1000 1501564894 12012.519 100.00% Conn: 1 Mbps: 12012.519 Peak Mbps: 12012.519 Avg Mbps: 12012.519 2000 1523110202 12197.079 100.00% Conn: 1 Mbps: 12197.079 Peak Mbps: 12197.079 Avg Mbps: 12197.079 2000 1523208350 12185.667 100.00% Conn: 1 Mbps: 12185.667 Peak Mbps: 12185.667 Avg Mbps: 12185.667 3000 1525435454 12203.484 100.00% Conn: 1 Mbps: 12203.484 Peak Mbps: 12203.484 Avg Mbps: 12203.484 3000 1525190084 12201.521 100.00% Conn: 1 Mbps: 12201.521 Peak Mbps: 12201.521 Avg Mbps: 12201.521 4000 1525780080 12218.459 100.00% Conn: 1 Mbps: 12218.459 Peak Mbps: 12218.459 Avg Mbps: 12218.459 4000 1525910944 12207.288 100.00% Conn: 1 Mbps: 12207.288 Peak Mbps: 12207.288 Avg Mbps: 12207.288 5000 1524725106 12197.801 100.00% Conn: 1 Mbps: 12197.801 Peak Mbps: 12218.459 Avg Mbps: 12197.801 5000 1524741452 12197.932 100.00% Conn: 1 Mbps: 12197.932 Peak Mbps: 12207.288 Avg Mbps: 12197.932 --- 127.0.0.1 tcpbench statistics --- 9121609934 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12012.781/12163.712/12207.288/75.558 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9121609934 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12012.519/12163.193/12218.459/76.064 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: 1944.736 Peak Mbps: 1944.736 Tx PPS: 165144 Elapsed: 999 Mbps: 1946.800 Peak Mbps: 1946.800 Rx PPS: 165319 Elapsed: 2000 Mbps: 1950.077 Peak Mbps: 1950.077 Tx PPS: 165597 Elapsed: 1999 Mbps: 1950.124 Peak Mbps: 1950.124 Rx PPS: 165601 Elapsed: 3000 Mbps: 1947.197 Peak Mbps: 1950.077 Tx PPS: 165353 Elapsed: 2999 Mbps: 1947.220 Peak Mbps: 1950.124 Rx PPS: 165355 Elapsed: 4000 Mbps: 1949.905 Peak Mbps: 1950.077 Tx PPS: 165583 Elapsed: 3999 Mbps: 1949.882 Peak Mbps: 1950.124 Rx PPS: 165581 Elapsed: 5000 Mbps: 1950.176 Peak Mbps: 1950.176 Tx PPS: 165606 Elapsed: 4999 Mbps: 1952.128 Peak Mbps: 1952.128 Rx PPS: 165771 --- 127.0.0.1 tcpbench statistics --- 1461613568 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1944.736/1948.418/1950.176/2.150 Mbps Elapsed: 6002 Mbps: 1948.705 Peak Mbps: 1952.128 Rx PPS: 165481 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1461613568 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1946.800/1949.143/1952.128/1.817 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.385 Peak Mbps: 1849.385 Tx PPS: 157047 Elapsed: 1000 Mbps: 1849.456 Peak Mbps: 1849.456 Rx PPS: 157053 Elapsed: 2000 Mbps: 1852.262 Peak Mbps: 1852.262 Tx PPS: 157291 Elapsed: 1999 Mbps: 1852.309 Peak Mbps: 1852.309 Rx PPS: 157295 Elapsed: 3000 Mbps: 1847.713 Peak Mbps: 1852.262 Tx PPS: 156905 Elapsed: 2999 Mbps: 1847.702 Peak Mbps: 1852.309 Rx PPS: 156904 Elapsed: 4000 Mbps: 1847.937 Peak Mbps: 1852.262 Tx PPS: 156924 Elapsed: 4000 Mbps: 1847.949 Peak Mbps: 1852.309 Rx PPS: 156925 Elapsed: 5000 Mbps: 1848.973 Peak Mbps: 1852.262 Tx PPS: 157012 Elapsed: 5000 Mbps: 1848.985 Peak Mbps: 1852.309 Rx PPS: 157013 --- 127.0.0.1 tcpbench statistics --- 1386513600 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1847.713/1849.254/1852.262/1.628 Mbps Elapsed: 6002 Mbps: 1843.872 Peak Mbps: 1852.309 Rx PPS: 156578 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1386513600 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1843.872/1848.379/1852.309/2.514 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s