START sys/kern/sosplice/perf 2025-01-15T16:37:53Z ==== 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 1901061714 15208.494 100.00% Conn: 1 Mbps: 15208.494 Peak Mbps: 15208.494 Avg Mbps: 15208.494 999 1900898134 15222.407 100.00% Conn: 1 Mbps: 15222.407 Peak Mbps: 15222.407 Avg Mbps: 15222.407 2000 1908668928 15284.636 100.00% Conn: 1 Mbps: 15284.636 Peak Mbps: 15284.636 Avg Mbps: 15284.636 2000 1908799780 15270.398 100.00% Conn: 1 Mbps: 15270.398 Peak Mbps: 15270.398 Avg Mbps: 15270.398 3000 1914231536 15313.852 100.00% Conn: 1 Mbps: 15313.852 Peak Mbps: 15313.852 Avg Mbps: 15313.852 3000 1914198820 15313.591 100.00% Conn: 1 Mbps: 15313.591 Peak Mbps: 15313.591 Avg Mbps: 15313.591 4000 1912219850 15297.759 100.00% Conn: 1 Mbps: 15297.759 Peak Mbps: 15313.852 Avg Mbps: 15297.759 4000 1912219850 15297.759 100.00% Conn: 1 Mbps: 15297.759 Peak Mbps: 15313.591 Avg Mbps: 15297.759 5000 1915802036 15326.416 100.00% Conn: 1 Mbps: 15326.416 Peak Mbps: 15326.416 Avg Mbps: 15326.416 5000 1915802048 15341.758 100.00% Conn: 1 Mbps: 15341.758 Peak Mbps: 15341.758 Avg Mbps: 15341.758 --- 127.0.0.1 tcpbench statistics --- 11462113062 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15208.494/15286.231/15326.416/41.367 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11462113062 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15222.407/15289.183/15341.758/40.609 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 1989315364 15914.523 100.00% Conn: 1 Mbps: 15914.523 Peak Mbps: 15914.523 Avg Mbps: 15914.523 1000 1989315352 15914.523 100.00% Conn: 1 Mbps: 15914.523 Peak Mbps: 15914.523 Avg Mbps: 15914.523 2000 2009762296 16078.098 100.00% Conn: 1 Mbps: 16078.098 Peak Mbps: 16078.098 Avg Mbps: 16078.098 2000 2009696876 16077.575 100.00% Conn: 1 Mbps: 16077.575 Peak Mbps: 16077.575 Avg Mbps: 16077.575 3000 2009879746 16079.038 100.00% Conn: 1 Mbps: 16079.038 Peak Mbps: 16079.038 Avg Mbps: 16079.038 3000 2009912474 16079.300 100.00% Conn: 1 Mbps: 16079.300 Peak Mbps: 16079.300 Avg Mbps: 16079.300 4000 2010989390 16087.915 100.00% Conn: 1 Mbps: 16087.915 Peak Mbps: 16087.915 Avg Mbps: 16087.915 4000 2010989378 16087.915 100.00% Conn: 1 Mbps: 16087.915 Peak Mbps: 16087.915 Avg Mbps: 16087.915 5000 2008258760 16066.070 100.00% Conn: 1 Mbps: 16066.070 Peak Mbps: 16087.915 Avg Mbps: 16066.070 5000 2008291476 16066.332 100.00% Conn: 1 Mbps: 16066.332 Peak Mbps: 16087.915 Avg Mbps: 16066.332 --- 127.0.0.1 tcpbench statistics --- 12041583830 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15914.523/16045.129/16087.915/65.672 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12041583830 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15914.523/16045.129/16087.915/65.664 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: 1010 Mbps: 2477.834 Peak Mbps: 2477.834 Rx PPS: 210413 Elapsed: 1011 Mbps: 3180.708 Peak Mbps: 3180.708 Tx PPS: 270100 Elapsed: 2010 Mbps: 2576.539 Peak Mbps: 2576.539 Rx PPS: 218795 Elapsed: 2010 Mbps: 3339.575 Peak Mbps: 3339.575 Tx PPS: 283591 Elapsed: 3010 Mbps: 2427.752 Peak Mbps: 2576.539 Rx PPS: 206161 Elapsed: 3010 Mbps: 3162.362 Peak Mbps: 3339.575 Tx PPS: 268543 Elapsed: 4010 Mbps: 2390.693 Peak Mbps: 2576.539 Rx PPS: 203014 Elapsed: 4010 Mbps: 3036.041 Peak Mbps: 3339.575 Tx PPS: 257816 Elapsed: 5010 Mbps: 2419.038 Peak Mbps: 2576.539 Rx PPS: 205421 Elapsed: 5010 Mbps: 3030.448 Peak Mbps: 3339.575 Tx PPS: 257341 --- 127.0.0.1 tcpbench statistics --- 2348762944 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3030.448/3149.827/3339.575/113.414 Mbps Elapsed: 6011 Mbps: 2313.190 Peak Mbps: 2576.539 Rx PPS: 196432 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1828695040 bytes received over 6.011 seconds bandwidth min/avg/max/std-dev = 2313.190/2434.174/2576.539/80.594 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: 3182.158 Peak Mbps: 3182.158 Tx PPS: 270224 Elapsed: 1000 Mbps: 2234.390 Peak Mbps: 2234.390 Rx PPS: 189741 Elapsed: 2000 Mbps: 3010.601 Peak Mbps: 3182.158 Tx PPS: 255655 Elapsed: 1999 Mbps: 2217.189 Peak Mbps: 2234.390 Rx PPS: 188280 Elapsed: 3047 Mbps: 2180.832 Peak Mbps: 2234.390 Rx PPS: 185192 Elapsed: 3047 Mbps: 3009.358 Peak Mbps: 3182.158 Tx PPS: 255550 Elapsed: 4047 Mbps: 2389.090 Peak Mbps: 2389.090 Rx PPS: 202877 Elapsed: 4047 Mbps: 3111.304 Peak Mbps: 3182.158 Tx PPS: 264207 Elapsed: 5047 Mbps: 3165.789 Peak Mbps: 3182.158 Tx PPS: 268834 Elapsed: 5047 Mbps: 2353.551 Peak Mbps: 2389.090 Rx PPS: 199860 --- 127.0.0.1 tcpbench statistics --- 2293243520 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3009.358/3095.842/3182.158/73.929 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1680920960 bytes received over 6.028 seconds bandwidth min/avg/max/std-dev = 2180.832/2275.010/2389.090/81.297 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s