START sys/kern/sosplice/perf 2024-05-16T00:58: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 1543004992 12344.040 100.00% Conn: 1 Mbps: 12344.040 Peak Mbps: 12344.040 Avg Mbps: 12344.040 1000 1542857770 12342.862 100.00% Conn: 1 Mbps: 12342.862 Peak Mbps: 12342.862 Avg Mbps: 12342.862 2000 1548762388 12402.502 100.00% Conn: 1 Mbps: 12402.502 Peak Mbps: 12402.502 Avg Mbps: 12402.502 2000 1548963260 12391.706 100.00% Conn: 1 Mbps: 12391.706 Peak Mbps: 12391.706 Avg Mbps: 12391.706 3000 1549044650 12392.357 100.00% Conn: 1 Mbps: 12392.357 Peak Mbps: 12402.502 Avg Mbps: 12392.357 3000 1548910024 12391.280 100.00% Conn: 1 Mbps: 12391.280 Peak Mbps: 12391.706 Avg Mbps: 12391.280 4000 1550203872 12401.631 100.00% Conn: 1 Mbps: 12401.631 Peak Mbps: 12402.502 Avg Mbps: 12401.631 4000 1550273022 12402.184 100.00% Conn: 1 Mbps: 12402.184 Peak Mbps: 12402.184 Avg Mbps: 12402.184 5000 1553080132 12437.078 100.00% Conn: 1 Mbps: 12437.078 Peak Mbps: 12437.078 Avg Mbps: 12437.078 5000 1553146744 12425.174 100.00% Conn: 1 Mbps: 12425.174 Peak Mbps: 12425.174 Avg Mbps: 12425.174 --- 127.0.0.1 tcpbench statistics --- 9295784476 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12344.040/12395.522/12437.078/29.911 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9295784476 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12342.862/12390.641/12425.174/26.871 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 1907708678 15261.669 100.00% Conn: 1 Mbps: 15261.669 Peak Mbps: 15261.669 Avg Mbps: 15261.669 1000 1906087838 15248.703 100.00% Conn: 1 Mbps: 15248.703 Peak Mbps: 15248.703 Avg Mbps: 15248.703 2000 1913140752 15320.446 100.00% Conn: 1 Mbps: 15320.446 Peak Mbps: 15320.446 Avg Mbps: 15320.446 2000 1913389056 15307.112 100.00% Conn: 1 Mbps: 15307.112 Peak Mbps: 15307.112 Avg Mbps: 15307.112 3000 1916178568 15329.429 100.00% Conn: 1 Mbps: 15329.429 Peak Mbps: 15329.429 Avg Mbps: 15329.429 3000 1916272640 15330.181 100.00% Conn: 1 Mbps: 15330.181 Peak Mbps: 15330.181 Avg Mbps: 15330.181 4000 1911826146 15309.919 100.00% Conn: 1 Mbps: 15309.919 Peak Mbps: 15329.429 Avg Mbps: 15309.919 4000 1911816192 15309.839 100.00% Conn: 1 Mbps: 15309.839 Peak Mbps: 15330.181 Avg Mbps: 15309.839 5000 1911034986 15288.280 100.00% Conn: 1 Mbps: 15288.280 Peak Mbps: 15329.429 Avg Mbps: 15288.280 5000 1911291904 15290.335 100.00% Conn: 1 Mbps: 15290.335 Peak Mbps: 15330.181 Avg Mbps: 15290.335 --- 127.0.0.1 tcpbench statistics --- 11471459542 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15261.669/15301.949/15329.429/24.372 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11471459542 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15248.703/15297.234/15330.181/27.367 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: 1492.632 Peak Mbps: 1492.632 Tx PPS: 126752 Elapsed: 1000 Mbps: 1492.643 Peak Mbps: 1492.643 Rx PPS: 126753 Elapsed: 2000 Mbps: 1496.660 Peak Mbps: 1496.660 Tx PPS: 127094 Elapsed: 2000 Mbps: 1496.672 Peak Mbps: 1496.672 Rx PPS: 127095 Elapsed: 3000 Mbps: 1501.110 Peak Mbps: 1501.110 Tx PPS: 127472 Elapsed: 3000 Mbps: 1501.193 Peak Mbps: 1501.193 Rx PPS: 127479 Elapsed: 4000 Mbps: 1498.284 Peak Mbps: 1501.110 Tx PPS: 127232 Elapsed: 4000 Mbps: 1498.249 Peak Mbps: 1501.193 Rx PPS: 127229 Elapsed: 5000 Mbps: 1500.409 Peak Mbps: 1501.110 Tx PPS: 127412 Elapsed: 5000 Mbps: 1498.943 Peak Mbps: 1501.193 Rx PPS: 127288 --- 127.0.0.1 tcpbench statistics --- 1123268480 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1492.632/1497.819/1501.110/3.033 Mbps Elapsed: 6002 Mbps: 1496.951 Peak Mbps: 1501.193 Rx PPS: 127118 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1123268480 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1492.643/1497.442/1501.193/2.609 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: 1488.015 Peak Mbps: 1488.015 Tx PPS: 126360 Elapsed: 1000 Mbps: 1488.027 Peak Mbps: 1488.027 Rx PPS: 126361 Elapsed: 2000 Mbps: 1474.582 Peak Mbps: 1488.015 Tx PPS: 125219 Elapsed: 2000 Mbps: 1474.652 Peak Mbps: 1488.027 Rx PPS: 125225 Elapsed: 3000 Mbps: 1476.981 Peak Mbps: 1488.015 Tx PPS: 125423 Elapsed: 3000 Mbps: 1477.099 Peak Mbps: 1488.027 Rx PPS: 125433 Elapsed: 4000 Mbps: 1459.588 Peak Mbps: 1488.015 Tx PPS: 123946 Elapsed: 4000 Mbps: 1459.553 Peak Mbps: 1488.027 Rx PPS: 123943 Elapsed: 5000 Mbps: 1471.764 Peak Mbps: 1488.015 Tx PPS: 124980 Elapsed: 5000 Mbps: 1471.788 Peak Mbps: 1488.027 Rx PPS: 124982 --- 127.0.0.1 tcpbench statistics --- 1105784064 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1459.588/1474.186/1488.015/9.145 Mbps Elapsed: 6002 Mbps: 1473.681 Peak Mbps: 1488.027 Rx PPS: 125142 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1105784064 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1459.553/1474.133/1488.027/8.371 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.57s