START sys/kern/sosplice/perf 2025-03-13T23:11:57Z ==== 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 1838322552 14706.580 100.00% Conn: 1 Mbps: 14706.580 Peak Mbps: 14706.580 Avg Mbps: 14706.580 999 1838224404 14720.516 100.00% Conn: 1 Mbps: 14720.516 Peak Mbps: 14720.516 Avg Mbps: 14720.516 2000 1849578932 14811.443 100.00% Conn: 1 Mbps: 14811.443 Peak Mbps: 14811.443 Avg Mbps: 14811.443 2000 1849595914 14796.767 100.00% Conn: 1 Mbps: 14796.767 Peak Mbps: 14796.767 Avg Mbps: 14796.767 3000 1855092046 14855.592 100.00% Conn: 1 Mbps: 14855.592 Peak Mbps: 14855.592 Avg Mbps: 14855.592 3000 1855107780 14840.862 100.00% Conn: 1 Mbps: 14840.862 Peak Mbps: 14840.862 Avg Mbps: 14840.862 4000 1852966010 14823.728 100.00% Conn: 1 Mbps: 14823.728 Peak Mbps: 14855.592 Avg Mbps: 14823.728 4000 1853047788 14824.382 100.00% Conn: 1 Mbps: 14824.382 Peak Mbps: 14840.862 Avg Mbps: 14824.382 5000 1856251796 14864.879 100.00% Conn: 1 Mbps: 14864.879 Peak Mbps: 14864.879 Avg Mbps: 14864.879 5000 1856333586 14850.669 100.00% Conn: 1 Mbps: 14850.669 Peak Mbps: 14850.669 Avg Mbps: 14850.669 --- 127.0.0.1 tcpbench statistics --- 11103147202 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14706.580/14812.445/14864.879/56.474 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11103147202 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14720.516/14806.639/14850.669/46.775 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 2012997896 16103.983 100.00% Conn: 1 Mbps: 16103.983 Peak Mbps: 16103.983 Avg Mbps: 16103.983 999 2012997896 16120.103 100.00% Conn: 1 Mbps: 16120.103 Peak Mbps: 16120.103 Avg Mbps: 16120.103 2000 2033005838 16280.327 100.00% Conn: 1 Mbps: 16280.327 Peak Mbps: 16280.327 Avg Mbps: 16280.327 1999 2033005838 16264.047 100.00% Conn: 1 Mbps: 16264.047 Peak Mbps: 16264.047 Avg Mbps: 16264.047 3000 2031628582 16253.029 100.00% Conn: 1 Mbps: 16253.029 Peak Mbps: 16280.327 Avg Mbps: 16253.029 3000 2031628582 16253.029 100.00% Conn: 1 Mbps: 16253.029 Peak Mbps: 16264.047 Avg Mbps: 16253.029 4000 2030058518 16240.468 100.00% Conn: 1 Mbps: 16240.468 Peak Mbps: 16280.327 Avg Mbps: 16240.468 4000 2030091234 16240.730 100.00% Conn: 1 Mbps: 16240.730 Peak Mbps: 16264.047 Avg Mbps: 16240.730 5000 2029535622 16236.285 100.00% Conn: 1 Mbps: 16236.285 Peak Mbps: 16280.327 Avg Mbps: 16236.285 5000 2029502906 16252.276 100.00% Conn: 1 Mbps: 16252.276 Peak Mbps: 16264.047 Avg Mbps: 16252.276 --- 127.0.0.1 tcpbench statistics --- 12168089996 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16103.983/16222.818/16280.327/61.375 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12168089996 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16120.103/16226.037/16264.047/53.478 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: 3313.531 Peak Mbps: 3313.531 Tx PPS: 281380 Elapsed: 1000 Mbps: 2952.679 Peak Mbps: 2952.679 Rx PPS: 250737 Elapsed: 2000 Mbps: 3257.425 Peak Mbps: 3313.531 Tx PPS: 276615 Elapsed: 2000 Mbps: 2987.709 Peak Mbps: 2987.709 Rx PPS: 253711 Elapsed: 3000 Mbps: 3371.139 Peak Mbps: 3371.139 Tx PPS: 286272 Elapsed: 3000 Mbps: 2911.357 Peak Mbps: 2987.709 Rx PPS: 247228 Elapsed: 4000 Mbps: 3396.198 Peak Mbps: 3396.198 Tx PPS: 288400 Elapsed: 4000 Mbps: 2894.918 Peak Mbps: 2987.709 Rx PPS: 245832 Elapsed: 5000 Mbps: 3396.151 Peak Mbps: 3396.198 Tx PPS: 288396 Elapsed: 5000 Mbps: 2931.470 Peak Mbps: 2987.709 Rx PPS: 248936 --- 127.0.0.1 tcpbench statistics --- 2516778496 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3257.425/3346.889/3396.198/53.968 Mbps Elapsed: 6000 Mbps: 2914.701 Peak Mbps: 2987.709 Rx PPS: 247512 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2204707136 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2894.918/2932.139/2987.709/30.637 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: 3382.856 Peak Mbps: 3382.856 Tx PPS: 287267 Elapsed: 1000 Mbps: 2698.282 Peak Mbps: 2698.282 Rx PPS: 229134 Elapsed: 2000 Mbps: 3350.042 Peak Mbps: 3382.856 Tx PPS: 284480 Elapsed: 2000 Mbps: 2734.107 Peak Mbps: 2734.107 Rx PPS: 232176 Elapsed: 3000 Mbps: 3433.034 Peak Mbps: 3433.034 Tx PPS: 291528 Elapsed: 3000 Mbps: 2686.600 Peak Mbps: 2734.107 Rx PPS: 228142 Elapsed: 4000 Mbps: 3410.224 Peak Mbps: 3433.034 Tx PPS: 289591 Elapsed: 4000 Mbps: 2674.212 Peak Mbps: 2734.107 Rx PPS: 227090 Elapsed: 5000 Mbps: 3422.824 Peak Mbps: 3433.034 Tx PPS: 290661 Elapsed: 5000 Mbps: 2686.129 Peak Mbps: 2734.107 Rx PPS: 228102 --- 127.0.0.1 tcpbench statistics --- 2549872000 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3350.042/3399.796/3433.034/30.021 Mbps Elapsed: 6000 Mbps: 2627.414 Peak Mbps: 2734.107 Rx PPS: 223116 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2019288128 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2627.414/2684.457/2734.107/31.682 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s