START sys/kern/sosplice/perf 2024-02-25T02:34:33Z ==== 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 1559637638 12477.101 100.00% Conn: 1 Mbps: 12477.101 Peak Mbps: 12477.101 Avg Mbps: 12477.101 1000 1559623756 12476.990 100.00% Conn: 1 Mbps: 12476.990 Peak Mbps: 12476.990 Avg Mbps: 12476.990 2000 1560753378 12498.526 100.00% Conn: 1 Mbps: 12498.526 Peak Mbps: 12498.526 Avg Mbps: 12498.526 2000 1560756632 12498.552 100.00% Conn: 1 Mbps: 12498.552 Peak Mbps: 12498.552 Avg Mbps: 12498.552 3000 1563318332 12506.547 100.00% Conn: 1 Mbps: 12506.547 Peak Mbps: 12506.547 Avg Mbps: 12506.547 3000 1563313434 12506.507 100.00% Conn: 1 Mbps: 12506.507 Peak Mbps: 12506.507 Avg Mbps: 12506.507 4000 1559069572 12485.042 100.00% Conn: 1 Mbps: 12485.042 Peak Mbps: 12506.547 Avg Mbps: 12485.042 4000 1559181774 12473.454 100.00% Conn: 1 Mbps: 12473.454 Peak Mbps: 12506.507 Avg Mbps: 12473.454 5000 1563664430 12509.315 100.00% Conn: 1 Mbps: 12509.315 Peak Mbps: 12509.315 Avg Mbps: 12509.315 5000 1563601822 12508.815 100.00% Conn: 1 Mbps: 12508.815 Peak Mbps: 12508.815 Avg Mbps: 12508.815 --- 127.0.0.1 tcpbench statistics --- 9367997298 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12477.101/12495.306/12509.315/12.408 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9367997298 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12473.454/12492.864/12508.815/14.843 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 1930334350 15442.675 100.00% Conn: 1 Mbps: 15442.675 Peak Mbps: 15442.675 Avg Mbps: 15442.675 1000 1928693608 15429.549 100.00% Conn: 1 Mbps: 15429.549 Peak Mbps: 15429.549 Avg Mbps: 15429.549 2000 1940767400 15541.681 100.00% Conn: 1 Mbps: 15541.681 Peak Mbps: 15541.681 Avg Mbps: 15541.681 2000 1941176320 15529.411 100.00% Conn: 1 Mbps: 15529.411 Peak Mbps: 15529.411 Avg Mbps: 15529.411 3000 1936161176 15489.289 100.00% Conn: 1 Mbps: 15489.289 Peak Mbps: 15541.681 Avg Mbps: 15489.289 3000 1936195584 15489.565 100.00% Conn: 1 Mbps: 15489.565 Peak Mbps: 15529.411 Avg Mbps: 15489.565 4000 1936713324 15493.707 100.00% Conn: 1 Mbps: 15493.707 Peak Mbps: 15541.681 Avg Mbps: 15493.707 4000 1936719872 15493.759 100.00% Conn: 1 Mbps: 15493.759 Peak Mbps: 15529.411 Avg Mbps: 15493.759 5000 1938548936 15523.915 100.00% Conn: 1 Mbps: 15523.915 Peak Mbps: 15541.681 Avg Mbps: 15523.915 5000 1938817024 15510.536 100.00% Conn: 1 Mbps: 15510.536 Peak Mbps: 15529.411 Avg Mbps: 15510.536 --- 127.0.0.1 tcpbench statistics --- 11617809932 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15442.675/15498.253/15541.681/33.866 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11617809932 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15429.549/15490.564/15529.411/33.592 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: 1591.774 Peak Mbps: 1591.774 Tx PPS: 135171 Elapsed: 1000 Mbps: 1400.025 Peak Mbps: 1400.025 Rx PPS: 118888 Elapsed: 2000 Mbps: 1592.094 Peak Mbps: 1592.094 Tx PPS: 135198 Elapsed: 1999 Mbps: 1400.448 Peak Mbps: 1400.448 Rx PPS: 118923 Elapsed: 3000 Mbps: 1595.677 Peak Mbps: 1595.677 Tx PPS: 135502 Elapsed: 2999 Mbps: 1400.354 Peak Mbps: 1400.448 Rx PPS: 118915 Elapsed: 4000 Mbps: 1597.002 Peak Mbps: 1597.002 Tx PPS: 135615 Elapsed: 3999 Mbps: 1396.386 Peak Mbps: 1400.448 Rx PPS: 118579 Elapsed: 5000 Mbps: 1596.437 Peak Mbps: 1597.002 Tx PPS: 135567 Elapsed: 4999 Mbps: 1398.718 Peak Mbps: 1400.448 Rx PPS: 118777 --- 127.0.0.1 tcpbench statistics --- 1195830720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1591.774/1594.597/1597.002/2.217 Mbps Elapsed: 5999 Mbps: 1399.613 Peak Mbps: 1400.448 Rx PPS: 118853 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1049153280 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1396.386/1399.257/1400.448/1.407 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: 1545.258 Peak Mbps: 1545.258 Tx PPS: 131221 Elapsed: 1000 Mbps: 1545.282 Peak Mbps: 1545.282 Rx PPS: 131223 Elapsed: 2000 Mbps: 1547.572 Peak Mbps: 1547.572 Tx PPS: 131417 Elapsed: 1999 Mbps: 1547.666 Peak Mbps: 1547.666 Rx PPS: 131425 Elapsed: 3000 Mbps: 1544.528 Peak Mbps: 1547.572 Tx PPS: 131159 Elapsed: 2999 Mbps: 1544.587 Peak Mbps: 1547.666 Rx PPS: 131164 Elapsed: 4000 Mbps: 1544.670 Peak Mbps: 1547.572 Tx PPS: 131171 Elapsed: 4000 Mbps: 1544.575 Peak Mbps: 1547.666 Rx PPS: 131163 Elapsed: 5000 Mbps: 1546.181 Peak Mbps: 1547.572 Tx PPS: 131299 Elapsed: 5000 Mbps: 1544.670 Peak Mbps: 1547.666 Rx PPS: 131171 --- 127.0.0.1 tcpbench statistics --- 1158904128 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1544.528/1545.642/1547.572/1.127 Mbps Elapsed: 6002 Mbps: 1542.915 Peak Mbps: 1547.666 Rx PPS: 131021 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1158904128 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1542.915/1544.949/1547.666/1.413 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.58s