START sys/kern/sosplice/perf 2024-11-08T05:05:29Z ==== 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 132366920 1058.935 100.00% Conn: 1 Mbps: 1058.935 Peak Mbps: 1058.935 Avg Mbps: 1058.935 1000 132334516 1058.676 100.00% Conn: 1 Mbps: 1058.676 Peak Mbps: 1058.676 Avg Mbps: 1058.676 2000 129374982 1036.036 100.00% Conn: 1 Mbps: 1036.036 Peak Mbps: 1058.935 Avg Mbps: 1036.036 2000 129391664 1036.169 100.00% Conn: 1 Mbps: 1036.169 Peak Mbps: 1058.676 Avg Mbps: 1036.169 3000 128131338 1025.051 100.00% Conn: 1 Mbps: 1025.051 Peak Mbps: 1058.935 Avg Mbps: 1025.051 3000 128131118 1025.049 100.00% Conn: 1 Mbps: 1025.049 Peak Mbps: 1058.676 Avg Mbps: 1025.049 4001 126920314 1015.363 100.00% Conn: 1 Mbps: 1015.363 Peak Mbps: 1058.935 Avg Mbps: 1015.363 4001 126936256 1015.490 100.00% Conn: 1 Mbps: 1015.490 Peak Mbps: 1058.676 Avg Mbps: 1015.490 5000 127508158 1021.086 100.00% Conn: 1 Mbps: 1021.086 Peak Mbps: 1058.935 Avg Mbps: 1021.086 5001 127508158 1021.086 100.00% Conn: 1 Mbps: 1021.086 Peak Mbps: 1058.676 Avg Mbps: 1021.086 --- 127.0.0.1 tcpbench statistics --- 771892648 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1015.363/1031.294/1058.935/15.385 Mbps 6003 127542382 1019.320 100.00% Conn: 1 Mbps: 1019.320 Peak Mbps: 1058.676 Avg Mbps: 1019.320 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 771892648 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 1015.490/1029.298/1058.676/14.640 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 145717698 1165.742 100.00% Conn: 1 Mbps: 1165.742 Peak Mbps: 1165.742 Avg Mbps: 1165.742 1000 145717698 1165.742 100.00% Conn: 1 Mbps: 1165.742 Peak Mbps: 1165.742 Avg Mbps: 1165.742 2001 145841518 1166.732 100.00% Conn: 1 Mbps: 1166.732 Peak Mbps: 1166.732 Avg Mbps: 1166.732 2001 145694296 1165.554 100.00% Conn: 1 Mbps: 1165.554 Peak Mbps: 1165.742 Avg Mbps: 1165.554 3002 149322480 1194.580 100.00% 3001 149289764 1194.318 100.00% Conn: 1 Mbps: 1194.318 Peak Mbps: 1194.318 Avg Mbps: 1194.318 Conn: 1 Mbps: 1194.580 Peak Mbps: 1194.580 Avg Mbps: 1194.580 4003 149500490 1196.004 100.00% Conn: 1 Mbps: 1196.004 Peak Mbps: 1196.004 Avg Mbps: 1196.004 4003 149680428 1196.247 100.00% Conn: 1 Mbps: 1196.247 Peak Mbps: 1196.247 Avg Mbps: 1196.247 5003 150285222 1202.282 100.00% Conn: 1 Mbps: 1202.282 Peak Mbps: 1202.282 Avg Mbps: 1202.282 5004 150433692 1202.267 100.00% Conn: 1 Mbps: 1202.267 Peak Mbps: 1202.267 Avg Mbps: 1202.267 --- 127.0.0.1 tcpbench statistics --- 889073544 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 1165.742/1185.068/1202.282/15.595 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 889073544 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 1165.554/1184.826/1202.267/15.877 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: 269.988 Peak Mbps: 269.988 Tx PPS: 22927 Elapsed: 999 Mbps: 132.412 Peak Mbps: 132.412 Rx PPS: 11244 Elapsed: 2000 Mbps: 247.614 Peak Mbps: 269.988 Tx PPS: 21027 Elapsed: 2200 Mbps: 121.136 Peak Mbps: 132.412 Rx PPS: 10286 Elapsed: 3000 Mbps: 270.047 Peak Mbps: 270.047 Tx PPS: 22932 Elapsed: 3200 Mbps: 119.670 Peak Mbps: 132.412 Rx PPS: 10162 Elapsed: 4000 Mbps: 283.460 Peak Mbps: 283.460 Tx PPS: 24071 Elapsed: 4200 Mbps: 127.381 Peak Mbps: 132.412 Rx PPS: 10817 Elapsed: 5000 Mbps: 235.920 Peak Mbps: 283.460 Tx PPS: 20034 Elapsed: 5200 Mbps: 99.701 Peak Mbps: 132.412 Rx PPS: 8466 --- 127.0.0.1 tcpbench statistics --- 198430016 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 235.920/261.406/283.460/17.172 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 92535808 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 99.701/120.060/132.412/11.153 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: 225.781 Peak Mbps: 225.781 Tx PPS: 19173 Elapsed: 1000 Mbps: 131.444 Peak Mbps: 131.444 Rx PPS: 11162 Elapsed: 2000 Mbps: 233.493 Peak Mbps: 233.493 Tx PPS: 19827 Elapsed: 1999 Mbps: 123.371 Peak Mbps: 131.444 Rx PPS: 10476 Elapsed: 3000 Mbps: 225.216 Peak Mbps: 233.493 Tx PPS: 19125 Elapsed: 2999 Mbps: 158.788 Peak Mbps: 158.788 Rx PPS: 13484 Elapsed: 4000 Mbps: 235.673 Peak Mbps: 235.673 Tx PPS: 20013 Elapsed: 3999 Mbps: 121.968 Peak Mbps: 158.788 Rx PPS: 10357 Elapsed: 5000 Mbps: 246.154 Peak Mbps: 246.154 Tx PPS: 20903 Elapsed: 4999 Mbps: 104.206 Peak Mbps: 158.788 Rx PPS: 8849 --- 127.0.0.1 tcpbench statistics --- 174814720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 225.216/233.263/246.154/7.652 Mbps Elapsed: 6015 Mbps: 118.537 Peak Mbps: 158.788 Rx PPS: 10066 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 94980800 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 104.206/126.386/158.788/16.621 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m35.49s