START sys/kern/sosplice/perf 2025-03-28T19:23:30Z ==== 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 1361681556 10893.452 100.00% Conn: 1 Mbps: 10893.452 Peak Mbps: 10893.452 Avg Mbps: 10893.452 1000 1361648852 10893.191 100.00% Conn: 1 Mbps: 10893.191 Peak Mbps: 10893.191 Avg Mbps: 10893.191 2000 1372554510 10980.436 100.00% Conn: 1 Mbps: 10980.436 Peak Mbps: 10980.436 Avg Mbps: 10980.436 2000 1372456906 10990.646 100.00% Conn: 1 Mbps: 10990.646 Peak Mbps: 10990.646 Avg Mbps: 10990.646 3000 1378098408 11024.787 100.00% Conn: 1 Mbps: 11024.787 Peak Mbps: 11024.787 Avg Mbps: 11024.787 3000 1378196312 11025.570 100.00% Conn: 1 Mbps: 11025.570 Peak Mbps: 11025.570 Avg Mbps: 11025.570 4000 1378933074 11042.507 100.00% Conn: 1 Mbps: 11042.507 Peak Mbps: 11042.507 Avg Mbps: 11042.507 4000 1379113324 11032.907 100.00% Conn: 1 Mbps: 11032.907 Peak Mbps: 11032.907 Avg Mbps: 11032.907 5000 1378133916 11036.107 100.00% Conn: 1 Mbps: 11036.107 Peak Mbps: 11036.107 Avg Mbps: 11036.107 5000 1378346570 11026.773 100.00% Conn: 1 Mbps: 11026.773 Peak Mbps: 11042.507 Avg Mbps: 11026.773 --- 127.0.0.1 tcpbench statistics --- 8249360076 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10893.452/10993.538/11036.107/53.902 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8249360076 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10893.191/10995.737/11042.507/54.004 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 1522118718 12189.139 100.00% Conn: 1 Mbps: 12189.139 Peak Mbps: 12189.139 Avg Mbps: 12189.139 1000 1522380446 12179.044 100.00% Conn: 1 Mbps: 12179.044 Peak Mbps: 12179.044 Avg Mbps: 12179.044 2000 1539609808 12329.208 100.00% Conn: 1 Mbps: 12329.208 Peak Mbps: 12329.208 Avg Mbps: 12329.208 1999 1539806092 12318.449 100.00% Conn: 1 Mbps: 12318.449 Peak Mbps: 12318.449 Avg Mbps: 12318.449 3000 1546446418 12371.571 100.00% Conn: 1 Mbps: 12371.571 Peak Mbps: 12371.571 Avg Mbps: 12371.571 3000 1546609986 12372.880 100.00% Conn: 1 Mbps: 12372.880 Peak Mbps: 12372.880 Avg Mbps: 12372.880 4000 1543433228 12347.466 100.00% Conn: 1 Mbps: 12347.466 Peak Mbps: 12371.571 Avg Mbps: 12347.466 4000 1543367796 12346.942 100.00% Conn: 1 Mbps: 12346.942 Peak Mbps: 12372.880 Avg Mbps: 12346.942 5000 1545053698 12360.430 100.00% Conn: 1 Mbps: 12360.430 Peak Mbps: 12371.571 Avg Mbps: 12360.430 5000 1545086414 12360.691 100.00% Conn: 1 Mbps: 12360.691 Peak Mbps: 12372.880 Avg Mbps: 12360.691 --- 127.0.0.1 tcpbench statistics --- 9239160342 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12179.044/12317.753/12372.880/70.861 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9239160342 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12189.139/12317.411/12371.571/66.546 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: 1996.515 Peak Mbps: 1996.515 Tx PPS: 169541 Elapsed: 1000 Mbps: 1996.633 Peak Mbps: 1996.633 Rx PPS: 169551 Elapsed: 2000 Mbps: 2003.193 Peak Mbps: 2003.193 Tx PPS: 170108 Elapsed: 2000 Mbps: 2003.287 Peak Mbps: 2003.287 Rx PPS: 170116 Elapsed: 3000 Mbps: 1998.493 Peak Mbps: 2003.193 Tx PPS: 169709 Elapsed: 3000 Mbps: 1998.517 Peak Mbps: 2003.287 Rx PPS: 169711 Elapsed: 4000 Mbps: 2000.636 Peak Mbps: 2003.193 Tx PPS: 169891 Elapsed: 4000 Mbps: 2000.601 Peak Mbps: 2003.287 Rx PPS: 169888 Elapsed: 5000 Mbps: 1999.412 Peak Mbps: 2003.193 Tx PPS: 169787 Elapsed: 5000 Mbps: 1999.412 Peak Mbps: 2003.287 Rx PPS: 169787 --- 127.0.0.1 tcpbench statistics --- 1499915008 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1996.515/1999.650/2003.193/2.225 Mbps Elapsed: 6002 Mbps: 1998.876 Peak Mbps: 2003.287 Rx PPS: 169741 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1499915008 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1996.633/1999.554/2003.287/2.046 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: 1889.883 Peak Mbps: 1889.883 Tx PPS: 160486 Elapsed: 999 Mbps: 1891.846 Peak Mbps: 1891.846 Rx PPS: 160652 Elapsed: 2000 Mbps: 1892.718 Peak Mbps: 1892.718 Tx PPS: 160726 Elapsed: 1999 Mbps: 1892.765 Peak Mbps: 1892.765 Rx PPS: 160730 Elapsed: 3000 Mbps: 1893.298 Peak Mbps: 1893.298 Tx PPS: 160776 Elapsed: 2999 Mbps: 1893.298 Peak Mbps: 1893.298 Rx PPS: 160776 Elapsed: 4000 Mbps: 1889.966 Peak Mbps: 1893.298 Tx PPS: 160493 Elapsed: 3999 Mbps: 1889.977 Peak Mbps: 1893.298 Rx PPS: 160494 Elapsed: 5000 Mbps: 1892.698 Peak Mbps: 1893.298 Tx PPS: 160725 Elapsed: 4999 Mbps: 1892.686 Peak Mbps: 1893.298 Rx PPS: 160724 --- 127.0.0.1 tcpbench statistics --- 1418528128 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1889.883/1891.712/1893.298/1.476 Mbps Elapsed: 6002 Mbps: 1887.662 Peak Mbps: 1893.298 Rx PPS: 160297 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1418528128 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1887.662/1891.372/1893.298/1.971 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s