START sys/kern/sosplice/perf 2025-03-08T02:24:41Z ==== 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 1812680252 14501.442 100.00% Conn: 1 Mbps: 14501.442 Peak Mbps: 14501.442 Avg Mbps: 14501.442 999 1812500418 14514.518 100.00% Conn: 1 Mbps: 14514.518 Peak Mbps: 14514.518 Avg Mbps: 14514.518 2000 1827568372 14635.182 100.00% Conn: 1 Mbps: 14635.182 Peak Mbps: 14635.182 Avg Mbps: 14635.182 1999 1827666416 14635.967 100.00% Conn: 1 Mbps: 14635.967 Peak Mbps: 14635.967 Avg Mbps: 14635.967 3000 1826683732 14613.470 100.00% Conn: 1 Mbps: 14613.470 Peak Mbps: 14635.182 Avg Mbps: 14613.470 2999 1826634658 14627.705 100.00% Conn: 1 Mbps: 14627.705 Peak Mbps: 14635.967 Avg Mbps: 14627.705 3999 1823526646 14588.213 100.00% Conn: 1 Mbps: 14588.213 Peak Mbps: 14635.967 Avg Mbps: 14588.213 4000 1823591974 14588.736 100.00% Conn: 1 Mbps: 14588.736 Peak Mbps: 14635.182 Avg Mbps: 14588.736 5000 1823757294 14590.058 100.00% Conn: 1 Mbps: 14590.058 Peak Mbps: 14635.182 Avg Mbps: 14590.058 5000 1823822622 14590.581 100.00% Conn: 1 Mbps: 14590.581 Peak Mbps: 14635.967 Avg Mbps: 14590.581 --- 127.0.0.1 tcpbench statistics --- 10938970220 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14501.442/14585.778/14635.182/45.491 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10938970220 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14514.518/14591.397/14635.967/42.956 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 999 2005105672 16056.902 100.00% 1000 2005286026 16042.288 100.00% Conn: 1 Mbps: 16056.902 Peak Mbps: 16056.902 Avg Mbps: 16056.902 Conn: 1 Mbps: 16042.288 Peak Mbps: 16042.288 Avg Mbps: 16042.288 2000 2021481214 16188.038 100.00% Conn: 1 Mbps: 16188.038 Peak Mbps: 16188.038 Avg Mbps: 16188.038 1999 2021661568 16173.293 100.00% Conn: 1 Mbps: 16173.293 Peak Mbps: 16173.293 Avg Mbps: 16173.293 3000 2023886784 16191.094 100.00% Conn: 1 Mbps: 16191.094 Peak Mbps: 16191.094 Avg Mbps: 16191.094 2999 2023886784 16207.302 100.00% Conn: 1 Mbps: 16207.302 Peak Mbps: 16207.302 Avg Mbps: 16207.302 4000 2021499300 16171.994 100.00% Conn: 1 Mbps: 16171.994 Peak Mbps: 16191.094 Avg Mbps: 16171.994 4000 2021401152 16171.209 100.00% Conn: 1 Mbps: 16171.209 Peak Mbps: 16207.302 Avg Mbps: 16171.209 5000 2023068840 16184.551 100.00% Conn: 1 Mbps: 16184.551 Peak Mbps: 16191.094 Avg Mbps: 16184.551 5000 2023166988 16185.336 100.00% Conn: 1 Mbps: 16185.336 Peak Mbps: 16207.302 Avg Mbps: 16185.336 --- 127.0.0.1 tcpbench statistics --- 12113923954 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16042.288/16155.593/16191.094/57.024 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12113923954 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16056.902/16158.808/16207.302/52.543 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: 3348.824 Peak Mbps: 3348.824 Tx PPS: 284377 Elapsed: 1000 Mbps: 2896.837 Peak Mbps: 2896.837 Rx PPS: 245995 Elapsed: 2000 Mbps: 3338.207 Peak Mbps: 3348.824 Tx PPS: 283475 Elapsed: 2000 Mbps: 2892.652 Peak Mbps: 2896.837 Rx PPS: 245639 Elapsed: 3000 Mbps: 3248.527 Peak Mbps: 3348.824 Tx PPS: 275860 Elapsed: 2999 Mbps: 2874.393 Peak Mbps: 2896.837 Rx PPS: 244089 Elapsed: 4000 Mbps: 3338.802 Peak Mbps: 3348.824 Tx PPS: 283526 Elapsed: 3999 Mbps: 2913.488 Peak Mbps: 2913.488 Rx PPS: 247409 Elapsed: 5000 Mbps: 3391.582 Peak Mbps: 3391.582 Tx PPS: 288008 Elapsed: 5000 Mbps: 2934.391 Peak Mbps: 2934.391 Rx PPS: 249184 Elapsed: 6000 Mbps: 2886.898 Peak Mbps: 2934.391 Rx PPS: 245151 --- 127.0.0.1 tcpbench statistics --- 2513996416 bytes sent over 6.009 seconds bandwidth min/avg/max/std-dev = 3248.527/3333.188/3391.582/46.644 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2178598272 bytes received over 6.012 seconds bandwidth min/avg/max/std-dev = 2874.393/2899.777/2934.391/19.390 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: 3451.463 Peak Mbps: 3451.463 Tx PPS: 293093 Elapsed: 1000 Mbps: 2819.339 Peak Mbps: 2819.339 Rx PPS: 239414 Elapsed: 2000 Mbps: 3345.174 Peak Mbps: 3451.463 Tx PPS: 284067 Elapsed: 2000 Mbps: 2791.843 Peak Mbps: 2819.339 Rx PPS: 237079 Elapsed: 3000 Mbps: 3365.472 Peak Mbps: 3451.463 Tx PPS: 285790 Elapsed: 3000 Mbps: 2762.037 Peak Mbps: 2819.339 Rx PPS: 234548 Elapsed: 4000 Mbps: 2749.549 Peak Mbps: 2819.339 Rx PPS: 233487 Elapsed: 4008 Mbps: 3449.375 Peak Mbps: 3451.463 Tx PPS: 292915 Elapsed: 5000 Mbps: 2738.697 Peak Mbps: 2819.339 Rx PPS: 232566 Elapsed: 5008 Mbps: 3418.726 Peak Mbps: 3451.463 Tx PPS: 290313 --- 127.0.0.1 tcpbench statistics --- 2554682496 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3345.174/3406.042/3451.463/43.480 Mbps Elapsed: 6000 Mbps: 2788.192 Peak Mbps: 2819.339 Rx PPS: 236769 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2086496704 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2738.697/2774.943/2819.339/27.560 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.63s