START sys/kern/sosplice/perf 2025-04-03T18:25:20Z ==== 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 1390727680 11125.821 100.00% Conn: 1 Mbps: 11125.821 Peak Mbps: 11125.821 Avg Mbps: 11125.821 999 1390662724 11136.438 100.00% Conn: 1 Mbps: 11136.438 Peak Mbps: 11136.438 Avg Mbps: 11136.438 2000 1399164228 11193.314 100.00% Conn: 1 Mbps: 11193.314 Peak Mbps: 11193.314 Avg Mbps: 11193.314 2000 1399279210 11194.234 100.00% Conn: 1 Mbps: 11194.234 Peak Mbps: 11194.234 Avg Mbps: 11194.234 3000 1398228586 11197.026 100.00% Conn: 1 Mbps: 11197.026 Peak Mbps: 11197.026 Avg Mbps: 11197.026 3000 1398310376 11186.483 100.00% Conn: 1 Mbps: 11186.483 Peak Mbps: 11193.314 Avg Mbps: 11186.483 4000 1401160468 11209.284 100.00% Conn: 1 Mbps: 11209.284 Peak Mbps: 11209.284 Avg Mbps: 11209.284 4000 1401129840 11209.039 100.00% Conn: 1 Mbps: 11209.039 Peak Mbps: 11209.039 Avg Mbps: 11209.039 5000 1400369490 11202.956 100.00% Conn: 1 Mbps: 11202.956 Peak Mbps: 11209.284 Avg Mbps: 11202.956 5000 1400400326 11203.203 100.00% Conn: 1 Mbps: 11203.203 Peak Mbps: 11209.039 Avg Mbps: 11203.203 --- 127.0.0.1 tcpbench statistics --- 8388663686 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11125.821/11185.864/11209.284/30.464 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8388663686 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11136.438/11185.695/11209.039/25.832 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 1541830332 12334.643 100.00% Conn: 1 Mbps: 12334.643 Peak Mbps: 12334.643 Avg Mbps: 12334.643 1000 1542108834 12336.871 100.00% Conn: 1 Mbps: 12336.871 Peak Mbps: 12336.871 Avg Mbps: 12336.871 2000 1559058414 12472.467 100.00% Conn: 1 Mbps: 12472.467 Peak Mbps: 12472.467 Avg Mbps: 12472.467 2000 1559123846 12472.991 100.00% Conn: 1 Mbps: 12472.991 Peak Mbps: 12472.991 Avg Mbps: 12472.991 3000 1563257580 12506.061 100.00% Conn: 1 Mbps: 12506.061 Peak Mbps: 12506.061 Avg Mbps: 12506.061 3000 1563191732 12518.052 100.00% Conn: 1 Mbps: 12518.052 Peak Mbps: 12518.052 Avg Mbps: 12518.052 4000 1562294814 12498.359 100.00% Conn: 1 Mbps: 12498.359 Peak Mbps: 12506.061 Avg Mbps: 12498.359 4000 1562621558 12500.972 100.00% Conn: 1 Mbps: 12500.972 Peak Mbps: 12518.052 Avg Mbps: 12500.972 5000 1558465648 12467.725 100.00% Conn: 1 Mbps: 12467.725 Peak Mbps: 12506.061 Avg Mbps: 12467.725 5000 1558351546 12479.292 100.00% Conn: 1 Mbps: 12479.292 Peak Mbps: 12518.052 Avg Mbps: 12479.292 --- 127.0.0.1 tcpbench statistics --- 9344398050 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12336.871/12461.635/12518.052/64.401 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9344398050 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12334.643/12455.851/12506.061/62.348 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: 1972.303 Peak Mbps: 1972.303 Tx PPS: 167485 Elapsed: 999 Mbps: 1974.396 Peak Mbps: 1974.396 Rx PPS: 167662 Elapsed: 2000 Mbps: 1978.498 Peak Mbps: 1978.498 Tx PPS: 168011 Elapsed: 1999 Mbps: 1978.557 Peak Mbps: 1978.557 Rx PPS: 168016 Elapsed: 3000 Mbps: 1979.675 Peak Mbps: 1979.675 Tx PPS: 168111 Elapsed: 2999 Mbps: 1981.633 Peak Mbps: 1981.633 Rx PPS: 168277 Elapsed: 4000 Mbps: 1980.985 Peak Mbps: 1980.985 Tx PPS: 168222 Elapsed: 3999 Mbps: 1979.027 Peak Mbps: 1981.633 Rx PPS: 168056 Elapsed: 5000 Mbps: 1977.779 Peak Mbps: 1980.985 Tx PPS: 167950 Elapsed: 4999 Mbps: 1977.756 Peak Mbps: 1981.633 Rx PPS: 167948 --- 127.0.0.1 tcpbench statistics --- 1482686720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1972.303/1977.848/1980.985/2.978 Mbps Elapsed: 6002 Mbps: 1972.116 Peak Mbps: 1981.633 Rx PPS: 167469 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1482686720 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1972.116/1977.247/1981.633/3.132 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: 1874.598 Peak Mbps: 1874.598 Tx PPS: 159188 Elapsed: 1000 Mbps: 1874.669 Peak Mbps: 1874.669 Rx PPS: 159194 Elapsed: 2000 Mbps: 1878.879 Peak Mbps: 1878.879 Tx PPS: 159551 Elapsed: 2000 Mbps: 1877.094 Peak Mbps: 1877.094 Rx PPS: 159400 Elapsed: 3000 Mbps: 1873.491 Peak Mbps: 1878.879 Tx PPS: 159094 Elapsed: 3000 Mbps: 1873.491 Peak Mbps: 1877.094 Rx PPS: 159094 Elapsed: 4000 Mbps: 1877.483 Peak Mbps: 1878.879 Tx PPS: 159433 Elapsed: 4000 Mbps: 1877.483 Peak Mbps: 1877.483 Rx PPS: 159433 Elapsed: 5000 Mbps: 1877.507 Peak Mbps: 1878.879 Tx PPS: 159435 Elapsed: 5000 Mbps: 1877.518 Peak Mbps: 1877.518 Rx PPS: 159436 --- 127.0.0.1 tcpbench statistics --- 1407034752 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1873.491/1876.391/1878.879/2.013 Mbps Elapsed: 6002 Mbps: 1872.278 Peak Mbps: 1877.518 Rx PPS: 158991 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1407034752 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1872.278/1875.422/1877.518/2.066 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s