START sys/kern/sosplice/perf 2024-06-05T19:55:51Z ==== 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 1237844716 9902.758 100.00% Conn: 1 Mbps: 9902.758 Peak Mbps: 9902.758 Avg Mbps: 9902.758 999 1237772536 9912.092 100.00% Conn: 1 Mbps: 9912.092 Peak Mbps: 9912.092 Avg Mbps: 9912.092 2000 1241809000 9934.472 100.00% Conn: 1 Mbps: 9934.472 Peak Mbps: 9934.472 Avg Mbps: 9934.472 2000 1241739742 9933.918 100.00% Conn: 1 Mbps: 9933.918 Peak Mbps: 9933.918 Avg Mbps: 9933.918 3000 1240286386 9922.291 100.00% Conn: 1 Mbps: 9922.291 Peak Mbps: 9934.472 Avg Mbps: 9922.291 3000 1240346878 9922.775 100.00% Conn: 1 Mbps: 9922.775 Peak Mbps: 9933.918 Avg Mbps: 9922.775 4000 1243602684 9948.821 100.00% Conn: 1 Mbps: 9948.821 Peak Mbps: 9948.821 Avg Mbps: 9948.821 4000 1243604120 9948.833 100.00% Conn: 1 Mbps: 9948.833 Peak Mbps: 9948.833 Avg Mbps: 9948.833 5000 1242737170 9951.849 100.00% Conn: 1 Mbps: 9951.849 Peak Mbps: 9951.849 Avg Mbps: 9951.849 5000 1242878642 9943.029 100.00% Conn: 1 Mbps: 9943.029 Peak Mbps: 9948.833 Avg Mbps: 9943.029 --- 127.0.0.1 tcpbench statistics --- 7448624674 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9902.758/9932.038/9951.849/18.069 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7448624674 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9912.092/9932.129/9948.833/13.342 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 1368779512 10950.236 100.00% Conn: 1 Mbps: 10950.236 Peak Mbps: 10950.236 Avg Mbps: 10950.236 1000 1366945384 10935.563 100.00% Conn: 1 Mbps: 10935.563 Peak Mbps: 10935.563 Avg Mbps: 10935.563 2000 1375964546 11007.716 100.00% Conn: 1 Mbps: 11007.716 Peak Mbps: 11007.716 Avg Mbps: 11007.716 2000 1376256000 11010.048 100.00% Conn: 1 Mbps: 11010.048 Peak Mbps: 11010.048 Avg Mbps: 11010.048 3000 1374635484 10997.084 100.00% Conn: 1 Mbps: 10997.084 Peak Mbps: 11007.716 Avg Mbps: 10997.084 3000 1374683136 10997.465 100.00% Conn: 1 Mbps: 10997.465 Peak Mbps: 11010.048 Avg Mbps: 10997.465 4000 1373402742 10987.222 100.00% Conn: 1 Mbps: 10987.222 Peak Mbps: 11007.716 Avg Mbps: 10987.222 4000 1373372416 10986.979 100.00% Conn: 1 Mbps: 10986.979 Peak Mbps: 11010.048 Avg Mbps: 10986.979 5000 1375807930 11017.481 100.00% Conn: 1 Mbps: 11017.481 Peak Mbps: 11017.481 Avg Mbps: 11017.481 5000 1375731712 11016.871 100.00% Conn: 1 Mbps: 11016.871 Peak Mbps: 11016.871 Avg Mbps: 11016.871 --- 127.0.0.1 tcpbench statistics --- 8245976412 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 10950.236/10991.948/11017.481/23.191 Mbps 6000 1378615296 11039.962 100.00% Conn: 1 Mbps: 11039.962 Peak Mbps: 11039.962 Avg Mbps: 11039.962 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8245976412 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10935.563/10997.815/11039.962/32.357 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: 1213.799 Peak Mbps: 1213.799 Tx PPS: 103074 Elapsed: 1000 Mbps: 1213.823 Peak Mbps: 1213.823 Rx PPS: 103076 Elapsed: 2000 Mbps: 1216.323 Peak Mbps: 1216.323 Tx PPS: 103288 Elapsed: 1999 Mbps: 1216.370 Peak Mbps: 1216.370 Rx PPS: 103292 Elapsed: 3000 Mbps: 1221.136 Peak Mbps: 1221.136 Tx PPS: 103697 Elapsed: 2999 Mbps: 1221.124 Peak Mbps: 1221.124 Rx PPS: 103696 Elapsed: 4000 Mbps: 1218.981 Peak Mbps: 1221.136 Tx PPS: 103514 Elapsed: 3999 Mbps: 1218.981 Peak Mbps: 1221.124 Rx PPS: 103514 Elapsed: 5000 Mbps: 1220.170 Peak Mbps: 1221.136 Tx PPS: 103615 Elapsed: 5000 Mbps: 1220.170 Peak Mbps: 1221.124 Rx PPS: 103615 --- 127.0.0.1 tcpbench statistics --- 913620352 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1213.799/1218.082/1221.136/2.681 Mbps Elapsed: 6002 Mbps: 1217.276 Peak Mbps: 1221.124 Rx PPS: 103369 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 913620352 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1213.823/1217.957/1221.124/2.451 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: 1308.478 Peak Mbps: 1308.478 Tx PPS: 111114 Elapsed: 1000 Mbps: 1237.304 Peak Mbps: 1237.304 Rx PPS: 105070 Elapsed: 2000 Mbps: 1311.120 Peak Mbps: 1311.120 Tx PPS: 111338 Elapsed: 2000 Mbps: 1215.887 Peak Mbps: 1237.304 Rx PPS: 103251 Elapsed: 3000 Mbps: 1308.785 Peak Mbps: 1311.120 Tx PPS: 111140 Elapsed: 3000 Mbps: 1226.529 Peak Mbps: 1237.304 Rx PPS: 104155 Elapsed: 4000 Mbps: 1309.786 Peak Mbps: 1311.120 Tx PPS: 111225 Elapsed: 4000 Mbps: 1255.710 Peak Mbps: 1255.710 Rx PPS: 106633 Elapsed: 5000 Mbps: 1314.826 Peak Mbps: 1314.826 Tx PPS: 111653 Elapsed: 5000 Mbps: 1213.564 Peak Mbps: 1255.710 Rx PPS: 103054 --- 127.0.0.1 tcpbench statistics --- 982046272 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1308.478/1310.599/1314.826/2.306 Mbps Elapsed: 6002 Mbps: 1288.297 Peak Mbps: 1288.297 Rx PPS: 109400 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 929831488 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1213.564/1239.549/1288.297/25.972 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s