START sys/kern/sosplice/perf 2025-01-07T02:27:17Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1902651290 15221.210 100.00% Conn: 1 Mbps: 15221.210 Peak Mbps: 15221.210 Avg Mbps: 15221.210 1000 1902651290 15221.210 100.00% Conn: 1 Mbps: 15221.210 Peak Mbps: 15221.210 Avg Mbps: 15221.210 2000 1914933508 15334.803 100.00% Conn: 1 Mbps: 15334.803 Peak Mbps: 15334.803 Avg Mbps: 15334.803 2000 1914966212 15319.730 100.00% Conn: 1 Mbps: 15319.730 Peak Mbps: 15319.730 Avg Mbps: 15319.730 3000 1918796300 15350.370 100.00% Conn: 1 Mbps: 15350.370 Peak Mbps: 15350.370 Avg Mbps: 15350.370 3000 1918861732 15350.894 100.00% Conn: 1 Mbps: 15350.894 Peak Mbps: 15350.894 Avg Mbps: 15350.894 4000 1922786488 15382.292 100.00% Conn: 1 Mbps: 15382.292 Peak Mbps: 15382.292 Avg Mbps: 15382.292 4000 1922819192 15382.554 100.00% Conn: 1 Mbps: 15382.554 Peak Mbps: 15382.554 Avg Mbps: 15382.554 5000 1921380192 15371.042 100.00% Conn: 1 Mbps: 15371.042 Peak Mbps: 15382.292 Avg Mbps: 15371.042 5000 1921412908 15371.303 100.00% Conn: 1 Mbps: 15371.303 Peak Mbps: 15382.554 Avg Mbps: 15371.303 --- 127.0.0.1 tcpbench statistics --- 11501711956 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15221.210/15331.943/15382.292/57.746 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11501711956 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15221.210/15329.138/15382.554/58.037 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 1493218816 11945.751 100.00% Conn: 1 Mbps: 11945.751 Peak Mbps: 11945.751 Avg Mbps: 11945.751 999 1493251520 11957.970 100.00% Conn: 1 Mbps: 11957.970 Peak Mbps: 11957.970 Avg Mbps: 11957.970 2000 1501642818 12013.143 100.00% Conn: 1 Mbps: 12013.143 Peak Mbps: 12013.143 Avg Mbps: 12013.143 2000 1501642830 12013.143 100.00% Conn: 1 Mbps: 12013.143 Peak Mbps: 12013.143 Avg Mbps: 12013.143 3000 1498683488 11989.468 100.00% Conn: 1 Mbps: 11989.468 Peak Mbps: 12013.143 Avg Mbps: 11989.468 3000 1498683488 11989.468 100.00% Conn: 1 Mbps: 11989.468 Peak Mbps: 12013.143 Avg Mbps: 11989.468 4000 1499403736 11995.230 100.00% Conn: 1 Mbps: 11995.230 Peak Mbps: 12013.143 Avg Mbps: 11995.230 4000 1499403736 11995.230 100.00% Conn: 1 Mbps: 11995.230 Peak Mbps: 12013.143 Avg Mbps: 11995.230 5000 1498960822 11991.687 100.00% Conn: 1 Mbps: 11991.687 Peak Mbps: 12013.143 Avg Mbps: 11991.687 5000 1498928106 12003.428 100.00% Conn: 1 Mbps: 12003.428 Peak Mbps: 12013.143 Avg Mbps: 12003.428 --- 127.0.0.1 tcpbench statistics --- 8990233668 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11945.751/11987.055/12013.143/22.274 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8990233668 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11957.970/11991.848/12013.143/18.721 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: 3130.544 Peak Mbps: 3130.544 Tx PPS: 265841 Elapsed: 1000 Mbps: 2343.318 Peak Mbps: 2343.318 Rx PPS: 198991 Elapsed: 2000 Mbps: 2984.727 Peak Mbps: 3130.544 Tx PPS: 253458 Elapsed: 1999 Mbps: 2309.829 Peak Mbps: 2343.318 Rx PPS: 196147 Elapsed: 3048 Mbps: 2321.366 Peak Mbps: 2343.318 Rx PPS: 197126 Elapsed: 3048 Mbps: 3049.119 Peak Mbps: 3130.544 Tx PPS: 258926 Elapsed: 4048 Mbps: 2408.328 Peak Mbps: 2408.328 Rx PPS: 204511 Elapsed: 4048 Mbps: 3207.528 Peak Mbps: 3207.528 Tx PPS: 272378 Elapsed: 5048 Mbps: 2318.624 Peak Mbps: 2408.328 Rx PPS: 196894 Elapsed: 5048 Mbps: 2976.478 Peak Mbps: 3207.528 Tx PPS: 252758 --- 127.0.0.1 tcpbench statistics --- 2290502656 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2976.478/3069.679/3207.528/88.355 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1752985664 bytes received over 6.022 seconds bandwidth min/avg/max/std-dev = 2309.829/2340.293/2408.328/35.759 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: 3078.011 Peak Mbps: 3078.011 Tx PPS: 261380 Elapsed: 1000 Mbps: 2281.435 Peak Mbps: 2281.435 Rx PPS: 193736 Elapsed: 2000 Mbps: 2990.715 Peak Mbps: 3078.011 Tx PPS: 253966 Elapsed: 2000 Mbps: 2220.183 Peak Mbps: 2281.435 Rx PPS: 188534 Elapsed: 3000 Mbps: 2994.484 Peak Mbps: 3078.011 Tx PPS: 254287 Elapsed: 3000 Mbps: 2180.067 Peak Mbps: 2281.435 Rx PPS: 185128 Elapsed: 4000 Mbps: 2942.881 Peak Mbps: 3078.011 Tx PPS: 249905 Elapsed: 4000 Mbps: 2208.294 Peak Mbps: 2281.435 Rx PPS: 187525 Elapsed: 5034 Mbps: 2250.116 Peak Mbps: 2281.435 Rx PPS: 191076 Elapsed: 5034 Mbps: 2987.699 Peak Mbps: 3078.011 Tx PPS: 253710 --- 127.0.0.1 tcpbench statistics --- 2261538112 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2942.881/2998.758/3078.011/43.837 Mbps Elapsed: 6039 Mbps: 2266.716 Peak Mbps: 2281.435 Rx PPS: 192486 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1686376192 bytes received over 6.042 seconds bandwidth min/avg/max/std-dev = 2180.067/2234.469/2281.435/34.974 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.67s