START sys/kern/sosplice/perf 2025-03-28T02:20:47Z ==== 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 1827664292 14621.314 100.00% Conn: 1 Mbps: 14621.314 Peak Mbps: 14621.314 Avg Mbps: 14621.314 999 1827664396 14635.951 100.00% Conn: 1 Mbps: 14635.951 Peak Mbps: 14635.951 Avg Mbps: 14635.951 2000 1834470560 14675.764 100.00% Conn: 1 Mbps: 14675.764 Peak Mbps: 14675.764 Avg Mbps: 14675.764 1999 1834405012 14689.930 100.00% Conn: 1 Mbps: 14689.930 Peak Mbps: 14689.930 Avg Mbps: 14689.930 3000 1836073848 14688.591 100.00% Conn: 1 Mbps: 14688.591 Peak Mbps: 14688.591 Avg Mbps: 14688.591 2999 1836041144 14688.329 100.00% Conn: 1 Mbps: 14688.329 Peak Mbps: 14689.930 Avg Mbps: 14688.329 4000 1838723376 14709.787 100.00% Conn: 1 Mbps: 14709.787 Peak Mbps: 14709.787 Avg Mbps: 14709.787 4000 1838788808 14710.310 100.00% Conn: 1 Mbps: 14710.310 Peak Mbps: 14710.310 Avg Mbps: 14710.310 5000 1836498828 14691.991 100.00% Conn: 1 Mbps: 14691.991 Peak Mbps: 14709.787 Avg Mbps: 14691.991 5000 1836498840 14691.991 100.00% Conn: 1 Mbps: 14691.991 Peak Mbps: 14710.310 Avg Mbps: 14691.991 --- 127.0.0.1 tcpbench statistics --- 11013053074 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14621.314/14677.489/14709.787/30.117 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11013053074 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14635.951/14683.302/14710.310/24.965 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 2011568370 16092.547 100.00% Conn: 1 Mbps: 16092.547 Peak Mbps: 16092.547 Avg Mbps: 16092.547 999 2011470222 16107.870 100.00% Conn: 1 Mbps: 16107.870 Peak Mbps: 16107.870 Avg Mbps: 16107.870 2000 2020683840 16181.652 100.00% Conn: 1 Mbps: 16181.652 Peak Mbps: 16181.652 Avg Mbps: 16181.652 1999 2020814704 16166.518 100.00% Conn: 1 Mbps: 16166.518 Peak Mbps: 16166.518 Avg Mbps: 16166.518 3000 2021613498 16172.908 100.00% Conn: 1 Mbps: 16172.908 Peak Mbps: 16181.652 Avg Mbps: 16172.908 3000 2021613498 16172.908 100.00% Conn: 1 Mbps: 16172.908 Peak Mbps: 16172.908 Avg Mbps: 16172.908 4000 2018069428 16144.555 100.00% Conn: 1 Mbps: 16144.555 Peak Mbps: 16181.652 Avg Mbps: 16144.555 4000 2018069428 16160.716 100.00% Conn: 1 Mbps: 16160.716 Peak Mbps: 16172.908 Avg Mbps: 16160.716 5000 2023316650 16202.736 100.00% Conn: 1 Mbps: 16202.736 Peak Mbps: 16202.736 Avg Mbps: 16202.736 5000 2023283922 16186.271 100.00% Conn: 1 Mbps: 16186.271 Peak Mbps: 16186.271 Avg Mbps: 16186.271 --- 127.0.0.1 tcpbench statistics --- 12118798800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16092.547/16158.880/16202.736/38.063 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12118798800 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16107.870/16158.857/16186.271/26.873 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: 3445.705 Peak Mbps: 3445.705 Tx PPS: 292604 Elapsed: 1000 Mbps: 2975.536 Peak Mbps: 2975.536 Rx PPS: 252678 Elapsed: 2000 Mbps: 3294.192 Peak Mbps: 3445.705 Tx PPS: 279737 Elapsed: 1999 Mbps: 3132.322 Peak Mbps: 3132.322 Rx PPS: 265991 Elapsed: 3000 Mbps: 3401.474 Peak Mbps: 3445.705 Tx PPS: 288848 Elapsed: 3000 Mbps: 3131.062 Peak Mbps: 3132.322 Rx PPS: 265885 Elapsed: 4000 Mbps: 3364.686 Peak Mbps: 3445.705 Tx PPS: 285724 Elapsed: 4000 Mbps: 3068.637 Peak Mbps: 3132.322 Rx PPS: 260584 Elapsed: 5000 Mbps: 3336.506 Peak Mbps: 3445.705 Tx PPS: 283331 Elapsed: 5000 Mbps: 3060.029 Peak Mbps: 3132.322 Rx PPS: 259853 --- 127.0.0.1 tcpbench statistics --- 2534507264 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3294.192/3368.512/3445.705/52.169 Mbps Elapsed: 6000 Mbps: 3033.776 Peak Mbps: 3132.322 Rx PPS: 257623 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2300490176 bytes received over 6.004 seconds bandwidth min/avg/max/std-dev = 2975.536/3066.894/3132.322/54.607 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: 3476.617 Peak Mbps: 3476.617 Tx PPS: 295229 Elapsed: 1000 Mbps: 2807.952 Peak Mbps: 2807.952 Rx PPS: 238447 Elapsed: 2000 Mbps: 3332.042 Peak Mbps: 3476.617 Tx PPS: 282951 Elapsed: 1999 Mbps: 2833.030 Peak Mbps: 2833.030 Rx PPS: 240576 Elapsed: 3000 Mbps: 3488.946 Peak Mbps: 3488.946 Tx PPS: 296276 Elapsed: 3000 Mbps: 2755.890 Peak Mbps: 2833.030 Rx PPS: 234026 Elapsed: 4000 Mbps: 3436.837 Peak Mbps: 3488.946 Tx PPS: 291851 Elapsed: 4000 Mbps: 2743.678 Peak Mbps: 2833.030 Rx PPS: 232989 Elapsed: 5000 Mbps: 3483.541 Peak Mbps: 3488.946 Tx PPS: 295817 Elapsed: 5000 Mbps: 2737.549 Peak Mbps: 2833.030 Rx PPS: 232468 --- 127.0.0.1 tcpbench statistics --- 2590708224 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3332.042/3443.597/3488.946/58.707 Mbps Elapsed: 6000 Mbps: 2753.547 Peak Mbps: 2833.030 Rx PPS: 233827 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2079076352 bytes received over 6.004 seconds bandwidth min/avg/max/std-dev = 2737.549/2771.941/2833.030/35.605 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s