START sys/kern/sosplice/perf 2024-08-26T01:27:21Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -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 1551739760 12413.918 100.00% Conn: 1 Mbps: 12413.918 Peak Mbps: 12413.918 Avg Mbps: 12413.918 999 1551641612 12425.558 100.00% Conn: 1 Mbps: 12425.558 Peak Mbps: 12425.558 Avg Mbps: 12425.558 2000 1556076262 12461.071 100.00% Conn: 1 Mbps: 12461.071 Peak Mbps: 12461.071 Avg Mbps: 12461.071 2000 1556161588 12449.293 100.00% Conn: 1 Mbps: 12449.293 Peak Mbps: 12449.293 Avg Mbps: 12449.293 3000 1555341160 12442.729 100.00% Conn: 1 Mbps: 12442.729 Peak Mbps: 12461.071 Avg Mbps: 12442.729 3000 1555374812 12442.998 100.00% Conn: 1 Mbps: 12442.998 Peak Mbps: 12449.293 Avg Mbps: 12442.998 4000 1557190406 12457.523 100.00% Conn: 1 Mbps: 12457.523 Peak Mbps: 12461.071 Avg Mbps: 12457.523 4000 1557190742 12457.526 100.00% Conn: 1 Mbps: 12457.526 Peak Mbps: 12457.526 Avg Mbps: 12457.526 5000 1555145408 12441.163 100.00% Conn: 1 Mbps: 12441.163 Peak Mbps: 12461.071 Avg Mbps: 12441.163 5000 1555241868 12441.935 100.00% Conn: 1 Mbps: 12441.935 Peak Mbps: 12457.526 Avg Mbps: 12441.935 --- 127.0.0.1 tcpbench statistics --- 9335722582 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12413.918/12443.281/12461.071/16.651 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9335722582 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12425.558/12443.462/12457.526/10.534 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 1853052828 14824.423 100.00% Conn: 1 Mbps: 14824.423 Peak Mbps: 14824.423 Avg Mbps: 14824.423 1000 1851519678 14812.157 100.00% Conn: 1 Mbps: 14812.157 Peak Mbps: 14812.157 Avg Mbps: 14812.157 2000 1860719830 14900.659 100.00% Conn: 1 Mbps: 14900.659 Peak Mbps: 14900.659 Avg Mbps: 14900.659 2000 1860698112 14885.585 100.00% Conn: 1 Mbps: 14885.585 Peak Mbps: 14885.585 Avg Mbps: 14885.585 3000 1864720150 14917.761 100.00% Conn: 1 Mbps: 14917.761 Peak Mbps: 14917.761 Avg Mbps: 14917.761 3000 1864892416 14919.139 100.00% Conn: 1 Mbps: 14919.139 Peak Mbps: 14919.139 Avg Mbps: 14919.139 4000 1864105060 14927.768 100.00% Conn: 1 Mbps: 14927.768 Peak Mbps: 14927.768 Avg Mbps: 14927.768 4000 1864368128 14929.875 100.00% Conn: 1 Mbps: 14929.875 Peak Mbps: 14929.875 Avg Mbps: 14929.875 5000 1865531294 14924.250 100.00% Conn: 1 Mbps: 14924.250 Peak Mbps: 14927.768 Avg Mbps: 14924.250 5000 1865678848 14925.431 100.00% Conn: 1 Mbps: 14925.431 Peak Mbps: 14929.875 Avg Mbps: 14925.431 --- 127.0.0.1 tcpbench statistics --- 11167743212 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14824.423/14898.972/14927.768/38.423 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11167743212 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14812.157/14894.437/14929.875/43.989 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: 3119.345 Peak Mbps: 3119.345 Tx PPS: 264890 Elapsed: 1000 Mbps: 2525.104 Peak Mbps: 2525.104 Rx PPS: 214428 Elapsed: 2000 Mbps: 2981.638 Peak Mbps: 3119.345 Tx PPS: 253196 Elapsed: 2002 Mbps: 2498.616 Peak Mbps: 2525.104 Rx PPS: 212178 Elapsed: 3000 Mbps: 2981.707 Peak Mbps: 3119.345 Tx PPS: 253202 Elapsed: 3015 Mbps: 2410.496 Peak Mbps: 2525.104 Rx PPS: 204695 Elapsed: 4000 Mbps: 2956.731 Peak Mbps: 3119.345 Tx PPS: 251081 Elapsed: 4015 Mbps: 2341.432 Peak Mbps: 2525.104 Rx PPS: 198830 Elapsed: 5000 Mbps: 3009.910 Peak Mbps: 3119.345 Tx PPS: 255597 Elapsed: 5015 Mbps: 2412.255 Peak Mbps: 2525.104 Rx PPS: 204845 --- 127.0.0.1 tcpbench statistics --- 2256658432 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2956.731/3009.866/3119.345/57.269 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1815062848 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 2341.432/2437.580/2525.104/66.340 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: 2954.869 Peak Mbps: 2954.869 Tx PPS: 250923 Elapsed: 1000 Mbps: 2314.490 Peak Mbps: 2314.490 Rx PPS: 196543 Elapsed: 2000 Mbps: 2990.904 Peak Mbps: 2990.904 Tx PPS: 253982 Elapsed: 2000 Mbps: 2246.201 Peak Mbps: 2314.490 Rx PPS: 190744 Elapsed: 3000 Mbps: 3105.072 Peak Mbps: 3105.072 Tx PPS: 263678 Elapsed: 3021 Mbps: 2292.525 Peak Mbps: 2314.490 Rx PPS: 194677 Elapsed: 4000 Mbps: 2906.364 Peak Mbps: 3105.072 Tx PPS: 246804 Elapsed: 4033 Mbps: 2194.098 Peak Mbps: 2314.490 Rx PPS: 186319 Elapsed: 5000 Mbps: 3049.854 Peak Mbps: 3105.072 Tx PPS: 258989 Elapsed: 5033 Mbps: 2267.787 Peak Mbps: 2314.490 Rx PPS: 192577 --- 127.0.0.1 tcpbench statistics --- 2250474560 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2906.364/3001.413/3105.072/69.861 Mbps Elapsed: 6035 Mbps: 2109.079 Peak Mbps: 2314.490 Rx PPS: 179099 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1687584704 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 2109.079/2237.364/2314.490/68.707 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.62s