START sys/kern/sosplice/perf 2024-12-05T19:22:17Z ==== 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 1186908184 9495.265 100.00% Conn: 1 Mbps: 9495.265 Peak Mbps: 9495.265 Avg Mbps: 9495.265 999 1186829066 9504.137 100.00% Conn: 1 Mbps: 9504.137 Peak Mbps: 9504.137 Avg Mbps: 9504.137 2000 1187597992 9500.784 100.00% Conn: 1 Mbps: 9500.784 Peak Mbps: 9500.784 Avg Mbps: 9500.784 1999 1187563656 9500.509 100.00% Conn: 1 Mbps: 9500.509 Peak Mbps: 9504.137 Avg Mbps: 9500.509 3000 1187873502 9502.988 100.00% Conn: 1 Mbps: 9502.988 Peak Mbps: 9502.988 Avg Mbps: 9502.988 3000 1187912322 9503.299 100.00% Conn: 1 Mbps: 9503.299 Peak Mbps: 9504.137 Avg Mbps: 9503.299 4000 1188886242 9511.090 100.00% Conn: 1 Mbps: 9511.090 Peak Mbps: 9511.090 Avg Mbps: 9511.090 4000 1188881790 9520.575 100.00% Conn: 1 Mbps: 9520.575 Peak Mbps: 9520.575 Avg Mbps: 9520.575 5000 1188496066 9507.969 100.00% Conn: 1 Mbps: 9507.969 Peak Mbps: 9511.090 Avg Mbps: 9507.969 5000 1188495794 9507.966 100.00% Conn: 1 Mbps: 9507.966 Peak Mbps: 9520.575 Avg Mbps: 9507.966 --- 127.0.0.1 tcpbench statistics --- 7126136368 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9495.265/9503.619/9511.090/5.531 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7126136368 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9500.509/9507.297/9520.575/7.054 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 1305956888 10447.655 100.00% Conn: 1 Mbps: 10447.655 Peak Mbps: 10447.655 Avg Mbps: 10447.655 1000 1304099002 10432.792 100.00% Conn: 1 Mbps: 10432.792 Peak Mbps: 10432.792 Avg Mbps: 10432.792 2000 1309410548 10485.770 100.00% Conn: 1 Mbps: 10485.770 Peak Mbps: 10485.770 Avg Mbps: 10485.770 2000 1309933568 10479.469 100.00% Conn: 1 Mbps: 10479.469 Peak Mbps: 10479.469 Avg Mbps: 10479.469 3000 1310928792 10487.430 100.00% Conn: 1 Mbps: 10487.430 Peak Mbps: 10487.430 Avg Mbps: 10487.430 3000 1310457856 10494.157 100.00% Conn: 1 Mbps: 10494.157 Peak Mbps: 10494.157 Avg Mbps: 10494.157 4000 1311768576 10504.653 100.00% Conn: 1 Mbps: 10504.653 Peak Mbps: 10504.653 Avg Mbps: 10504.653 4000 1311788900 10494.311 100.00% Conn: 1 Mbps: 10494.311 Peak Mbps: 10494.311 Avg Mbps: 10494.311 5000 1314108630 10523.392 100.00% Conn: 1 Mbps: 10523.392 Peak Mbps: 10523.392 Avg Mbps: 10523.392 5000 1314127872 10513.023 100.00% Conn: 1 Mbps: 10513.023 Peak Mbps: 10513.023 Avg Mbps: 10513.023 --- 127.0.0.1 tcpbench statistics --- 7862231026 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10447.655/10487.712/10523.392/24.187 Mbps 6000 1311844152 10505.258 100.00% Conn: 1 Mbps: 10505.258 Peak Mbps: 10513.023 Avg Mbps: 10505.258 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7862231026 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10432.792/10488.225/10513.023/26.956 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: 1932.983 Peak Mbps: 1932.983 Tx PPS: 164146 Elapsed: 1000 Mbps: 1933.078 Peak Mbps: 1933.078 Rx PPS: 164154 Elapsed: 2000 Mbps: 1942.486 Peak Mbps: 1942.486 Tx PPS: 164952 Elapsed: 2000 Mbps: 1942.580 Peak Mbps: 1942.580 Rx PPS: 164960 Elapsed: 3000 Mbps: 1941.003 Peak Mbps: 1942.486 Tx PPS: 164827 Elapsed: 3000 Mbps: 1941.015 Peak Mbps: 1942.580 Rx PPS: 164828 Elapsed: 4000 Mbps: 1941.368 Peak Mbps: 1942.486 Tx PPS: 164858 Elapsed: 4000 Mbps: 1941.356 Peak Mbps: 1942.580 Rx PPS: 164857 Elapsed: 5000 Mbps: 1929.827 Peak Mbps: 1942.486 Tx PPS: 163878 Elapsed: 5000 Mbps: 1929.792 Peak Mbps: 1942.580 Rx PPS: 163875 --- 127.0.0.1 tcpbench statistics --- 1453307072 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1929.827/1937.533/1942.486/5.126 Mbps Elapsed: 6002 Mbps: 1936.705 Peak Mbps: 1942.580 Rx PPS: 164462 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1453307072 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1929.792/1937.421/1942.580/4.701 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: 1797.088 Peak Mbps: 1797.088 Tx PPS: 152606 Elapsed: 1000 Mbps: 1797.171 Peak Mbps: 1797.171 Rx PPS: 152613 Elapsed: 2000 Mbps: 1797.897 Peak Mbps: 1797.897 Tx PPS: 152674 Elapsed: 1999 Mbps: 1797.944 Peak Mbps: 1797.944 Rx PPS: 152678 Elapsed: 3000 Mbps: 1778.117 Peak Mbps: 1797.897 Tx PPS: 150995 Elapsed: 2999 Mbps: 1778.105 Peak Mbps: 1797.944 Rx PPS: 150994 Elapsed: 4000 Mbps: 1795.652 Peak Mbps: 1797.897 Tx PPS: 152484 Elapsed: 3999 Mbps: 1795.687 Peak Mbps: 1797.944 Rx PPS: 152487 Elapsed: 5000 Mbps: 1795.828 Peak Mbps: 1797.897 Tx PPS: 152499 Elapsed: 5000 Mbps: 1795.816 Peak Mbps: 1797.944 Rx PPS: 152498 --- 127.0.0.1 tcpbench statistics --- 1342937984 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1778.117/1792.916/1797.897/7.446 Mbps Elapsed: 6002 Mbps: 1777.024 Peak Mbps: 1797.944 Rx PPS: 150902 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1342937984 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1777.024/1790.291/1797.944/9.037 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s