START sys/kern/sosplice/perf 2024-10-25T18:22:53Z ==== 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 1183079308 9464.634 100.00% Conn: 1 Mbps: 9464.634 Peak Mbps: 9464.634 Avg Mbps: 9464.634 999 1183003310 9473.500 100.00% Conn: 1 Mbps: 9473.500 Peak Mbps: 9473.500 Avg Mbps: 9473.500 1999 1188073882 9504.591 100.00% 2000 1188138190 9505.106 100.00% Conn: 1 Mbps: 9504.591 Peak Mbps: 9504.591 Avg Mbps: 9504.591 Conn: 1 Mbps: 9505.106 Peak Mbps: 9505.106 Avg Mbps: 9505.106 3000 1190427130 9523.417 100.00% 3000 1190420642 9523.365 100.00% Conn: 1 Mbps: 9523.417 Peak Mbps: 9523.417 Avg Mbps: 9523.417 Conn: 1 Mbps: 9523.365 Peak Mbps: 9523.365 Avg Mbps: 9523.365 4000 1188988278 9511.906 100.00% Conn: 1 Mbps: 9511.906 Peak Mbps: 9523.365 Avg Mbps: 9511.906 4000 1188985158 9511.881 100.00% Conn: 1 Mbps: 9511.881 Peak Mbps: 9523.417 Avg Mbps: 9511.881 5000 1187075964 9506.114 100.00% 5000 1187083392 9496.667 100.00% Conn: 1 Mbps: 9506.114 Peak Mbps: 9523.417 Avg Mbps: 9506.114 Conn: 1 Mbps: 9496.667 Peak Mbps: 9523.365 Avg Mbps: 9496.667 --- 127.0.0.1 tcpbench statistics --- 7126560052 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9464.634/9502.230/9523.417/19.894 Mbps 6000 1188979162 9511.833 100.00% Conn: 1 Mbps: 9511.833 Peak Mbps: 9523.365 Avg Mbps: 9511.833 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7126560052 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9473.500/9503.644/9523.365/15.719 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 1310329288 10482.634 100.00% Conn: 1 Mbps: 10482.634 Peak Mbps: 10482.634 Avg Mbps: 10482.634 1000 1308484490 10467.876 100.00% Conn: 1 Mbps: 10467.876 Peak Mbps: 10467.876 Avg Mbps: 10467.876 2000 1315695788 10536.102 100.00% Conn: 1 Mbps: 10536.102 Peak Mbps: 10536.102 Avg Mbps: 10536.102 2000 1315700736 10525.606 100.00% Conn: 1 Mbps: 10525.606 Peak Mbps: 10525.606 Avg Mbps: 10525.606 3000 1316640126 10533.121 100.00% Conn: 1 Mbps: 10533.121 Peak Mbps: 10536.102 Avg Mbps: 10533.121 3000 1316749312 10544.539 100.00% Conn: 1 Mbps: 10544.539 Peak Mbps: 10544.539 Avg Mbps: 10544.539 4000 1320205390 10561.643 100.00% Conn: 1 Mbps: 10561.643 Peak Mbps: 10561.643 Avg Mbps: 10561.643 4000 1320157184 10561.257 100.00% Conn: 1 Mbps: 10561.257 Peak Mbps: 10561.257 Avg Mbps: 10561.257 5000 1320261306 10572.663 100.00% Conn: 1 Mbps: 10572.663 Peak Mbps: 10572.663 Avg Mbps: 10572.663 5000 1320943616 10567.549 100.00% Conn: 1 Mbps: 10567.549 Peak Mbps: 10567.549 Avg Mbps: 10567.549 --- 127.0.0.1 tcpbench statistics --- 7903140110 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10482.634/10537.233/10572.663/31.146 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7903140110 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10467.876/10533.365/10567.549/35.834 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: 1918.440 Peak Mbps: 1918.440 Tx PPS: 162911 Elapsed: 1000 Mbps: 1918.546 Peak Mbps: 1918.546 Rx PPS: 162920 Elapsed: 2000 Mbps: 1927.185 Peak Mbps: 1927.185 Tx PPS: 163653 Elapsed: 1999 Mbps: 1927.256 Peak Mbps: 1927.256 Rx PPS: 163659 Elapsed: 3000 Mbps: 1925.506 Peak Mbps: 1927.185 Tx PPS: 163511 Elapsed: 2999 Mbps: 1925.553 Peak Mbps: 1927.256 Rx PPS: 163515 Elapsed: 4000 Mbps: 1926.059 Peak Mbps: 1927.185 Tx PPS: 163558 Elapsed: 3999 Mbps: 1926.071 Peak Mbps: 1927.256 Rx PPS: 163559 Elapsed: 5000 Mbps: 1907.265 Peak Mbps: 1927.185 Tx PPS: 161962 Elapsed: 4999 Mbps: 1907.194 Peak Mbps: 1927.256 Rx PPS: 161956 --- 127.0.0.1 tcpbench statistics --- 1441532544 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1907.265/1920.891/1927.185/7.474 Mbps Elapsed: 6002 Mbps: 1925.717 Peak Mbps: 1927.256 Rx PPS: 163528 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1441532544 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1907.194/1921.723/1927.256/7.087 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: 1817.331 Peak Mbps: 1817.331 Tx PPS: 154325 Elapsed: 999 Mbps: 1819.268 Peak Mbps: 1819.268 Rx PPS: 154489 Elapsed: 2000 Mbps: 1818.891 Peak Mbps: 1818.891 Tx PPS: 154457 Elapsed: 1999 Mbps: 1818.903 Peak Mbps: 1819.268 Rx PPS: 154458 Elapsed: 3000 Mbps: 1790.235 Peak Mbps: 1818.891 Tx PPS: 152024 Elapsed: 2999 Mbps: 1790.294 Peak Mbps: 1819.268 Rx PPS: 152029 Elapsed: 4000 Mbps: 1816.519 Peak Mbps: 1818.891 Tx PPS: 154256 Elapsed: 4000 Mbps: 1816.483 Peak Mbps: 1819.268 Rx PPS: 154253 Elapsed: 5000 Mbps: 1814.858 Peak Mbps: 1818.891 Tx PPS: 154115 Elapsed: 5000 Mbps: 1814.858 Peak Mbps: 1819.268 Rx PPS: 154115 --- 127.0.0.1 tcpbench statistics --- 1359046080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1790.235/1811.567/1818.891/10.745 Mbps Elapsed: 6002 Mbps: 1812.576 Peak Mbps: 1819.268 Rx PPS: 153921 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1359046080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1790.294/1812.064/1819.268/10.002 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s