START sys/kern/sosplice/perf 2025-01-12T19:29:35Z ==== 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 1400443572 11203.549 100.00% Conn: 1 Mbps: 11203.549 Peak Mbps: 11203.549 Avg Mbps: 11203.549 999 1400280096 11213.454 100.00% Conn: 1 Mbps: 11213.454 Peak Mbps: 11213.454 Avg Mbps: 11213.454 1999 1415835162 11326.681 100.00% Conn: 1 Mbps: 11326.681 Peak Mbps: 11326.681 Avg Mbps: 11326.681 2000 1415883820 11327.071 100.00% Conn: 1 Mbps: 11327.071 Peak Mbps: 11327.071 Avg Mbps: 11327.071 3000 1412037178 11307.605 100.00% Conn: 1 Mbps: 11307.605 Peak Mbps: 11327.071 Avg Mbps: 11307.605 3000 1412085732 11296.686 100.00% Conn: 1 Mbps: 11296.686 Peak Mbps: 11326.681 Avg Mbps: 11296.686 4000 1411942174 11295.537 100.00% Conn: 1 Mbps: 11295.537 Peak Mbps: 11327.071 Avg Mbps: 11295.537 4000 1411894060 11295.152 100.00% Conn: 1 Mbps: 11295.152 Peak Mbps: 11326.681 Avg Mbps: 11295.152 5000 1411451574 11291.613 100.00% Conn: 1 Mbps: 11291.613 Peak Mbps: 11326.681 Avg Mbps: 11291.613 5000 1411468892 11291.751 100.00% Conn: 1 Mbps: 11291.751 Peak Mbps: 11327.071 Avg Mbps: 11291.751 --- 127.0.0.1 tcpbench statistics --- 8464699770 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11203.549/11285.103/11327.071/42.595 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8464699770 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11213.454/11284.717/11326.681/37.786 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 1186367084 9490.937 100.00% Conn: 1 Mbps: 9490.937 Peak Mbps: 9490.937 Avg Mbps: 9490.937 1000 1186301652 9490.413 100.00% Conn: 1 Mbps: 9490.413 Peak Mbps: 9490.413 Avg Mbps: 9490.413 2000 1196694328 9573.555 100.00% Conn: 1 Mbps: 9573.555 Peak Mbps: 9573.555 Avg Mbps: 9573.555 2000 1196776534 9574.212 100.00% Conn: 1 Mbps: 9574.212 Peak Mbps: 9574.212 Avg Mbps: 9574.212 3000 1193573358 9558.145 100.00% Conn: 1 Mbps: 9558.145 Peak Mbps: 9573.555 Avg Mbps: 9558.145 3000 1193671506 9558.931 100.00% Conn: 1 Mbps: 9558.931 Peak Mbps: 9574.212 Avg Mbps: 9558.931 4000 1191917976 9544.889 100.00% Conn: 1 Mbps: 9544.889 Peak Mbps: 9574.212 Avg Mbps: 9544.889 4000 1192163762 9537.310 100.00% Conn: 1 Mbps: 9537.310 Peak Mbps: 9573.555 Avg Mbps: 9537.310 5000 1191275548 9530.204 100.00% Conn: 1 Mbps: 9530.204 Peak Mbps: 9574.212 Avg Mbps: 9530.204 5000 1191242820 9529.943 100.00% Conn: 1 Mbps: 9529.943 Peak Mbps: 9573.555 Avg Mbps: 9529.943 --- 127.0.0.1 tcpbench statistics --- 7149722900 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9490.937/9539.835/9574.212/28.481 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7149722900 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9490.413/9537.873/9573.555/28.283 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: 1925.871 Peak Mbps: 1925.871 Tx PPS: 163542 Elapsed: 1000 Mbps: 1925.941 Peak Mbps: 1925.941 Rx PPS: 163548 Elapsed: 2000 Mbps: 1930.003 Peak Mbps: 1930.003 Tx PPS: 163892 Elapsed: 1999 Mbps: 1930.073 Peak Mbps: 1930.073 Rx PPS: 163898 Elapsed: 3000 Mbps: 1933.419 Peak Mbps: 1933.419 Tx PPS: 164183 Elapsed: 2999 Mbps: 1933.443 Peak Mbps: 1933.443 Rx PPS: 164185 Elapsed: 4000 Mbps: 1935.492 Peak Mbps: 1935.492 Tx PPS: 164359 Elapsed: 3999 Mbps: 1937.405 Peak Mbps: 1937.405 Rx PPS: 164521 Elapsed: 5000 Mbps: 1935.539 Peak Mbps: 1935.539 Tx PPS: 164363 Elapsed: 4999 Mbps: 1935.550 Peak Mbps: 1937.405 Rx PPS: 164364 --- 127.0.0.1 tcpbench statistics --- 1448780672 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1925.871/1932.065/1935.539/3.695 Mbps Elapsed: 6002 Mbps: 1927.844 Peak Mbps: 1937.405 Rx PPS: 163709 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1448780672 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1925.941/1931.710/1937.405/4.105 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: 1831.368 Peak Mbps: 1831.368 Tx PPS: 155517 Elapsed: 1000 Mbps: 1831.404 Peak Mbps: 1831.404 Rx PPS: 155520 Elapsed: 2000 Mbps: 1833.567 Peak Mbps: 1833.567 Tx PPS: 155703 Elapsed: 1999 Mbps: 1833.649 Peak Mbps: 1833.649 Rx PPS: 155710 Elapsed: 3000 Mbps: 1832.145 Peak Mbps: 1833.567 Tx PPS: 155583 Elapsed: 2999 Mbps: 1832.134 Peak Mbps: 1833.649 Rx PPS: 155582 Elapsed: 4000 Mbps: 1830.608 Peak Mbps: 1833.567 Tx PPS: 155452 Elapsed: 3999 Mbps: 1828.801 Peak Mbps: 1833.649 Rx PPS: 155299 Elapsed: 5000 Mbps: 1832.934 Peak Mbps: 1833.567 Tx PPS: 155650 Elapsed: 5000 Mbps: 1832.934 Peak Mbps: 1833.649 Rx PPS: 155650 --- 127.0.0.1 tcpbench statistics --- 1373766080 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1830.608/1832.125/1833.567/1.059 Mbps Elapsed: 6002 Mbps: 1829.382 Peak Mbps: 1833.649 Rx PPS: 155348 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1373766080 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1828.801/1831.384/1833.649/1.769 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s