START sys/kern/sosplice/perf 2024-04-26T01:30:34Z ==== 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 1165388162 9323.105 100.00% Conn: 1 Mbps: 9323.105 Peak Mbps: 9323.105 Avg Mbps: 9323.105 1000 1165507864 9324.063 100.00% Conn: 1 Mbps: 9324.063 Peak Mbps: 9324.063 Avg Mbps: 9324.063 2000 1165162834 9330.633 100.00% Conn: 1 Mbps: 9330.633 Peak Mbps: 9330.633 Avg Mbps: 9330.633 2000 1165224844 9321.799 100.00% Conn: 1 Mbps: 9321.799 Peak Mbps: 9324.063 Avg Mbps: 9321.799 3000 1168576736 9348.614 100.00% Conn: 1 Mbps: 9348.614 Peak Mbps: 9348.614 Avg Mbps: 9348.614 3000 1168780814 9350.247 100.00% Conn: 1 Mbps: 9350.247 Peak Mbps: 9350.247 Avg Mbps: 9350.247 4000 1165439992 9323.520 100.00% Conn: 1 Mbps: 9323.520 Peak Mbps: 9348.614 Avg Mbps: 9323.520 4000 1165414494 9323.316 100.00% Conn: 1 Mbps: 9323.316 Peak Mbps: 9350.247 Avg Mbps: 9323.316 5000 1165275864 9331.538 100.00% Conn: 1 Mbps: 9331.538 Peak Mbps: 9348.614 Avg Mbps: 9331.538 5000 1165342142 9322.737 100.00% Conn: 1 Mbps: 9322.737 Peak Mbps: 9350.247 Avg Mbps: 9322.737 --- 127.0.0.1 tcpbench statistics --- 6994646018 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9323.105/9331.482/9348.614/9.250 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6994646018 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9321.799/9328.432/9350.247/10.932 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 1399814146 11198.513 100.00% Conn: 1 Mbps: 11198.513 Peak Mbps: 11198.513 Avg Mbps: 11198.513 1000 1398110072 11184.881 100.00% Conn: 1 Mbps: 11184.881 Peak Mbps: 11184.881 Avg Mbps: 11184.881 2000 1407302152 11258.417 100.00% Conn: 1 Mbps: 11258.417 Peak Mbps: 11258.417 Avg Mbps: 11258.417 2000 1407451136 11259.609 100.00% Conn: 1 Mbps: 11259.609 Peak Mbps: 11259.609 Avg Mbps: 11259.609 3000 1409192784 11273.542 100.00% Conn: 1 Mbps: 11273.542 Peak Mbps: 11273.542 Avg Mbps: 11273.542 3000 1408761856 11270.095 100.00% Conn: 1 Mbps: 11270.095 Peak Mbps: 11270.095 Avg Mbps: 11270.095 4000 1407010276 11267.350 100.00% Conn: 1 Mbps: 11267.350 Peak Mbps: 11273.542 Avg Mbps: 11267.350 4000 1407451136 11259.609 100.00% Conn: 1 Mbps: 11259.609 Peak Mbps: 11270.095 Avg Mbps: 11259.609 5000 1405613454 11244.908 100.00% Conn: 1 Mbps: 11244.908 Peak Mbps: 11273.542 Avg Mbps: 11244.908 5000 1405616128 11244.929 100.00% Conn: 1 Mbps: 11244.929 Peak Mbps: 11270.095 Avg Mbps: 11244.929 --- 127.0.0.1 tcpbench statistics --- 8436431628 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11198.513/11248.546/11273.542/26.804 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8436431628 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11184.881/11243.825/11270.095/30.542 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: 1272.126 Peak Mbps: 1272.126 Tx PPS: 108027 Elapsed: 999 Mbps: 1273.435 Peak Mbps: 1273.435 Rx PPS: 108138 Elapsed: 2000 Mbps: 1280.142 Peak Mbps: 1280.142 Tx PPS: 108707 Elapsed: 1999 Mbps: 1280.177 Peak Mbps: 1280.177 Rx PPS: 108710 Elapsed: 3000 Mbps: 1275.353 Peak Mbps: 1280.142 Tx PPS: 108301 Elapsed: 3000 Mbps: 1275.329 Peak Mbps: 1280.177 Rx PPS: 108299 Elapsed: 4000 Mbps: 1279.081 Peak Mbps: 1280.142 Tx PPS: 108617 Elapsed: 4000 Mbps: 1277.814 Peak Mbps: 1280.177 Rx PPS: 108510 Elapsed: 5000 Mbps: 1280.201 Peak Mbps: 1280.201 Tx PPS: 108712 Elapsed: 5000 Mbps: 1278.932 Peak Mbps: 1280.177 Rx PPS: 108605 --- 127.0.0.1 tcpbench statistics --- 957694976 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1272.126/1277.380/1280.201/3.168 Mbps Elapsed: 6002 Mbps: 1275.874 Peak Mbps: 1280.177 Rx PPS: 108345 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 957694976 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1273.435/1276.927/1280.177/2.281 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: 1322.515 Peak Mbps: 1322.515 Tx PPS: 112306 Elapsed: 1000 Mbps: 1322.527 Peak Mbps: 1322.527 Rx PPS: 112307 Elapsed: 2000 Mbps: 1323.026 Peak Mbps: 1323.026 Tx PPS: 112349 Elapsed: 2000 Mbps: 1323.191 Peak Mbps: 1323.191 Rx PPS: 112363 Elapsed: 3000 Mbps: 1324.647 Peak Mbps: 1324.647 Tx PPS: 112487 Elapsed: 3000 Mbps: 1324.694 Peak Mbps: 1324.694 Rx PPS: 112491 Elapsed: 4000 Mbps: 1328.215 Peak Mbps: 1328.215 Tx PPS: 112790 Elapsed: 4000 Mbps: 1328.109 Peak Mbps: 1328.109 Rx PPS: 112781 Elapsed: 5000 Mbps: 1333.550 Peak Mbps: 1333.550 Tx PPS: 113243 Elapsed: 5000 Mbps: 1333.573 Peak Mbps: 1333.573 Rx PPS: 113245 --- 127.0.0.1 tcpbench statistics --- 994514112 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1322.515/1326.391/1333.550/4.098 Mbps Elapsed: 6002 Mbps: 1322.696 Peak Mbps: 1333.573 Rx PPS: 112321 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 994514112 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1322.527/1325.798/1333.573/3.961 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.59s