START sys/kern/sosplice/perf 2025-04-02T01:16:16Z ==== 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 1826960830 14615.687 100.00% Conn: 1 Mbps: 14615.687 Peak Mbps: 14615.687 Avg Mbps: 14615.687 1000 1826928114 14615.425 100.00% Conn: 1 Mbps: 14615.425 Peak Mbps: 14615.425 Avg Mbps: 14615.425 2000 1839588214 14716.706 100.00% Conn: 1 Mbps: 14716.706 Peak Mbps: 14716.706 Avg Mbps: 14716.706 2000 1839555498 14716.444 100.00% Conn: 1 Mbps: 14716.444 Peak Mbps: 14716.444 Avg Mbps: 14716.444 3000 1841127342 14743.762 100.00% Conn: 1 Mbps: 14743.762 Peak Mbps: 14743.762 Avg Mbps: 14743.762 3000 1841192750 14729.542 100.00% Conn: 1 Mbps: 14729.542 Peak Mbps: 14729.542 Avg Mbps: 14729.542 4000 1841651290 14733.210 100.00% Conn: 1 Mbps: 14733.210 Peak Mbps: 14743.762 Avg Mbps: 14733.210 4000 1841749438 14733.996 100.00% Conn: 1 Mbps: 14733.996 Peak Mbps: 14733.996 Avg Mbps: 14733.996 5000 1843056086 14759.208 100.00% Conn: 1 Mbps: 14759.208 Peak Mbps: 14759.208 Avg Mbps: 14759.208 5000 1843023486 14744.188 100.00% Conn: 1 Mbps: 14744.188 Peak Mbps: 14744.188 Avg Mbps: 14744.188 --- 127.0.0.1 tcpbench statistics --- 11028637800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14615.687/14713.715/14759.208/50.933 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11028637800 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14615.425/14707.919/14744.188/47.097 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 2006384740 16067.145 100.00% Conn: 1 Mbps: 16067.145 Peak Mbps: 16067.145 Avg Mbps: 16067.145 1000 2006630110 16053.041 100.00% Conn: 1 Mbps: 16053.041 Peak Mbps: 16053.041 Avg Mbps: 16053.041 2000 2021781290 16174.250 100.00% 2000 2021699500 16189.786 100.00% Conn: 1 Mbps: 16174.250 Peak Mbps: 16174.250 Avg Mbps: 16174.250 Conn: 1 Mbps: 16189.786 Peak Mbps: 16189.786 Avg Mbps: 16189.786 3000 2022436994 16179.496 100.00% Conn: 1 Mbps: 16179.496 Peak Mbps: 16179.496 Avg Mbps: 16179.496 3000 2022469710 16179.758 100.00% Conn: 1 Mbps: 16179.758 Peak Mbps: 16189.786 Avg Mbps: 16179.758 4000 2022958866 16183.671 100.00% Conn: 1 Mbps: 16183.671 Peak Mbps: 16183.671 Avg Mbps: 16183.671 4000 2023106088 16184.849 100.00% Conn: 1 Mbps: 16184.849 Peak Mbps: 16189.786 Avg Mbps: 16184.849 5000 2018964622 16151.717 100.00% Conn: 1 Mbps: 16151.717 Peak Mbps: 16183.671 Avg Mbps: 16151.717 5000 2019062770 16168.671 100.00% Conn: 1 Mbps: 16168.671 Peak Mbps: 16189.786 Avg Mbps: 16168.671 --- 127.0.0.1 tcpbench statistics --- 12116970956 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16053.041/16155.221/16189.786/51.568 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12116970956 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16067.145/16151.256/16183.671/43.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: 3399.225 Peak Mbps: 3399.225 Tx PPS: 288657 Elapsed: 1000 Mbps: 3085.712 Peak Mbps: 3085.712 Rx PPS: 262034 Elapsed: 2000 Mbps: 3269.119 Peak Mbps: 3399.225 Tx PPS: 277608 Elapsed: 1999 Mbps: 3275.048 Peak Mbps: 3275.048 Rx PPS: 278112 Elapsed: 3000 Mbps: 3296.950 Peak Mbps: 3399.225 Tx PPS: 279972 Elapsed: 2999 Mbps: 3074.619 Peak Mbps: 3275.048 Rx PPS: 261092 Elapsed: 4000 Mbps: 3300.118 Peak Mbps: 3399.225 Tx PPS: 280241 Elapsed: 4000 Mbps: 2915.102 Peak Mbps: 3275.048 Rx PPS: 247546 Elapsed: 5000 Mbps: 3321.833 Peak Mbps: 3399.225 Tx PPS: 282085 Elapsed: 4999 Mbps: 3003.139 Peak Mbps: 3275.048 Rx PPS: 255022 --- 127.0.0.1 tcpbench statistics --- 2496121920 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3269.119/3317.449/3399.225/44.188 Mbps Elapsed: 5999 Mbps: 3020.273 Peak Mbps: 3275.048 Rx PPS: 256477 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2301971008 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2915.102/3062.316/3275.048/110.223 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: 3399.142 Peak Mbps: 3399.142 Tx PPS: 288650 Elapsed: 1000 Mbps: 2765.134 Peak Mbps: 2765.134 Rx PPS: 234811 Elapsed: 2000 Mbps: 3279.209 Peak Mbps: 3399.142 Tx PPS: 278465 Elapsed: 1999 Mbps: 2792.303 Peak Mbps: 2792.303 Rx PPS: 237118 Elapsed: 3000 Mbps: 3290.191 Peak Mbps: 3399.142 Tx PPS: 279398 Elapsed: 3000 Mbps: 2758.705 Peak Mbps: 2792.303 Rx PPS: 234265 Elapsed: 4000 Mbps: 3382.314 Peak Mbps: 3399.142 Tx PPS: 287221 Elapsed: 4000 Mbps: 2732.421 Peak Mbps: 2792.303 Rx PPS: 232033 Elapsed: 5000 Mbps: 3291.498 Peak Mbps: 3399.142 Tx PPS: 279509 Elapsed: 5000 Mbps: 2810.743 Peak Mbps: 2810.743 Rx PPS: 238684 --- 127.0.0.1 tcpbench statistics --- 2493345728 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3279.209/3328.471/3399.142/51.289 Mbps Elapsed: 6000 Mbps: 2817.314 Peak Mbps: 2817.314 Rx PPS: 239242 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2090532928 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2732.421/2779.437/2817.314/30.070 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s