START sys/kern/sosplice/perf 2025-03-31T18:28:08Z ==== 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 1385485192 11083.882 100.00% Conn: 1 Mbps: 11083.882 Peak Mbps: 11083.882 Avg Mbps: 11083.882 1000 1385452580 11083.621 100.00% Conn: 1 Mbps: 11083.621 Peak Mbps: 11083.621 Avg Mbps: 11083.621 2000 1399765258 11209.331 100.00% Conn: 1 Mbps: 11209.331 Peak Mbps: 11209.331 Avg Mbps: 11209.331 2000 1399830586 11209.855 100.00% Conn: 1 Mbps: 11209.855 Peak Mbps: 11209.855 Avg Mbps: 11209.855 3000 1399602554 11196.820 100.00% Conn: 1 Mbps: 11196.820 Peak Mbps: 11209.331 Avg Mbps: 11196.820 3000 1399438974 11195.512 100.00% Conn: 1 Mbps: 11195.512 Peak Mbps: 11209.855 Avg Mbps: 11195.512 4000 1401821810 11214.574 100.00% Conn: 1 Mbps: 11214.574 Peak Mbps: 11214.574 Avg Mbps: 11214.574 4000 1401805764 11214.446 100.00% Conn: 1 Mbps: 11214.446 Peak Mbps: 11214.446 Avg Mbps: 11214.446 5000 1401275134 11210.201 100.00% Conn: 1 Mbps: 11210.201 Peak Mbps: 11214.574 Avg Mbps: 11210.201 5000 1401291412 11210.331 100.00% Conn: 1 Mbps: 11210.331 Peak Mbps: 11214.446 Avg Mbps: 11210.331 --- 127.0.0.1 tcpbench statistics --- 8386115290 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11083.882/11182.962/11214.574/49.891 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8386115290 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11083.621/11182.753/11214.446/49.979 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 1548381752 12387.054 100.00% Conn: 1 Mbps: 12387.054 Peak Mbps: 12387.054 Avg Mbps: 12387.054 1000 1548381752 12387.054 100.00% Conn: 1 Mbps: 12387.054 Peak Mbps: 12387.054 Avg Mbps: 12387.054 2000 1570343046 12575.320 100.00% Conn: 1 Mbps: 12575.320 Peak Mbps: 12575.320 Avg Mbps: 12575.320 2000 1570490684 12563.925 100.00% Conn: 1 Mbps: 12563.925 Peak Mbps: 12563.925 Avg Mbps: 12563.925 3000 1570578058 12564.624 100.00% Conn: 1 Mbps: 12564.624 Peak Mbps: 12575.320 Avg Mbps: 12564.624 3000 1570594000 12564.752 100.00% Conn: 1 Mbps: 12564.752 Peak Mbps: 12564.752 Avg Mbps: 12564.752 4000 1569779976 12558.240 100.00% Conn: 1 Mbps: 12558.240 Peak Mbps: 12564.752 Avg Mbps: 12558.240 4000 1569747272 12557.978 100.00% Conn: 1 Mbps: 12557.978 Peak Mbps: 12575.320 Avg Mbps: 12557.978 5000 1574339634 12607.324 100.00% Conn: 1 Mbps: 12607.324 Peak Mbps: 12607.324 Avg Mbps: 12607.324 5000 1574421412 12595.371 100.00% Conn: 1 Mbps: 12595.371 Peak Mbps: 12595.371 Avg Mbps: 12595.371 --- 127.0.0.1 tcpbench statistics --- 9403623850 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12387.054/12536.259/12607.324/76.646 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9403623850 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12387.054/12536.070/12595.371/75.575 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: 1940.543 Peak Mbps: 1940.543 Tx PPS: 164788 Elapsed: 999 Mbps: 1942.592 Peak Mbps: 1942.592 Rx PPS: 164961 Elapsed: 2000 Mbps: 1944.796 Peak Mbps: 1944.796 Tx PPS: 165149 Elapsed: 1999 Mbps: 1944.867 Peak Mbps: 1944.867 Rx PPS: 165155 Elapsed: 3000 Mbps: 1944.443 Peak Mbps: 1944.796 Tx PPS: 165119 Elapsed: 2999 Mbps: 1942.475 Peak Mbps: 1944.867 Rx PPS: 164952 Elapsed: 4000 Mbps: 1943.546 Peak Mbps: 1944.796 Tx PPS: 165043 Elapsed: 3999 Mbps: 1943.582 Peak Mbps: 1944.867 Rx PPS: 165046 Elapsed: 5000 Mbps: 1943.817 Peak Mbps: 1944.796 Tx PPS: 165066 Elapsed: 5000 Mbps: 1943.794 Peak Mbps: 1944.867 Rx PPS: 165064 --- 127.0.0.1 tcpbench statistics --- 1457016512 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1940.543/1943.429/1944.796/1.509 Mbps Elapsed: 6002 Mbps: 1938.833 Peak Mbps: 1944.867 Rx PPS: 164642 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1457016512 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1938.833/1942.690/1944.867/1.901 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: 1869.993 Peak Mbps: 1869.993 Tx PPS: 158797 Elapsed: 1000 Mbps: 1870.052 Peak Mbps: 1870.052 Rx PPS: 158802 Elapsed: 2000 Mbps: 1873.504 Peak Mbps: 1873.504 Tx PPS: 159095 Elapsed: 1999 Mbps: 1873.575 Peak Mbps: 1873.575 Rx PPS: 159101 Elapsed: 3000 Mbps: 1869.063 Peak Mbps: 1873.504 Tx PPS: 158718 Elapsed: 3000 Mbps: 1869.075 Peak Mbps: 1873.575 Rx PPS: 158719 Elapsed: 4000 Mbps: 1874.056 Peak Mbps: 1874.056 Tx PPS: 159142 Elapsed: 4000 Mbps: 1874.044 Peak Mbps: 1874.044 Rx PPS: 159141 Elapsed: 5000 Mbps: 1870.582 Peak Mbps: 1874.056 Tx PPS: 158847 Elapsed: 5000 Mbps: 1870.594 Peak Mbps: 1874.044 Rx PPS: 158848 --- 127.0.0.1 tcpbench statistics --- 1403085376 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1869.063/1871.440/1874.056/1.979 Mbps Elapsed: 6002 Mbps: 1865.485 Peak Mbps: 1874.044 Rx PPS: 158414 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1403085376 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1865.485/1870.471/1874.044/2.869 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s