START sys/kern/sosplice/perf 2024-06-25T20:07:25Z ==== 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 1212754076 9702.033 100.00% Conn: 1 Mbps: 9702.033 Peak Mbps: 9702.033 Avg Mbps: 9702.033 999 1212672910 9711.094 100.00% Conn: 1 Mbps: 9711.094 Peak Mbps: 9711.094 Avg Mbps: 9711.094 2000 1218837812 9750.702 100.00% Conn: 1 Mbps: 9750.702 Peak Mbps: 9750.702 Avg Mbps: 9750.702 2000 1218838332 9750.707 100.00% Conn: 1 Mbps: 9750.707 Peak Mbps: 9750.707 Avg Mbps: 9750.707 3000 1222112836 9786.689 100.00% Conn: 1 Mbps: 9786.689 Peak Mbps: 9786.689 Avg Mbps: 9786.689 3000 1222193482 9777.548 100.00% Conn: 1 Mbps: 9777.548 Peak Mbps: 9777.548 Avg Mbps: 9777.548 4000 1218266778 9746.134 100.00% Conn: 1 Mbps: 9746.134 Peak Mbps: 9786.689 Avg Mbps: 9746.134 4000 1218223176 9755.541 100.00% Conn: 1 Mbps: 9755.541 Peak Mbps: 9777.548 Avg Mbps: 9755.541 5000 1218433698 9747.470 100.00% Conn: 1 Mbps: 9747.470 Peak Mbps: 9786.689 Avg Mbps: 9747.470 5000 1218466550 9747.732 100.00% Conn: 1 Mbps: 9747.732 Peak Mbps: 9777.548 Avg Mbps: 9747.732 --- 127.0.0.1 tcpbench statistics --- 7308316206 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9702.033/9746.606/9786.689/26.875 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7308316206 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9711.094/9748.524/9777.548/21.438 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 1337672988 10701.384 100.00% Conn: 1 Mbps: 10701.384 Peak Mbps: 10701.384 Avg Mbps: 10701.384 1000 1336103552 10688.828 100.00% Conn: 1 Mbps: 10688.828 Peak Mbps: 10688.828 Avg Mbps: 10688.828 2000 1346639532 10783.900 100.00% Conn: 1 Mbps: 10783.900 Peak Mbps: 10783.900 Avg Mbps: 10783.900 2000 1346371584 10781.754 100.00% Conn: 1 Mbps: 10781.754 Peak Mbps: 10781.754 Avg Mbps: 10781.754 3000 1341923288 10735.386 100.00% Conn: 1 Mbps: 10735.386 Peak Mbps: 10783.900 Avg Mbps: 10735.386 3000 1341915136 10735.321 100.00% Conn: 1 Mbps: 10735.321 Peak Mbps: 10781.754 Avg Mbps: 10735.321 4000 1345787202 10777.075 100.00% Conn: 1 Mbps: 10777.075 Peak Mbps: 10783.900 Avg Mbps: 10777.075 4000 1346109440 10768.876 100.00% Conn: 1 Mbps: 10768.876 Peak Mbps: 10781.754 Avg Mbps: 10768.876 5000 1351420686 10811.365 100.00% Conn: 1 Mbps: 10811.365 Peak Mbps: 10811.365 Avg Mbps: 10811.365 5000 1351352320 10810.819 100.00% Conn: 1 Mbps: 10810.819 Peak Mbps: 10810.819 Avg Mbps: 10810.819 --- 127.0.0.1 tcpbench statistics --- 8076649122 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10701.384/10761.822/10811.365/38.798 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8076649122 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10688.828/10757.120/10810.819/41.875 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: 1225.575 Peak Mbps: 1225.575 Tx PPS: 104074 Elapsed: 1000 Mbps: 1225.599 Peak Mbps: 1225.599 Rx PPS: 104076 Elapsed: 2000 Mbps: 1232.083 Peak Mbps: 1232.083 Tx PPS: 104626 Elapsed: 2000 Mbps: 1232.177 Peak Mbps: 1232.177 Rx PPS: 104634 Elapsed: 3000 Mbps: 1233.383 Peak Mbps: 1233.383 Tx PPS: 104737 Elapsed: 3000 Mbps: 1233.395 Peak Mbps: 1233.395 Rx PPS: 104738 Elapsed: 4000 Mbps: 1233.607 Peak Mbps: 1233.607 Tx PPS: 104756 Elapsed: 4000 Mbps: 1233.595 Peak Mbps: 1233.595 Rx PPS: 104755 Elapsed: 5000 Mbps: 1232.311 Peak Mbps: 1233.607 Tx PPS: 104646 Elapsed: 5000 Mbps: 1232.323 Peak Mbps: 1233.595 Rx PPS: 104647 --- 127.0.0.1 tcpbench statistics --- 923451840 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1225.575/1231.392/1233.607/2.967 Mbps Elapsed: 6002 Mbps: 1229.299 Peak Mbps: 1233.595 Rx PPS: 104390 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 923451840 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1225.599/1231.065/1233.595/2.818 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: 1267.875 Peak Mbps: 1267.875 Tx PPS: 107666 Elapsed: 1000 Mbps: 1259.337 Peak Mbps: 1259.337 Rx PPS: 106941 Elapsed: 2000 Mbps: 1269.215 Peak Mbps: 1269.215 Tx PPS: 107779 Elapsed: 2000 Mbps: 1259.608 Peak Mbps: 1259.608 Rx PPS: 106963 Elapsed: 3000 Mbps: 1267.781 Peak Mbps: 1269.215 Tx PPS: 107658 Elapsed: 3000 Mbps: 1260.162 Peak Mbps: 1260.162 Rx PPS: 107011 Elapsed: 4000 Mbps: 1267.557 Peak Mbps: 1269.215 Tx PPS: 107639 Elapsed: 4000 Mbps: 1259.078 Peak Mbps: 1260.162 Rx PPS: 106919 Elapsed: 5000 Mbps: 1266.132 Peak Mbps: 1269.215 Tx PPS: 107518 Elapsed: 5000 Mbps: 1252.813 Peak Mbps: 1260.162 Rx PPS: 106387 --- 127.0.0.1 tcpbench statistics --- 950554304 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1266.132/1267.712/1269.215/0.981 Mbps Elapsed: 6002 Mbps: 1252.675 Peak Mbps: 1260.162 Rx PPS: 106375 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 943114816 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1252.675/1257.279/1260.162/3.223 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.46s