START sys/kern/sosplice/perf 2024-02-25T19:44:43Z ==== 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 1131035056 9048.280 100.00% Conn: 1 Mbps: 9048.280 Peak Mbps: 9048.280 Avg Mbps: 9048.280 1000 1130972236 9047.778 100.00% Conn: 1 Mbps: 9047.778 Peak Mbps: 9047.778 Avg Mbps: 9047.778 2000 1139310756 9123.610 100.00% Conn: 1 Mbps: 9123.610 Peak Mbps: 9123.610 Avg Mbps: 9123.610 2000 1139358202 9114.866 100.00% Conn: 1 Mbps: 9114.866 Peak Mbps: 9114.866 Avg Mbps: 9114.866 3000 1134391146 9075.129 100.00% Conn: 1 Mbps: 9075.129 Peak Mbps: 9123.610 Avg Mbps: 9075.129 3000 1134402366 9075.219 100.00% Conn: 1 Mbps: 9075.219 Peak Mbps: 9114.866 Avg Mbps: 9075.219 4000 1134472192 9075.778 100.00% Conn: 1 Mbps: 9075.778 Peak Mbps: 9123.610 Avg Mbps: 9075.778 4000 1134461480 9075.692 100.00% Conn: 1 Mbps: 9075.692 Peak Mbps: 9114.866 Avg Mbps: 9075.692 5000 1138608430 9117.985 100.00% Conn: 1 Mbps: 9117.985 Peak Mbps: 9123.610 Avg Mbps: 9117.985 5000 1138679158 9109.433 100.00% Conn: 1 Mbps: 9109.433 Peak Mbps: 9114.866 Avg Mbps: 9109.433 --- 127.0.0.1 tcpbench statistics --- 6813630056 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9048.280/9088.156/9123.610/28.495 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6813630056 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9047.778/9084.598/9114.866/24.722 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 1244227124 9953.817 100.00% Conn: 1 Mbps: 9953.817 Peak Mbps: 9953.817 Avg Mbps: 9953.817 1000 1242668200 9941.346 100.00% Conn: 1 Mbps: 9941.346 Peak Mbps: 9941.346 Avg Mbps: 9941.346 2000 1251232980 10009.864 100.00% Conn: 1 Mbps: 10009.864 Peak Mbps: 10009.864 Avg Mbps: 10009.864 2000 1251213312 10009.706 100.00% Conn: 1 Mbps: 10009.706 Peak Mbps: 10009.706 Avg Mbps: 10009.706 3000 1248085776 9994.681 100.00% Conn: 1 Mbps: 9994.681 Peak Mbps: 10009.864 Avg Mbps: 9994.681 3000 1248329728 9986.638 100.00% Conn: 1 Mbps: 9986.638 Peak Mbps: 10009.706 Avg Mbps: 9986.638 4000 1255918686 10047.349 100.00% Conn: 1 Mbps: 10047.349 Peak Mbps: 10047.349 Avg Mbps: 10047.349 4000 1255931904 10047.455 100.00% Conn: 1 Mbps: 10047.455 Peak Mbps: 10047.455 Avg Mbps: 10047.455 5000 1249810584 9998.485 100.00% Conn: 1 Mbps: 9998.485 Peak Mbps: 10047.349 Avg Mbps: 9998.485 5000 1249902592 9999.221 100.00% Conn: 1 Mbps: 9999.221 Peak Mbps: 10047.455 Avg Mbps: 9999.221 --- 127.0.0.1 tcpbench statistics --- 7501156926 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9953.817/10000.839/10047.349/29.997 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7501156926 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9941.346/9996.873/10047.455/34.400 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: 1139.505 Peak Mbps: 1139.505 Tx PPS: 96765 Elapsed: 999 Mbps: 1140.716 Peak Mbps: 1140.716 Rx PPS: 96867 Elapsed: 2000 Mbps: 1142.802 Peak Mbps: 1142.802 Tx PPS: 97045 Elapsed: 1999 Mbps: 1142.814 Peak Mbps: 1142.814 Rx PPS: 97046 Elapsed: 3000 Mbps: 1144.015 Peak Mbps: 1144.015 Tx PPS: 97148 Elapsed: 2999 Mbps: 1144.015 Peak Mbps: 1144.015 Rx PPS: 97148 Elapsed: 4000 Mbps: 1142.508 Peak Mbps: 1144.015 Tx PPS: 97020 Elapsed: 4000 Mbps: 1142.472 Peak Mbps: 1144.015 Rx PPS: 97017 Elapsed: 5000 Mbps: 1145.243 Peak Mbps: 1145.243 Tx PPS: 97252 Elapsed: 4999 Mbps: 1145.243 Peak Mbps: 1145.243 Rx PPS: 97252 --- 127.0.0.1 tcpbench statistics --- 857230976 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1139.505/1142.814/1145.243/1.918 Mbps Elapsed: 6002 Mbps: 1143.729 Peak Mbps: 1145.243 Rx PPS: 97123 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 857230976 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1140.716/1143.165/1145.243/1.412 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: 1077.563 Peak Mbps: 1077.563 Tx PPS: 91505 Elapsed: 1000 Mbps: 1077.622 Peak Mbps: 1077.622 Rx PPS: 91510 Elapsed: 2000 Mbps: 1076.095 Peak Mbps: 1077.563 Tx PPS: 91380 Elapsed: 2000 Mbps: 1076.154 Peak Mbps: 1077.622 Rx PPS: 91385 Elapsed: 3000 Mbps: 1075.255 Peak Mbps: 1077.563 Tx PPS: 91309 Elapsed: 3000 Mbps: 1075.243 Peak Mbps: 1077.622 Rx PPS: 91308 Elapsed: 4000 Mbps: 1079.396 Peak Mbps: 1079.396 Tx PPS: 91660 Elapsed: 4000 Mbps: 1079.396 Peak Mbps: 1079.396 Rx PPS: 91660 Elapsed: 5000 Mbps: 1077.669 Peak Mbps: 1079.396 Tx PPS: 91514 Elapsed: 5000 Mbps: 1077.669 Peak Mbps: 1079.396 Rx PPS: 91514 --- 127.0.0.1 tcpbench statistics --- 807556864 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1075.255/1077.196/1079.396/1.427 Mbps Elapsed: 6002 Mbps: 1074.378 Peak Mbps: 1079.396 Rx PPS: 91234 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 807556864 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1074.378/1076.744/1079.396/1.676 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s