START sys/kern/sosplice/perf 2025-03-10T19:23:21Z ==== 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 999 1418663956 11360.672 100.00% Conn: 1 Mbps: 11360.672 Peak Mbps: 11360.672 Avg Mbps: 11360.672 1000 1418876610 11351.013 100.00% Conn: 1 Mbps: 11351.013 Peak Mbps: 11351.013 Avg Mbps: 11351.013 2000 1429932766 11450.913 100.00% Conn: 1 Mbps: 11450.913 Peak Mbps: 11450.913 Avg Mbps: 11450.913 1999 1430079988 11452.092 100.00% Conn: 1 Mbps: 11452.092 Peak Mbps: 11452.092 Avg Mbps: 11452.092 3000 1432740982 11473.401 100.00% Conn: 1 Mbps: 11473.401 Peak Mbps: 11473.401 Avg Mbps: 11473.401 3000 1432727228 11461.818 100.00% Conn: 1 Mbps: 11461.818 Peak Mbps: 11461.818 Avg Mbps: 11461.818 4000 1429732878 11449.312 100.00% Conn: 1 Mbps: 11449.312 Peak Mbps: 11461.818 Avg Mbps: 11449.312 4000 1429864774 11438.918 100.00% Conn: 1 Mbps: 11438.918 Peak Mbps: 11473.401 Avg Mbps: 11438.918 5000 1430744566 11445.957 100.00% Conn: 1 Mbps: 11445.957 Peak Mbps: 11461.818 Avg Mbps: 11445.957 5000 1430811570 11446.493 100.00% Conn: 1 Mbps: 11446.493 Peak Mbps: 11473.401 Avg Mbps: 11446.493 --- 127.0.0.1 tcpbench statistics --- 8572403178 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11351.013/11432.148/11473.401/42.163 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8572403178 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11360.672/11433.970/11461.818/37.028 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 1573971094 12591.769 100.00% Conn: 1 Mbps: 12591.769 Peak Mbps: 12591.769 Avg Mbps: 12591.769 999 1573905650 12603.849 100.00% Conn: 1 Mbps: 12603.849 Peak Mbps: 12603.849 Avg Mbps: 12603.849 2000 1590038766 12720.310 100.00% Conn: 1 Mbps: 12720.310 Peak Mbps: 12720.310 Avg Mbps: 12720.310 1999 1590038778 12720.310 100.00% Conn: 1 Mbps: 12720.310 Peak Mbps: 12720.310 Avg Mbps: 12720.310 3000 1591421654 12744.117 100.00% Conn: 1 Mbps: 12744.117 Peak Mbps: 12744.117 Avg Mbps: 12744.117 3000 1591421666 12731.373 100.00% Conn: 1 Mbps: 12731.373 Peak Mbps: 12731.373 Avg Mbps: 12731.373 4000 1593028436 12744.227 100.00% 4000 1593093880 12744.751 100.00% Conn: 1 Mbps: 12744.227 Peak Mbps: 12744.227 Avg Mbps: 12744.227 Conn: 1 Mbps: 12744.751 Peak Mbps: 12744.751 Avg Mbps: 12744.751 5000 1594938426 12772.280 100.00% Conn: 1 Mbps: 12772.280 Peak Mbps: 12772.280 Avg Mbps: 12772.280 5000 1595036574 12760.293 100.00% Conn: 1 Mbps: 12760.293 Peak Mbps: 12760.293 Avg Mbps: 12760.293 --- 127.0.0.1 tcpbench statistics --- 9532051488 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12591.769/12712.248/12760.293/61.580 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9532051488 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12603.849/12714.408/12772.280/57.938 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: 1955.758 Peak Mbps: 1955.758 Tx PPS: 166080 Elapsed: 999 Mbps: 1957.822 Peak Mbps: 1957.822 Rx PPS: 166255 Elapsed: 2000 Mbps: 1961.500 Peak Mbps: 1961.500 Tx PPS: 166567 Elapsed: 1999 Mbps: 1961.570 Peak Mbps: 1961.570 Rx PPS: 166573 Elapsed: 3000 Mbps: 1958.514 Peak Mbps: 1961.500 Tx PPS: 166314 Elapsed: 2999 Mbps: 1958.525 Peak Mbps: 1961.570 Rx PPS: 166315 Elapsed: 4000 Mbps: 1958.608 Peak Mbps: 1961.500 Tx PPS: 166322 Elapsed: 3999 Mbps: 1958.631 Peak Mbps: 1961.570 Rx PPS: 166324 Elapsed: 5000 Mbps: 1959.232 Peak Mbps: 1961.500 Tx PPS: 166375 Elapsed: 5000 Mbps: 1959.244 Peak Mbps: 1961.570 Rx PPS: 166376 --- 127.0.0.1 tcpbench statistics --- 1469000064 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1955.758/1958.722/1961.500/1.834 Mbps Elapsed: 6002 Mbps: 1956.215 Peak Mbps: 1961.570 Rx PPS: 166118 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1469000064 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1956.215/1958.668/1961.570/1.608 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: 1850.704 Peak Mbps: 1850.704 Tx PPS: 157159 Elapsed: 1000 Mbps: 1850.787 Peak Mbps: 1850.787 Rx PPS: 157166 Elapsed: 2000 Mbps: 1848.714 Peak Mbps: 1850.704 Tx PPS: 156989 Elapsed: 1999 Mbps: 1848.773 Peak Mbps: 1850.787 Rx PPS: 156994 Elapsed: 3000 Mbps: 1853.790 Peak Mbps: 1853.790 Tx PPS: 157421 Elapsed: 3000 Mbps: 1853.778 Peak Mbps: 1853.778 Rx PPS: 157420 Elapsed: 4000 Mbps: 1852.471 Peak Mbps: 1853.790 Tx PPS: 157309 Elapsed: 4000 Mbps: 1852.483 Peak Mbps: 1853.778 Rx PPS: 157310 Elapsed: 5000 Mbps: 1850.116 Peak Mbps: 1853.790 Tx PPS: 157109 Elapsed: 5000 Mbps: 1850.104 Peak Mbps: 1853.778 Rx PPS: 157108 --- 127.0.0.1 tcpbench statistics --- 1388228480 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1848.714/1851.159/1853.790/1.784 Mbps Elapsed: 6002 Mbps: 1848.056 Peak Mbps: 1853.778 Rx PPS: 156934 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1388228480 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1848.056/1850.663/1853.778/1.988 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s