START sys/kern/sosplice/perf 2025-03-06T19:25:46Z ==== 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 1373268666 10997.146 100.00% Conn: 1 Mbps: 10997.146 Peak Mbps: 10997.146 Avg Mbps: 10997.146 1000 1373530810 10988.246 100.00% Conn: 1 Mbps: 10988.246 Peak Mbps: 10988.246 Avg Mbps: 10988.246 2000 1382875976 11074.082 100.00% Conn: 1 Mbps: 11074.082 Peak Mbps: 11074.082 Avg Mbps: 11074.082 1999 1383023822 11064.191 100.00% Conn: 1 Mbps: 11064.191 Peak Mbps: 11064.191 Avg Mbps: 11064.191 3000 1384585142 11076.681 100.00% Conn: 1 Mbps: 11076.681 Peak Mbps: 11076.681 Avg Mbps: 11076.681 3000 1384568576 11076.549 100.00% Conn: 1 Mbps: 11076.549 Peak Mbps: 11076.549 Avg Mbps: 11076.549 4000 1384097826 11072.783 100.00% Conn: 1 Mbps: 11072.783 Peak Mbps: 11076.681 Avg Mbps: 11072.783 4000 1384163258 11073.306 100.00% Conn: 1 Mbps: 11073.306 Peak Mbps: 11076.549 Avg Mbps: 11073.306 5000 1386877434 11095.019 100.00% Conn: 1 Mbps: 11095.019 Peak Mbps: 11095.019 Avg Mbps: 11095.019 5000 1386845030 11094.760 100.00% Conn: 1 Mbps: 11094.760 Peak Mbps: 11094.760 Avg Mbps: 11094.760 --- 127.0.0.1 tcpbench statistics --- 8293157222 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10988.246/11061.362/11095.019/37.432 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8293157222 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10997.146/11061.190/11094.760/33.527 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 1533042962 12276.620 100.00% Conn: 1 Mbps: 12276.620 Peak Mbps: 12276.620 Avg Mbps: 12276.620 1000 1533288332 12266.307 100.00% Conn: 1 Mbps: 12266.307 Peak Mbps: 12266.307 Avg Mbps: 12266.307 1999 1548935302 12391.482 100.00% Conn: 1 Mbps: 12391.482 Peak Mbps: 12391.482 Avg Mbps: 12391.482 2000 1548951660 12404.017 100.00% Conn: 1 Mbps: 12404.017 Peak Mbps: 12404.017 Avg Mbps: 12404.017 3000 1551033772 12408.270 100.00% Conn: 1 Mbps: 12408.270 Peak Mbps: 12408.270 Avg Mbps: 12408.270 3000 1551115562 12408.924 100.00% Conn: 1 Mbps: 12408.924 Peak Mbps: 12408.924 Avg Mbps: 12408.924 4000 1552921882 12423.375 100.00% Conn: 1 Mbps: 12423.375 Peak Mbps: 12423.375 Avg Mbps: 12423.375 4000 1553101820 12424.815 100.00% Conn: 1 Mbps: 12424.815 Peak Mbps: 12424.815 Avg Mbps: 12424.815 5000 1551549892 12412.399 100.00% Conn: 1 Mbps: 12412.399 Peak Mbps: 12423.375 Avg Mbps: 12412.399 5000 1551484448 12411.876 100.00% Conn: 1 Mbps: 12411.876 Peak Mbps: 12424.815 Avg Mbps: 12411.876 --- 127.0.0.1 tcpbench statistics --- 9288551734 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12266.307/12383.188/12424.815/58.844 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9288551734 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12276.620/12382.429/12423.375/53.889 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: 1901.871 Peak Mbps: 1901.871 Tx PPS: 161504 Elapsed: 999 Mbps: 1903.857 Peak Mbps: 1903.857 Rx PPS: 161672 Elapsed: 2000 Mbps: 1904.895 Peak Mbps: 1904.895 Tx PPS: 161760 Elapsed: 1999 Mbps: 1904.977 Peak Mbps: 1904.977 Rx PPS: 161767 Elapsed: 3000 Mbps: 1902.083 Peak Mbps: 1904.895 Tx PPS: 161522 Elapsed: 2999 Mbps: 1902.095 Peak Mbps: 1904.977 Rx PPS: 161523 Elapsed: 4000 Mbps: 1905.004 Peak Mbps: 1905.004 Tx PPS: 161770 Elapsed: 3999 Mbps: 1905.027 Peak Mbps: 1905.027 Rx PPS: 161772 Elapsed: 5000 Mbps: 1902.766 Peak Mbps: 1905.004 Tx PPS: 161580 Elapsed: 4999 Mbps: 1902.743 Peak Mbps: 1905.027 Rx PPS: 161578 --- 127.0.0.1 tcpbench statistics --- 1427043648 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1901.871/1903.324/1905.004/1.360 Mbps Elapsed: 6002 Mbps: 1897.664 Peak Mbps: 1905.027 Rx PPS: 161146 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1427043648 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1897.664/1902.727/1905.027/2.506 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: 1841.248 Peak Mbps: 1841.248 Tx PPS: 156356 Elapsed: 1000 Mbps: 1841.307 Peak Mbps: 1841.307 Rx PPS: 156361 Elapsed: 2000 Mbps: 1838.553 Peak Mbps: 1841.248 Tx PPS: 156127 Elapsed: 1999 Mbps: 1838.624 Peak Mbps: 1841.307 Rx PPS: 156133 Elapsed: 3000 Mbps: 1838.775 Peak Mbps: 1841.248 Tx PPS: 156146 Elapsed: 2999 Mbps: 1838.799 Peak Mbps: 1841.307 Rx PPS: 156148 Elapsed: 4000 Mbps: 1835.419 Peak Mbps: 1841.248 Tx PPS: 155861 Elapsed: 3999 Mbps: 1837.233 Peak Mbps: 1841.307 Rx PPS: 156015 Elapsed: 5000 Mbps: 1836.573 Peak Mbps: 1841.248 Tx PPS: 155959 Elapsed: 5000 Mbps: 1836.585 Peak Mbps: 1841.307 Rx PPS: 155960 --- 127.0.0.1 tcpbench statistics --- 1377911232 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1835.419/1838.114/1841.248/2.004 Mbps Elapsed: 6002 Mbps: 1830.757 Peak Mbps: 1841.307 Rx PPS: 155465 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1377911232 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1830.757/1837.217/1841.307/3.249 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s