START sys/kern/sosplice/perf 2025-03-04T19:26:21Z ==== 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 1387315692 11098.526 100.00% Conn: 1 Mbps: 11098.526 Peak Mbps: 11098.526 Avg Mbps: 11098.526 999 1387217752 11108.851 100.00% Conn: 1 Mbps: 11108.851 Peak Mbps: 11108.851 Avg Mbps: 11108.851 2000 1401005270 11208.042 100.00% 1999 1400907146 11207.257 100.00% Conn: 1 Mbps: 11208.042 Peak Mbps: 11208.042 Avg Mbps: 11208.042 Conn: 1 Mbps: 11207.257 Peak Mbps: 11207.257 Avg Mbps: 11207.257 3000 1403067154 11224.537 100.00% Conn: 1 Mbps: 11224.537 Peak Mbps: 11224.537 Avg Mbps: 11224.537 2999 1403132366 11225.059 100.00% Conn: 1 Mbps: 11225.059 Peak Mbps: 11225.059 Avg Mbps: 11225.059 4000 1401136410 11209.091 100.00% Conn: 1 Mbps: 11209.091 Peak Mbps: 11224.537 Avg Mbps: 11209.091 4000 1401136502 11209.092 100.00% Conn: 1 Mbps: 11209.092 Peak Mbps: 11225.059 Avg Mbps: 11209.092 5000 1398736612 11189.893 100.00% Conn: 1 Mbps: 11189.893 Peak Mbps: 11224.537 Avg Mbps: 11189.893 5000 1398703792 11189.630 100.00% Conn: 1 Mbps: 11189.630 Peak Mbps: 11225.059 Avg Mbps: 11189.630 --- 127.0.0.1 tcpbench statistics --- 8392331724 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11098.526/11186.018/11224.537/45.102 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8392331724 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11108.851/11187.978/11225.059/41.125 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 1544015410 12352.123 100.00% 999 1543917262 12363.702 100.00% Conn: 1 Mbps: 12352.123 Peak Mbps: 12352.123 Avg Mbps: 12352.123 Conn: 1 Mbps: 12363.702 Peak Mbps: 12363.702 Avg Mbps: 12363.702 2000 1560761718 12486.094 100.00% Conn: 1 Mbps: 12486.094 Peak Mbps: 12486.094 Avg Mbps: 12486.094 2000 1560794434 12486.355 100.00% Conn: 1 Mbps: 12486.355 Peak Mbps: 12486.355 Avg Mbps: 12486.355 3000 1561000490 12500.504 100.00% Conn: 1 Mbps: 12500.504 Peak Mbps: 12500.504 Avg Mbps: 12500.504 3000 1561098638 12488.789 100.00% Conn: 1 Mbps: 12488.789 Peak Mbps: 12488.789 Avg Mbps: 12488.789 4000 1558971214 12471.770 100.00% Conn: 1 Mbps: 12471.770 Peak Mbps: 12500.504 Avg Mbps: 12471.770 4000 1559118436 12472.947 100.00% Conn: 1 Mbps: 12472.947 Peak Mbps: 12488.789 Avg Mbps: 12472.947 5000 1562298960 12498.392 100.00% Conn: 1 Mbps: 12498.392 Peak Mbps: 12500.504 Avg Mbps: 12498.392 5000 1562217170 12510.248 100.00% Conn: 1 Mbps: 12510.248 Peak Mbps: 12510.248 Avg Mbps: 12510.248 --- 127.0.0.1 tcpbench statistics --- 9345322062 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12352.123/12462.040/12510.248/56.247 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9345322062 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12363.702/12464.145/12500.504/51.255 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: 2008.903 Peak Mbps: 2008.903 Tx PPS: 170593 Elapsed: 1000 Mbps: 2009.021 Peak Mbps: 2009.021 Rx PPS: 170603 Elapsed: 2000 Mbps: 2014.509 Peak Mbps: 2014.509 Tx PPS: 171069 Elapsed: 1999 Mbps: 2014.592 Peak Mbps: 2014.592 Rx PPS: 171076 Elapsed: 3000 Mbps: 2012.024 Peak Mbps: 2014.509 Tx PPS: 170858 Elapsed: 2999 Mbps: 2012.000 Peak Mbps: 2014.592 Rx PPS: 170856 Elapsed: 4000 Mbps: 2014.650 Peak Mbps: 2014.650 Tx PPS: 171081 Elapsed: 3999 Mbps: 2014.662 Peak Mbps: 2014.662 Rx PPS: 171082 Elapsed: 5000 Mbps: 2014.485 Peak Mbps: 2014.650 Tx PPS: 171067 Elapsed: 4999 Mbps: 2014.485 Peak Mbps: 2014.662 Rx PPS: 171067 --- 127.0.0.1 tcpbench statistics --- 1509552192 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2008.903/2012.914/2014.650/2.232 Mbps Elapsed: 6002 Mbps: 2009.653 Peak Mbps: 2014.662 Rx PPS: 170656 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1509552192 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 2009.021/2012.402/2014.662/2.359 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: 1895.171 Peak Mbps: 1895.171 Tx PPS: 160935 Elapsed: 1000 Mbps: 1895.265 Peak Mbps: 1895.265 Rx PPS: 160943 Elapsed: 2000 Mbps: 1895.795 Peak Mbps: 1895.795 Tx PPS: 160987 Elapsed: 1999 Mbps: 1895.842 Peak Mbps: 1895.842 Rx PPS: 160991 Elapsed: 3000 Mbps: 1894.464 Peak Mbps: 1895.795 Tx PPS: 160875 Elapsed: 2999 Mbps: 1894.488 Peak Mbps: 1895.842 Rx PPS: 160877 Elapsed: 4000 Mbps: 1894.181 Peak Mbps: 1895.795 Tx PPS: 160851 Elapsed: 3999 Mbps: 1894.158 Peak Mbps: 1895.842 Rx PPS: 160849 Elapsed: 5000 Mbps: 1887.022 Peak Mbps: 1895.795 Tx PPS: 160243 Elapsed: 5000 Mbps: 1887.057 Peak Mbps: 1895.842 Rx PPS: 160246 --- 127.0.0.1 tcpbench statistics --- 1420222400 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1887.022/1893.326/1895.795/3.202 Mbps Elapsed: 6002 Mbps: 1893.080 Peak Mbps: 1895.842 Rx PPS: 160757 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1420222400 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1887.057/1893.315/1895.842/2.929 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s