START sys/kern/sosplice/perf 2025-03-05T02:23:18Z ==== 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 1785328296 14282.626 100.00% Conn: 1 Mbps: 14282.626 Peak Mbps: 14282.626 Avg Mbps: 14282.626 999 1785295684 14296.662 100.00% Conn: 1 Mbps: 14296.662 Peak Mbps: 14296.662 Avg Mbps: 14296.662 2000 1801573554 14427.015 100.00% Conn: 1 Mbps: 14427.015 Peak Mbps: 14427.015 Avg Mbps: 14427.015 2000 1801573670 14412.589 100.00% Conn: 1 Mbps: 14412.589 Peak Mbps: 14412.589 Avg Mbps: 14412.589 3000 1801131708 14409.054 100.00% Conn: 1 Mbps: 14409.054 Peak Mbps: 14427.015 Avg Mbps: 14409.054 3000 1801164204 14409.314 100.00% Conn: 1 Mbps: 14409.314 Peak Mbps: 14412.589 Avg Mbps: 14409.314 4000 1796929574 14375.437 100.00% Conn: 1 Mbps: 14375.437 Peak Mbps: 14427.015 Avg Mbps: 14375.437 4000 1796995006 14375.960 100.00% Conn: 1 Mbps: 14375.960 Peak Mbps: 14412.589 Avg Mbps: 14375.960 5000 1793054376 14344.435 100.00% Conn: 1 Mbps: 14344.435 Peak Mbps: 14427.015 Avg Mbps: 14344.435 5000 1793021660 14344.173 100.00% Conn: 1 Mbps: 14344.173 Peak Mbps: 14412.589 Avg Mbps: 14344.173 --- 127.0.0.1 tcpbench statistics --- 10775829682 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14282.626/14367.713/14427.015/51.122 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10775829682 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14296.662/14367.740/14412.589/43.393 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 1994396578 15955.173 100.00% Conn: 1 Mbps: 15955.173 Peak Mbps: 15955.173 Avg Mbps: 15955.173 999 1994298430 15970.358 100.00% Conn: 1 Mbps: 15970.358 Peak Mbps: 15970.358 Avg Mbps: 15970.358 2000 2008956262 16087.738 100.00% Conn: 1 Mbps: 16087.738 Peak Mbps: 16087.738 Avg Mbps: 16087.738 2000 2009087126 16072.697 100.00% Conn: 1 Mbps: 16072.697 Peak Mbps: 16072.697 Avg Mbps: 16072.697 3000 2005519610 16044.157 100.00% Conn: 1 Mbps: 16044.157 Peak Mbps: 16087.738 Avg Mbps: 16044.157 3000 2005486894 16043.895 100.00% Conn: 1 Mbps: 16043.895 Peak Mbps: 16072.697 Avg Mbps: 16043.895 4000 2003982798 16031.862 100.00% Conn: 1 Mbps: 16031.862 Peak Mbps: 16087.738 Avg Mbps: 16031.862 4000 2003982798 16031.862 100.00% Conn: 1 Mbps: 16031.862 Peak Mbps: 16072.697 Avg Mbps: 16031.862 5000 2008120416 16064.963 100.00% Conn: 1 Mbps: 16064.963 Peak Mbps: 16087.738 Avg Mbps: 16064.963 5000 2008120416 16064.963 100.00% Conn: 1 Mbps: 16064.963 Peak Mbps: 16072.697 Avg Mbps: 16064.963 --- 127.0.0.1 tcpbench statistics --- 12027199860 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15955.173/16036.779/16087.738/45.010 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12027199860 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15970.358/16036.755/16072.697/36.252 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: 3250.082 Peak Mbps: 3250.082 Tx PPS: 275992 Elapsed: 1000 Mbps: 2901.418 Peak Mbps: 2901.418 Rx PPS: 246384 Elapsed: 2000 Mbps: 3203.107 Peak Mbps: 3250.082 Tx PPS: 272003 Elapsed: 1999 Mbps: 2933.120 Peak Mbps: 2933.120 Rx PPS: 249076 Elapsed: 3000 Mbps: 3333.809 Peak Mbps: 3333.809 Tx PPS: 283102 Elapsed: 2999 Mbps: 2916.703 Peak Mbps: 2933.120 Rx PPS: 247682 Elapsed: 4000 Mbps: 3343.689 Peak Mbps: 3343.689 Tx PPS: 283941 Elapsed: 3999 Mbps: 3043.554 Peak Mbps: 3043.554 Rx PPS: 258454 Elapsed: 5000 Mbps: 3409.635 Peak Mbps: 3409.635 Tx PPS: 289541 Elapsed: 4999 Mbps: 2929.044 Peak Mbps: 3043.554 Rx PPS: 248730 --- 127.0.0.1 tcpbench statistics --- 2478181184 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3203.107/3308.064/3409.635/72.975 Mbps Elapsed: 5999 Mbps: 3106.862 Peak Mbps: 3106.862 Rx PPS: 263830 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2228572672 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 2901.418/2971.784/3106.862/76.053 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: 3321.079 Peak Mbps: 3321.079 Tx PPS: 282021 Elapsed: 999 Mbps: 2733.930 Peak Mbps: 2733.930 Rx PPS: 232161 Elapsed: 2000 Mbps: 3340.176 Peak Mbps: 3340.176 Tx PPS: 283642 Elapsed: 1999 Mbps: 2728.378 Peak Mbps: 2733.930 Rx PPS: 231689 Elapsed: 3000 Mbps: 3333.939 Peak Mbps: 3340.176 Tx PPS: 283113 Elapsed: 2999 Mbps: 2769.621 Peak Mbps: 2769.621 Rx PPS: 235192 Elapsed: 4000 Mbps: 3352.121 Peak Mbps: 3352.121 Tx PPS: 284657 Elapsed: 3999 Mbps: 2777.393 Peak Mbps: 2777.393 Rx PPS: 235852 Elapsed: 5000 Mbps: 3312.569 Peak Mbps: 3352.121 Tx PPS: 281298 Elapsed: 4999 Mbps: 2760.601 Peak Mbps: 2777.393 Rx PPS: 234426 --- 127.0.0.1 tcpbench statistics --- 2499429504 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3312.569/3331.977/3352.121/13.945 Mbps Elapsed: 5999 Mbps: 2753.029 Peak Mbps: 2777.393 Rx PPS: 233783 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2067660992 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 2728.378/2753.825/2777.393/17.771 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s