START sys/kern/sosplice/perf 2025-03-05T19:21:24Z ==== 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 1344197236 10753.578 100.00% Conn: 1 Mbps: 10753.578 Peak Mbps: 10753.578 Avg Mbps: 10753.578 1000 1344164832 10753.319 100.00% Conn: 1 Mbps: 10753.319 Peak Mbps: 10753.319 Avg Mbps: 10753.319 2000 1356098490 10859.648 100.00% Conn: 1 Mbps: 10859.648 Peak Mbps: 10859.648 Avg Mbps: 10859.648 2000 1356114952 10848.920 100.00% Conn: 1 Mbps: 10848.920 Peak Mbps: 10848.920 Avg Mbps: 10848.920 3000 1357192612 10857.541 100.00% Conn: 1 Mbps: 10857.541 Peak Mbps: 10859.648 Avg Mbps: 10857.541 3000 1357209110 10857.673 100.00% Conn: 1 Mbps: 10857.673 Peak Mbps: 10857.673 Avg Mbps: 10857.673 4000 1357191320 10857.531 100.00% Conn: 1 Mbps: 10857.531 Peak Mbps: 10859.648 Avg Mbps: 10857.531 4000 1357223480 10857.788 100.00% Conn: 1 Mbps: 10857.788 Peak Mbps: 10857.788 Avg Mbps: 10857.788 5000 1356482646 10851.861 100.00% Conn: 1 Mbps: 10851.861 Peak Mbps: 10859.648 Avg Mbps: 10851.861 5000 1356499004 10851.992 100.00% Conn: 1 Mbps: 10851.992 Peak Mbps: 10857.788 Avg Mbps: 10851.992 --- 127.0.0.1 tcpbench statistics --- 8127700436 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10753.578/10836.032/10859.648/41.308 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8127700436 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10753.319/10833.938/10857.788/40.453 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 1484418302 11887.234 100.00% Conn: 1 Mbps: 11887.234 Peak Mbps: 11887.234 Avg Mbps: 11887.234 1000 1484598240 11876.786 100.00% Conn: 1 Mbps: 11876.786 Peak Mbps: 11876.786 Avg Mbps: 11876.786 2000 1503549386 12040.436 100.00% Conn: 1 Mbps: 12040.436 Peak Mbps: 12040.436 Avg Mbps: 12040.436 2000 1503729324 12029.835 100.00% Conn: 1 Mbps: 12029.835 Peak Mbps: 12029.835 Avg Mbps: 12029.835 3000 1505710670 12045.685 100.00% Conn: 1 Mbps: 12045.685 Peak Mbps: 12045.685 Avg Mbps: 12045.685 3000 1505612522 12044.900 100.00% Conn: 1 Mbps: 12044.900 Peak Mbps: 12044.900 Avg Mbps: 12044.900 4000 1506992952 12055.944 100.00% Conn: 1 Mbps: 12055.944 Peak Mbps: 12055.944 Avg Mbps: 12055.944 4000 1507025656 12056.205 100.00% Conn: 1 Mbps: 12056.205 Peak Mbps: 12056.205 Avg Mbps: 12056.205 5000 1506159306 12049.274 100.00% Conn: 1 Mbps: 12049.274 Peak Mbps: 12055.944 Avg Mbps: 12049.274 5000 1506126602 12049.013 100.00% Conn: 1 Mbps: 12049.013 Peak Mbps: 12056.205 Avg Mbps: 12049.013 --- 127.0.0.1 tcpbench statistics --- 9010190128 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11876.786/12013.625/12055.944/68.605 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9010190128 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11887.234/12013.437/12056.205/63.688 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: 1919.288 Peak Mbps: 1919.288 Tx PPS: 162983 Elapsed: 1000 Mbps: 1919.382 Peak Mbps: 1919.382 Rx PPS: 162991 Elapsed: 2000 Mbps: 1927.433 Peak Mbps: 1927.433 Tx PPS: 163674 Elapsed: 2000 Mbps: 1927.539 Peak Mbps: 1927.539 Rx PPS: 163683 Elapsed: 3000 Mbps: 1926.813 Peak Mbps: 1927.433 Tx PPS: 163622 Elapsed: 3000 Mbps: 1926.801 Peak Mbps: 1927.539 Rx PPS: 163621 Elapsed: 4000 Mbps: 1928.567 Peak Mbps: 1928.567 Tx PPS: 163771 Elapsed: 4000 Mbps: 1928.591 Peak Mbps: 1928.591 Rx PPS: 163773 Elapsed: 5000 Mbps: 1927.555 Peak Mbps: 1928.567 Tx PPS: 163685 Elapsed: 5000 Mbps: 1927.566 Peak Mbps: 1928.591 Rx PPS: 163686 --- 127.0.0.1 tcpbench statistics --- 1444476544 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1919.288/1925.931/1928.567/3.369 Mbps Elapsed: 6002 Mbps: 1924.013 Peak Mbps: 1928.591 Rx PPS: 163384 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1444476544 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1919.382/1925.649/1928.591/3.141 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: 1846.418 Peak Mbps: 1846.418 Tx PPS: 156795 Elapsed: 999 Mbps: 1848.325 Peak Mbps: 1848.325 Rx PPS: 156956 Elapsed: 2000 Mbps: 1846.722 Peak Mbps: 1846.722 Tx PPS: 156820 Elapsed: 1999 Mbps: 1846.793 Peak Mbps: 1848.325 Rx PPS: 156826 Elapsed: 3000 Mbps: 1846.547 Peak Mbps: 1846.722 Tx PPS: 156806 Elapsed: 2999 Mbps: 1846.536 Peak Mbps: 1848.325 Rx PPS: 156805 Elapsed: 4000 Mbps: 1844.781 Peak Mbps: 1846.722 Tx PPS: 156656 Elapsed: 3999 Mbps: 1844.769 Peak Mbps: 1848.325 Rx PPS: 156655 Elapsed: 5000 Mbps: 1846.948 Peak Mbps: 1846.948 Tx PPS: 156840 Elapsed: 5000 Mbps: 1846.971 Peak Mbps: 1848.325 Rx PPS: 156842 --- 127.0.0.1 tcpbench statistics --- 1384388032 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1844.781/1846.283/1846.948/0.772 Mbps Elapsed: 6002 Mbps: 1841.722 Peak Mbps: 1848.325 Rx PPS: 156396 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1384388032 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1841.722/1845.853/1848.325/2.119 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s