START sys/kern/sosplice/perf 2025-03-27T19:20:31Z ==== 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 1358236484 10865.892 100.00% Conn: 1 Mbps: 10865.892 Peak Mbps: 10865.892 Avg Mbps: 10865.892 999 1358138440 10875.984 100.00% Conn: 1 Mbps: 10875.984 Peak Mbps: 10875.984 Avg Mbps: 10875.984 2000 1371630794 10973.046 100.00% Conn: 1 Mbps: 10973.046 Peak Mbps: 10973.046 Avg Mbps: 10973.046 2000 1371696226 10973.570 100.00% Conn: 1 Mbps: 10973.570 Peak Mbps: 10973.570 Avg Mbps: 10973.570 3000 1370994256 10967.954 100.00% Conn: 1 Mbps: 10967.954 Peak Mbps: 10973.046 Avg Mbps: 10967.954 2999 1370879854 10978.017 100.00% Conn: 1 Mbps: 10978.017 Peak Mbps: 10978.017 Avg Mbps: 10978.017 4000 1374295880 11005.372 100.00% Conn: 1 Mbps: 11005.372 Peak Mbps: 11005.372 Avg Mbps: 11005.372 4000 1374410734 10995.286 100.00% Conn: 1 Mbps: 10995.286 Peak Mbps: 10995.286 Avg Mbps: 10995.286 5000 1370323306 10962.586 100.00% Conn: 1 Mbps: 10962.586 Peak Mbps: 11005.372 Avg Mbps: 10962.586 5000 1370355674 10962.845 100.00% Conn: 1 Mbps: 10962.845 Peak Mbps: 10995.286 Avg Mbps: 10962.845 --- 127.0.0.1 tcpbench statistics --- 8221136542 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10865.892/10954.970/11005.372/46.965 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8221136542 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10875.984/10957.140/10995.286/41.904 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 1512483562 12099.868 100.00% Conn: 1 Mbps: 12099.868 Peak Mbps: 12099.868 Avg Mbps: 12099.868 1000 1512450846 12099.607 100.00% Conn: 1 Mbps: 12099.607 Peak Mbps: 12099.607 Avg Mbps: 12099.607 2000 1530150738 12253.459 100.00% Conn: 1 Mbps: 12253.459 Peak Mbps: 12253.459 Avg Mbps: 12253.459 2000 1530363392 12242.907 100.00% Conn: 1 Mbps: 12242.907 Peak Mbps: 12242.907 Avg Mbps: 12242.907 3000 1533058446 12264.468 100.00% Conn: 1 Mbps: 12264.468 Peak Mbps: 12264.468 Avg Mbps: 12264.468 3000 1533107936 12264.863 100.00% Conn: 1 Mbps: 12264.863 Peak Mbps: 12264.863 Avg Mbps: 12264.863 4000 1531327226 12262.881 100.00% Conn: 1 Mbps: 12262.881 Peak Mbps: 12264.863 Avg Mbps: 12262.881 4000 1531491222 12251.930 100.00% Conn: 1 Mbps: 12251.930 Peak Mbps: 12264.468 Avg Mbps: 12251.930 5000 1534785456 12278.284 100.00% Conn: 1 Mbps: 12278.284 Peak Mbps: 12278.284 Avg Mbps: 12278.284 5000 1534883604 12279.069 100.00% Conn: 1 Mbps: 12279.069 Peak Mbps: 12279.069 Avg Mbps: 12279.069 --- 127.0.0.1 tcpbench statistics --- 9172816730 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12099.868/12229.918/12279.069/66.038 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9172816730 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12099.607/12229.549/12278.284/65.654 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: 1931.759 Peak Mbps: 1931.759 Tx PPS: 164042 Elapsed: 999 Mbps: 1933.787 Peak Mbps: 1933.787 Rx PPS: 164214 Elapsed: 2000 Mbps: 1935.649 Peak Mbps: 1935.649 Tx PPS: 164372 Elapsed: 1999 Mbps: 1935.732 Peak Mbps: 1935.732 Rx PPS: 164379 Elapsed: 3000 Mbps: 1934.526 Peak Mbps: 1935.649 Tx PPS: 164277 Elapsed: 2999 Mbps: 1934.479 Peak Mbps: 1935.732 Rx PPS: 164273 Elapsed: 4000 Mbps: 1935.350 Peak Mbps: 1935.649 Tx PPS: 164347 Elapsed: 3999 Mbps: 1935.362 Peak Mbps: 1935.732 Rx PPS: 164348 Elapsed: 5000 Mbps: 1937.458 Peak Mbps: 1937.458 Tx PPS: 164526 Elapsed: 4999 Mbps: 1937.482 Peak Mbps: 1937.482 Rx PPS: 164528 --- 127.0.0.1 tcpbench statistics --- 1450831168 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1931.759/1934.948/1937.458/1.860 Mbps Elapsed: 6002 Mbps: 1929.818 Peak Mbps: 1937.482 Rx PPS: 163877 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1450831168 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1929.818/1934.443/1937.482/2.365 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: 1852.141 Peak Mbps: 1852.141 Tx PPS: 157281 Elapsed: 1000 Mbps: 1852.200 Peak Mbps: 1852.200 Rx PPS: 157286 Elapsed: 2000 Mbps: 1852.510 Peak Mbps: 1852.510 Tx PPS: 157312 Elapsed: 1999 Mbps: 1852.616 Peak Mbps: 1852.616 Rx PPS: 157321 Elapsed: 3000 Mbps: 1848.644 Peak Mbps: 1852.510 Tx PPS: 156984 Elapsed: 2999 Mbps: 1848.620 Peak Mbps: 1852.616 Rx PPS: 156982 Elapsed: 4000 Mbps: 1848.620 Peak Mbps: 1852.510 Tx PPS: 156982 Elapsed: 4000 Mbps: 1848.620 Peak Mbps: 1852.616 Rx PPS: 156982 Elapsed: 5000 Mbps: 1848.502 Peak Mbps: 1852.510 Tx PPS: 156972 Elapsed: 5000 Mbps: 1848.514 Peak Mbps: 1852.616 Rx PPS: 156973 --- 127.0.0.1 tcpbench statistics --- 1386554816 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1848.502/1850.083/1852.510/1.835 Mbps Elapsed: 6002 Mbps: 1840.041 Peak Mbps: 1852.616 Rx PPS: 156253 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1386554816 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1840.041/1848.435/1852.616/4.127 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.51s