START sys/kern/sosplice/perf 2025-03-17T02:19:19Z ==== 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 2557453818 20459.631 100.00% Conn: 1 Mbps: 20459.631 Peak Mbps: 20459.631 Avg Mbps: 20459.631 999 2557486534 20480.373 100.00% Conn: 1 Mbps: 20480.373 Peak Mbps: 20480.373 Avg Mbps: 20480.373 2000 2590347692 20722.782 100.00% Conn: 1 Mbps: 20722.782 Peak Mbps: 20722.782 Avg Mbps: 20722.782 2000 2590380408 20723.043 100.00% Conn: 1 Mbps: 20723.043 Peak Mbps: 20723.043 Avg Mbps: 20723.043 3000 2587455046 20720.361 100.00% Conn: 1 Mbps: 20720.361 Peak Mbps: 20722.782 Avg Mbps: 20720.361 3000 2587537252 20721.019 100.00% Conn: 1 Mbps: 20721.019 Peak Mbps: 20723.043 Avg Mbps: 20721.019 4000 2576986706 20615.894 100.00% Conn: 1 Mbps: 20615.894 Peak Mbps: 20722.782 Avg Mbps: 20615.894 4000 2576806456 20614.452 100.00% Conn: 1 Mbps: 20614.452 Peak Mbps: 20723.043 Avg Mbps: 20614.452 5000 2583183280 20686.152 100.00% Conn: 1 Mbps: 20686.152 Peak Mbps: 20722.782 Avg Mbps: 20686.152 5000 2583395830 20667.167 100.00% Conn: 1 Mbps: 20667.167 Peak Mbps: 20723.043 Avg Mbps: 20667.167 --- 127.0.0.1 tcpbench statistics --- 15479526822 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 20459.631/20640.964/20722.782/98.540 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 15479526822 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 20480.373/20641.211/20723.043/89.805 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 2847651356 22781.211 100.00% Conn: 1 Mbps: 22781.211 Peak Mbps: 22781.211 Avg Mbps: 22781.211 999 2847585924 22803.491 100.00% Conn: 1 Mbps: 22803.491 Peak Mbps: 22803.491 Avg Mbps: 22803.491 2000 2876408264 23011.266 100.00% Conn: 1 Mbps: 23011.266 Peak Mbps: 23011.266 Avg Mbps: 23011.266 1999 2876408264 23011.266 100.00% Conn: 1 Mbps: 23011.266 Peak Mbps: 23011.266 Avg Mbps: 23011.266 2999 2883883738 23094.164 100.00% 3000 2883981886 23071.855 100.00% Conn: 1 Mbps: 23094.164 Peak Mbps: 23094.164 Avg Mbps: 23094.164 Conn: 1 Mbps: 23071.855 Peak Mbps: 23071.855 Avg Mbps: 23071.855 3999 2881953770 23055.630 100.00% Conn: 1 Mbps: 23055.630 Peak Mbps: 23094.164 Avg Mbps: 23055.630 4000 2882051918 23056.415 100.00% Conn: 1 Mbps: 23056.415 Peak Mbps: 23071.855 Avg Mbps: 23056.415 5000 2878335456 23026.684 100.00% Conn: 1 Mbps: 23026.684 Peak Mbps: 23094.164 Avg Mbps: 23026.684 5000 2878433592 23050.519 100.00% Conn: 1 Mbps: 23050.519 Peak Mbps: 23071.855 Avg Mbps: 23050.519 --- 127.0.0.1 tcpbench statistics --- 17240896642 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 22781.211/22994.253/23071.855/108.378 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 17240896642 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 22803.491/22998.247/23094.164/101.391 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: 5105.932 Peak Mbps: 5105.932 Tx PPS: 433588 Elapsed: 1000 Mbps: 3920.301 Peak Mbps: 3920.301 Rx PPS: 332906 Elapsed: 2000 Mbps: 5135.326 Peak Mbps: 5135.326 Tx PPS: 436084 Elapsed: 1999 Mbps: 3902.830 Peak Mbps: 3920.301 Rx PPS: 331422 Elapsed: 3000 Mbps: 5130.450 Peak Mbps: 5135.326 Tx PPS: 435670 Elapsed: 2999 Mbps: 3906.370 Peak Mbps: 3920.301 Rx PPS: 331723 Elapsed: 4000 Mbps: 5125.389 Peak Mbps: 5135.326 Tx PPS: 435240 Elapsed: 3999 Mbps: 3909.903 Peak Mbps: 3920.301 Rx PPS: 332023 Elapsed: 5000 Mbps: 5128.201 Peak Mbps: 5135.326 Tx PPS: 435479 Elapsed: 4999 Mbps: 3901.083 Peak Mbps: 3920.301 Rx PPS: 331274 --- 127.0.0.1 tcpbench statistics --- 3842847360 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 5105.932/5125.060/5135.326/10.102 Mbps Elapsed: 5999 Mbps: 3917.872 Peak Mbps: 3920.301 Rx PPS: 332699 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2935409408 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 3901.083/3909.726/3920.301/7.208 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: 5287.141 Peak Mbps: 5287.141 Tx PPS: 448976 Elapsed: 1000 Mbps: 3636.452 Peak Mbps: 3636.452 Rx PPS: 308802 Elapsed: 2000 Mbps: 5232.658 Peak Mbps: 5287.141 Tx PPS: 444349 Elapsed: 1999 Mbps: 3641.401 Peak Mbps: 3641.401 Rx PPS: 309222 Elapsed: 3000 Mbps: 5208.183 Peak Mbps: 5287.141 Tx PPS: 442271 Elapsed: 3000 Mbps: 3657.673 Peak Mbps: 3657.673 Rx PPS: 310604 Elapsed: 4000 Mbps: 5225.047 Peak Mbps: 5287.141 Tx PPS: 443703 Elapsed: 4000 Mbps: 3654.764 Peak Mbps: 3657.673 Rx PPS: 310357 Elapsed: 5000 Mbps: 5220.006 Peak Mbps: 5287.141 Tx PPS: 443275 Elapsed: 5000 Mbps: 3657.131 Peak Mbps: 3657.673 Rx PPS: 310558 --- 127.0.0.1 tcpbench statistics --- 3924135616 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 5208.183/5234.607/5287.141/27.446 Mbps Elapsed: 6000 Mbps: 3644.236 Peak Mbps: 3657.673 Rx PPS: 309463 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2737942080 bytes received over 6.005 seconds bandwidth min/avg/max/std-dev = 3636.452/3648.610/3657.673/8.282 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.54s