START sys/kern/sosplice/perf 2025-03-20T02:11:34Z ==== 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 999 1833017296 14678.817 100.00% 1000 1833197234 14665.578 100.00% Conn: 1 Mbps: 14678.817 Peak Mbps: 14678.817 Avg Mbps: 14678.817 Conn: 1 Mbps: 14665.578 Peak Mbps: 14665.578 Avg Mbps: 14665.578 2000 1836999358 14710.706 100.00% Conn: 1 Mbps: 14710.706 Peak Mbps: 14710.706 Avg Mbps: 14710.706 1999 1837113864 14696.911 100.00% Conn: 1 Mbps: 14696.911 Peak Mbps: 14696.911 Avg Mbps: 14696.911 3000 1828802918 14630.423 100.00% Conn: 1 Mbps: 14630.423 Peak Mbps: 14710.706 Avg Mbps: 14630.423 3000 1828802906 14630.423 100.00% Conn: 1 Mbps: 14630.423 Peak Mbps: 14696.911 Avg Mbps: 14630.423 4000 1845765698 14766.126 100.00% Conn: 1 Mbps: 14766.126 Peak Mbps: 14766.126 Avg Mbps: 14766.126 4000 1845798530 14766.388 100.00% Conn: 1 Mbps: 14766.388 Peak Mbps: 14766.388 Avg Mbps: 14766.388 5000 1842488686 14739.909 100.00% Conn: 1 Mbps: 14739.909 Peak Mbps: 14766.126 Avg Mbps: 14739.909 5000 1842521390 14740.171 100.00% Conn: 1 Mbps: 14740.171 Peak Mbps: 14766.388 Avg Mbps: 14740.171 --- 127.0.0.1 tcpbench statistics --- 11026130078 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14630.423/14702.548/14766.126/49.139 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11026130078 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14630.423/14702.542/14766.388/47.514 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 1834503402 14676.027 100.00% Conn: 1 Mbps: 14676.027 Peak Mbps: 14676.027 Avg Mbps: 14676.027 999 1834470686 14690.456 100.00% Conn: 1 Mbps: 14690.456 Peak Mbps: 14690.456 Avg Mbps: 14690.456 2000 1858483402 14882.750 100.00% Conn: 1 Mbps: 14882.750 Peak Mbps: 14882.750 Avg Mbps: 14882.750 2000 1858581550 14868.652 100.00% Conn: 1 Mbps: 14868.652 Peak Mbps: 14868.652 Avg Mbps: 14868.652 3000 1861949150 14895.593 100.00% Conn: 1 Mbps: 14895.593 Peak Mbps: 14895.593 Avg Mbps: 14895.593 3000 1861949138 14895.593 100.00% Conn: 1 Mbps: 14895.593 Peak Mbps: 14895.593 Avg Mbps: 14895.593 4000 1873905598 14991.245 100.00% Conn: 1 Mbps: 14991.245 Peak Mbps: 14991.245 Avg Mbps: 14991.245 4000 1873938326 14991.507 100.00% Conn: 1 Mbps: 14991.507 Peak Mbps: 14991.507 Avg Mbps: 14991.507 5000 1846264432 14784.900 100.00% Conn: 1 Mbps: 14784.900 Peak Mbps: 14991.245 Avg Mbps: 14784.900 5000 1846297148 14770.377 100.00% Conn: 1 Mbps: 14770.377 Peak Mbps: 14991.507 Avg Mbps: 14770.377 --- 127.0.0.1 tcpbench statistics --- 11133401190 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14676.027/14846.103/14991.245/107.266 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11133401190 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14690.456/14843.317/14991.507/103.944 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: 2757.315 Peak Mbps: 2757.315 Tx PPS: 234147 Elapsed: 1000 Mbps: 2155.479 Peak Mbps: 2155.479 Rx PPS: 183040 Elapsed: 2000 Mbps: 2704.908 Peak Mbps: 2757.315 Tx PPS: 229696 Elapsed: 1999 Mbps: 2147.428 Peak Mbps: 2155.479 Rx PPS: 182356 Elapsed: 3000 Mbps: 2720.185 Peak Mbps: 2757.315 Tx PPS: 230994 Elapsed: 2999 Mbps: 2206.469 Peak Mbps: 2206.469 Rx PPS: 187370 Elapsed: 4000 Mbps: 2747.129 Peak Mbps: 2757.315 Tx PPS: 233282 Elapsed: 4000 Mbps: 2146.623 Peak Mbps: 2206.469 Rx PPS: 182288 Elapsed: 5000 Mbps: 2706.207 Peak Mbps: 2757.315 Tx PPS: 229807 Elapsed: 5000 Mbps: 2233.644 Peak Mbps: 2233.644 Rx PPS: 189677 --- 127.0.0.1 tcpbench statistics --- 2045988736 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2704.908/2727.149/2757.315/21.405 Mbps Elapsed: 6000 Mbps: 2158.529 Peak Mbps: 2233.644 Rx PPS: 183299 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1636236928 bytes received over 6.019 seconds bandwidth min/avg/max/std-dev = 2146.623/2174.696/2233.644/33.283 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: 2827.182 Peak Mbps: 2827.182 Tx PPS: 240080 Elapsed: 1000 Mbps: 2081.326 Peak Mbps: 2081.326 Rx PPS: 176743 Elapsed: 2000 Mbps: 2756.810 Peak Mbps: 2827.182 Tx PPS: 234104 Elapsed: 2000 Mbps: 2111.075 Peak Mbps: 2111.075 Rx PPS: 179269 Elapsed: 3000 Mbps: 2771.340 Peak Mbps: 2827.182 Tx PPS: 235338 Elapsed: 3000 Mbps: 2078.417 Peak Mbps: 2111.075 Rx PPS: 176496 Elapsed: 4000 Mbps: 2800.215 Peak Mbps: 2827.182 Tx PPS: 237790 Elapsed: 4000 Mbps: 2105.360 Peak Mbps: 2111.075 Rx PPS: 178784 Elapsed: 5000 Mbps: 2760.459 Peak Mbps: 2827.182 Tx PPS: 234414 Elapsed: 5000 Mbps: 2108.528 Peak Mbps: 2111.075 Rx PPS: 179053 --- 127.0.0.1 tcpbench statistics --- 2088292544 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2756.810/2783.201/2827.182/26.751 Mbps Elapsed: 6000 Mbps: 2067.630 Peak Mbps: 2111.075 Rx PPS: 175580 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1574611648 bytes received over 6.019 seconds bandwidth min/avg/max/std-dev = 2067.630/2092.056/2111.075/16.871 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.68s