START sys/kern/sosplice/perf 2025-03-18T19:20:12Z ==== 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 1389142510 11124.264 100.00% 1000 1389321488 11114.572 100.00% Conn: 1 Mbps: 11124.264 Peak Mbps: 11124.264 Avg Mbps: 11124.264 Conn: 1 Mbps: 11114.572 Peak Mbps: 11114.572 Avg Mbps: 11114.572 2000 1403057472 11235.695 100.00% Conn: 1 Mbps: 11235.695 Peak Mbps: 11235.695 Avg Mbps: 11235.695 2000 1403089852 11224.719 100.00% Conn: 1 Mbps: 11224.719 Peak Mbps: 11224.719 Avg Mbps: 11224.719 3000 1404383338 11235.067 100.00% Conn: 1 Mbps: 11235.067 Peak Mbps: 11235.695 Avg Mbps: 11235.067 3000 1404399292 11235.194 100.00% Conn: 1 Mbps: 11235.194 Peak Mbps: 11235.194 Avg Mbps: 11235.194 4000 1407525418 11260.203 100.00% Conn: 1 Mbps: 11260.203 Peak Mbps: 11260.203 Avg Mbps: 11260.203 4000 1407558018 11271.736 100.00% Conn: 1 Mbps: 11271.736 Peak Mbps: 11271.736 Avg Mbps: 11271.736 5000 1399586588 11196.693 100.00% Conn: 1 Mbps: 11196.693 Peak Mbps: 11260.203 Avg Mbps: 11196.693 5000 1399521376 11207.378 100.00% Conn: 1 Mbps: 11207.378 Peak Mbps: 11271.736 Avg Mbps: 11207.378 --- 127.0.0.1 tcpbench statistics --- 8404105134 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11114.572/11208.446/11260.203/51.148 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8404105134 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11124.264/11212.658/11271.736/48.959 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 1537409800 12311.590 100.00% Conn: 1 Mbps: 12311.590 Peak Mbps: 12311.590 Avg Mbps: 12311.590 1000 1537737792 12301.902 100.00% Conn: 1 Mbps: 12301.902 Peak Mbps: 12301.902 Avg Mbps: 12301.902 2000 1554736454 12437.892 100.00% Conn: 1 Mbps: 12437.892 Peak Mbps: 12437.892 Avg Mbps: 12437.892 2000 1554702906 12450.073 100.00% Conn: 1 Mbps: 12450.073 Peak Mbps: 12450.073 Avg Mbps: 12450.073 3000 1555389270 12443.114 100.00% Conn: 1 Mbps: 12443.114 Peak Mbps: 12443.114 Avg Mbps: 12443.114 3000 1555323838 12455.046 100.00% Conn: 1 Mbps: 12455.046 Peak Mbps: 12455.046 Avg Mbps: 12455.046 4000 1552000694 12428.434 100.00% Conn: 1 Mbps: 12428.434 Peak Mbps: 12455.046 Avg Mbps: 12428.434 4000 1552033410 12416.267 100.00% Conn: 1 Mbps: 12416.267 Peak Mbps: 12443.114 Avg Mbps: 12416.267 5000 1553144262 12425.154 100.00% Conn: 1 Mbps: 12425.154 Peak Mbps: 12443.114 Avg Mbps: 12425.154 5000 1553226052 12425.808 100.00% Conn: 1 Mbps: 12425.808 Peak Mbps: 12455.046 Avg Mbps: 12425.808 --- 127.0.0.1 tcpbench statistics --- 9304152416 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 12301.902/12412.253/12455.046/56.364 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9304152416 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12311.590/12406.803/12443.114/48.532 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: 1921.207 Peak Mbps: 1921.207 Tx PPS: 163146 Elapsed: 1000 Mbps: 1921.313 Peak Mbps: 1921.313 Rx PPS: 163155 Elapsed: 2000 Mbps: 1930.180 Peak Mbps: 1930.180 Tx PPS: 163907 Elapsed: 1999 Mbps: 1930.262 Peak Mbps: 1930.262 Rx PPS: 163914 Elapsed: 3000 Mbps: 1931.087 Peak Mbps: 1931.087 Tx PPS: 163985 Elapsed: 2999 Mbps: 1931.099 Peak Mbps: 1931.099 Rx PPS: 163986 Elapsed: 4000 Mbps: 1927.943 Peak Mbps: 1931.087 Tx PPS: 163718 Elapsed: 4000 Mbps: 1927.943 Peak Mbps: 1931.099 Rx PPS: 163718 Elapsed: 5000 Mbps: 1929.062 Peak Mbps: 1931.087 Tx PPS: 163813 Elapsed: 5000 Mbps: 1929.050 Peak Mbps: 1931.099 Rx PPS: 163812 --- 127.0.0.1 tcpbench statistics --- 1445807232 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1921.207/1927.896/1931.087/3.507 Mbps Elapsed: 6002 Mbps: 1924.871 Peak Mbps: 1931.099 Rx PPS: 163457 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1445807232 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1921.313/1927.423/1931.099/3.375 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: 1828.460 Peak Mbps: 1828.460 Tx PPS: 155270 Elapsed: 1000 Mbps: 1828.518 Peak Mbps: 1828.518 Rx PPS: 155275 Elapsed: 2000 Mbps: 1830.313 Peak Mbps: 1830.313 Tx PPS: 155427 Elapsed: 1999 Mbps: 1830.361 Peak Mbps: 1830.361 Rx PPS: 155431 Elapsed: 3000 Mbps: 1830.685 Peak Mbps: 1830.685 Tx PPS: 155459 Elapsed: 2999 Mbps: 1830.685 Peak Mbps: 1830.685 Rx PPS: 155459 Elapsed: 4000 Mbps: 1831.086 Peak Mbps: 1831.086 Tx PPS: 155493 Elapsed: 3999 Mbps: 1831.097 Peak Mbps: 1831.097 Rx PPS: 155494 Elapsed: 5000 Mbps: 1830.473 Peak Mbps: 1831.086 Tx PPS: 155441 Elapsed: 5000 Mbps: 1830.461 Peak Mbps: 1831.097 Rx PPS: 155440 --- 127.0.0.1 tcpbench statistics --- 1372665024 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1828.460/1830.203/1831.086/0.910 Mbps Elapsed: 6002 Mbps: 1828.371 Peak Mbps: 1831.097 Rx PPS: 155262 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1372665024 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1828.371/1829.916/1831.097/1.066 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s