START sys/kern/sosplice/perf 2025-03-24T19:21:36Z ==== 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 1384935832 11079.487 100.00% Conn: 1 Mbps: 11079.487 Peak Mbps: 11079.487 Avg Mbps: 11079.487 999 1384837684 11089.791 100.00% Conn: 1 Mbps: 11089.791 Peak Mbps: 11089.791 Avg Mbps: 11089.791 2000 1392739318 11153.068 100.00% Conn: 1 Mbps: 11153.068 Peak Mbps: 11153.068 Avg Mbps: 11153.068 2000 1392822148 11142.577 100.00% Conn: 1 Mbps: 11142.577 Peak Mbps: 11142.577 Avg Mbps: 11142.577 3000 1398201606 11185.613 100.00% Conn: 1 Mbps: 11185.613 Peak Mbps: 11185.613 Avg Mbps: 11185.613 3000 1398151816 11185.215 100.00% Conn: 1 Mbps: 11185.215 Peak Mbps: 11185.215 Avg Mbps: 11185.215 4000 1391676492 11133.412 100.00% 4000 1391774860 11134.199 100.00% Conn: 1 Mbps: 11133.412 Peak Mbps: 11185.215 Avg Mbps: 11133.412 Conn: 1 Mbps: 11134.199 Peak Mbps: 11185.613 Avg Mbps: 11134.199 5000 1396628774 11184.214 100.00% Conn: 1 Mbps: 11184.214 Peak Mbps: 11185.613 Avg Mbps: 11184.214 5000 1396628670 11184.214 100.00% Conn: 1 Mbps: 11184.214 Peak Mbps: 11185.215 Avg Mbps: 11184.214 --- 127.0.0.1 tcpbench statistics --- 8358015498 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11079.487/11147.316/11185.613/39.075 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8358015498 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11089.791/11147.042/11185.215/35.559 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 1524754546 12210.247 100.00% Conn: 1 Mbps: 12210.247 Peak Mbps: 12210.247 Avg Mbps: 12210.247 1000 1524967616 12199.741 100.00% Conn: 1 Mbps: 12199.741 Peak Mbps: 12199.741 Avg Mbps: 12199.741 2000 1548858492 12390.868 100.00% Conn: 1 Mbps: 12390.868 Peak Mbps: 12390.868 Avg Mbps: 12390.868 2000 1549038014 12392.304 100.00% Conn: 1 Mbps: 12392.304 Peak Mbps: 12392.304 Avg Mbps: 12392.304 3000 1547406924 12391.647 100.00% Conn: 1 Mbps: 12391.647 Peak Mbps: 12391.647 Avg Mbps: 12391.647 3000 1547423282 12379.386 100.00% Conn: 1 Mbps: 12379.386 Peak Mbps: 12392.304 Avg Mbps: 12379.386 4000 1548621066 12388.969 100.00% Conn: 1 Mbps: 12388.969 Peak Mbps: 12391.647 Avg Mbps: 12388.969 4000 1548621066 12388.969 100.00% Conn: 1 Mbps: 12388.969 Peak Mbps: 12392.304 Avg Mbps: 12388.969 5000 1545663544 12365.308 100.00% Conn: 1 Mbps: 12365.308 Peak Mbps: 12391.647 Avg Mbps: 12365.308 5000 1545647174 12377.555 100.00% Conn: 1 Mbps: 12377.555 Peak Mbps: 12392.304 Avg Mbps: 12377.555 --- 127.0.0.1 tcpbench statistics --- 9264270702 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12199.741/12347.591/12392.304/74.135 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9264270702 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12210.247/12349.408/12391.647/70.266 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: 1963.412 Peak Mbps: 1963.412 Tx PPS: 166730 Elapsed: 999 Mbps: 1965.484 Peak Mbps: 1965.484 Rx PPS: 166905 Elapsed: 2000 Mbps: 1967.158 Peak Mbps: 1967.158 Tx PPS: 167048 Elapsed: 1999 Mbps: 1967.229 Peak Mbps: 1967.229 Rx PPS: 167054 Elapsed: 3000 Mbps: 1968.665 Peak Mbps: 1968.665 Tx PPS: 167176 Elapsed: 2999 Mbps: 1968.688 Peak Mbps: 1968.688 Rx PPS: 167178 Elapsed: 4000 Mbps: 1967.499 Peak Mbps: 1968.665 Tx PPS: 167077 Elapsed: 3999 Mbps: 1967.499 Peak Mbps: 1968.688 Rx PPS: 167077 Elapsed: 5000 Mbps: 1965.779 Peak Mbps: 1968.665 Tx PPS: 166931 Elapsed: 4999 Mbps: 1965.779 Peak Mbps: 1968.688 Rx PPS: 166931 --- 127.0.0.1 tcpbench statistics --- 1474652544 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1963.412/1966.503/1968.665/1.798 Mbps Elapsed: 6002 Mbps: 1962.549 Peak Mbps: 1968.688 Rx PPS: 166656 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1474652544 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1962.549/1966.205/1968.688/1.956 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: 1883.501 Peak Mbps: 1883.501 Tx PPS: 159944 Elapsed: 1000 Mbps: 1883.548 Peak Mbps: 1883.548 Rx PPS: 159948 Elapsed: 2000 Mbps: 1885.881 Peak Mbps: 1885.881 Tx PPS: 160146 Elapsed: 1999 Mbps: 1885.964 Peak Mbps: 1885.964 Rx PPS: 160153 Elapsed: 3000 Mbps: 1885.491 Peak Mbps: 1885.881 Tx PPS: 160113 Elapsed: 2999 Mbps: 1885.479 Peak Mbps: 1885.964 Rx PPS: 160112 Elapsed: 4000 Mbps: 1885.868 Peak Mbps: 1885.881 Tx PPS: 160145 Elapsed: 3999 Mbps: 1885.903 Peak Mbps: 1885.964 Rx PPS: 160148 Elapsed: 5000 Mbps: 1884.478 Peak Mbps: 1885.881 Tx PPS: 160027 Elapsed: 5000 Mbps: 1884.466 Peak Mbps: 1885.964 Rx PPS: 160026 --- 127.0.0.1 tcpbench statistics --- 1413518912 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1883.501/1885.044/1885.881/0.925 Mbps Elapsed: 6002 Mbps: 1880.916 Peak Mbps: 1885.964 Rx PPS: 159724 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1413518912 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1880.916/1884.379/1885.964/1.767 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.50s