START sys/kern/sosplice/perf 2025-03-11T19:24:41Z ==== 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 1383737682 11069.901 100.00% Conn: 1 Mbps: 11069.901 Peak Mbps: 11069.901 Avg Mbps: 11069.901 1000 1383673966 11069.392 100.00% Conn: 1 Mbps: 11069.392 Peak Mbps: 11069.392 Avg Mbps: 11069.392 2000 1396480508 11171.844 100.00% Conn: 1 Mbps: 11171.844 Peak Mbps: 11171.844 Avg Mbps: 11171.844 2000 1396511612 11172.093 100.00% Conn: 1 Mbps: 11172.093 Peak Mbps: 11172.093 Avg Mbps: 11172.093 3000 1389517080 11127.264 100.00% Conn: 1 Mbps: 11127.264 Peak Mbps: 11171.844 Avg Mbps: 11127.264 3000 1389517184 11116.137 100.00% Conn: 1 Mbps: 11116.137 Peak Mbps: 11172.093 Avg Mbps: 11116.137 4000 1392474706 11139.798 100.00% Conn: 1 Mbps: 11139.798 Peak Mbps: 11171.844 Avg Mbps: 11139.798 4000 1392425840 11139.407 100.00% Conn: 1 Mbps: 11139.407 Peak Mbps: 11172.093 Avg Mbps: 11139.407 5000 1393194258 11156.711 100.00% Conn: 1 Mbps: 11156.711 Peak Mbps: 11171.844 Avg Mbps: 11156.711 5000 1393226766 11145.814 100.00% Conn: 1 Mbps: 11145.814 Peak Mbps: 11172.093 Avg Mbps: 11145.814 --- 127.0.0.1 tcpbench statistics --- 8351261506 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11069.901/11133.104/11171.844/35.019 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8351261506 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11069.392/11128.569/11172.093/34.542 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 1538828758 12310.630 100.00% Conn: 1 Mbps: 12310.630 Peak Mbps: 12310.630 Avg Mbps: 12310.630 1000 1538894178 12311.153 100.00% Conn: 1 Mbps: 12311.153 Peak Mbps: 12311.153 Avg Mbps: 12311.153 2000 1558545604 12468.365 100.00% Conn: 1 Mbps: 12468.365 Peak Mbps: 12468.365 Avg Mbps: 12468.365 2000 1558545616 12468.365 100.00% Conn: 1 Mbps: 12468.365 Peak Mbps: 12468.365 Avg Mbps: 12468.365 3000 1565379116 12523.033 100.00% Conn: 1 Mbps: 12523.033 Peak Mbps: 12523.033 Avg Mbps: 12523.033 3000 1565313684 12522.509 100.00% Conn: 1 Mbps: 12522.509 Peak Mbps: 12522.509 Avg Mbps: 12522.509 4000 1558337756 12466.702 100.00% Conn: 1 Mbps: 12466.702 Peak Mbps: 12523.033 Avg Mbps: 12466.702 4000 1558239608 12465.917 100.00% Conn: 1 Mbps: 12465.917 Peak Mbps: 12522.509 Avg Mbps: 12465.917 5000 1563660582 12521.806 100.00% Conn: 1 Mbps: 12521.806 Peak Mbps: 12523.033 Avg Mbps: 12521.806 5000 1563758730 12510.070 100.00% Conn: 1 Mbps: 12510.070 Peak Mbps: 12522.509 Avg Mbps: 12510.070 --- 127.0.0.1 tcpbench statistics --- 9340242456 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12310.630/12458.107/12523.033/77.719 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9340242456 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12311.153/12455.603/12522.509/75.602 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: 1961.999 Peak Mbps: 1961.999 Tx PPS: 166610 Elapsed: 1000 Mbps: 1962.094 Peak Mbps: 1962.094 Rx PPS: 166618 Elapsed: 2000 Mbps: 1967.052 Peak Mbps: 1967.052 Tx PPS: 167039 Elapsed: 1999 Mbps: 1967.111 Peak Mbps: 1967.111 Rx PPS: 167044 Elapsed: 3000 Mbps: 1963.848 Peak Mbps: 1967.052 Tx PPS: 166767 Elapsed: 2999 Mbps: 1963.872 Peak Mbps: 1967.111 Rx PPS: 166769 Elapsed: 4000 Mbps: 1966.356 Peak Mbps: 1967.052 Tx PPS: 166980 Elapsed: 3999 Mbps: 1966.333 Peak Mbps: 1967.111 Rx PPS: 166978 Elapsed: 5000 Mbps: 1965.049 Peak Mbps: 1967.052 Tx PPS: 166869 Elapsed: 4999 Mbps: 1965.049 Peak Mbps: 1967.111 Rx PPS: 166869 --- 127.0.0.1 tcpbench statistics --- 1473401344 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1961.999/1964.861/1967.052/1.805 Mbps Elapsed: 6002 Mbps: 1960.798 Peak Mbps: 1967.111 Rx PPS: 166507 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1473401344 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1960.798/1964.209/1967.111/2.231 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: 1873.467 Peak Mbps: 1873.467 Tx PPS: 159092 Elapsed: 1000 Mbps: 1873.526 Peak Mbps: 1873.526 Rx PPS: 159097 Elapsed: 2000 Mbps: 1876.180 Peak Mbps: 1876.180 Tx PPS: 159322 Elapsed: 1999 Mbps: 1876.274 Peak Mbps: 1876.274 Rx PPS: 159330 Elapsed: 3000 Mbps: 1875.787 Peak Mbps: 1876.180 Tx PPS: 159289 Elapsed: 3000 Mbps: 1875.775 Peak Mbps: 1876.274 Rx PPS: 159288 Elapsed: 4000 Mbps: 1875.493 Peak Mbps: 1876.180 Tx PPS: 159264 Elapsed: 4000 Mbps: 1875.516 Peak Mbps: 1876.274 Rx PPS: 159266 Elapsed: 5000 Mbps: 1877.130 Peak Mbps: 1877.130 Tx PPS: 159403 Elapsed: 5000 Mbps: 1877.106 Peak Mbps: 1877.106 Rx PPS: 159401 --- 127.0.0.1 tcpbench statistics --- 1406532800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1873.467/1875.611/1877.130/1.206 Mbps Elapsed: 6002 Mbps: 1872.196 Peak Mbps: 1877.106 Rx PPS: 158984 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1406532800 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1872.196/1875.066/1877.106/1.680 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s