START sys/kern/sosplice/perf 2024-12-15T19:17:48Z ==== 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 1212966530 9703.732 100.00% Conn: 1 Mbps: 9703.732 Peak Mbps: 9703.732 Avg Mbps: 9703.732 999 1212889296 9712.827 100.00% Conn: 1 Mbps: 9712.827 Peak Mbps: 9712.827 Avg Mbps: 9712.827 2000 1217136832 9746.841 100.00% Conn: 1 Mbps: 9746.841 Peak Mbps: 9746.841 Avg Mbps: 9746.841 2000 1217137108 9737.097 100.00% Conn: 1 Mbps: 9737.097 Peak Mbps: 9737.097 Avg Mbps: 9737.097 3000 1217413114 9749.054 100.00% Conn: 1 Mbps: 9749.054 Peak Mbps: 9749.054 Avg Mbps: 9749.054 3000 1217532452 9740.260 100.00% Conn: 1 Mbps: 9740.260 Peak Mbps: 9746.841 Avg Mbps: 9740.260 4000 1215718406 9725.747 100.00% Conn: 1 Mbps: 9725.747 Peak Mbps: 9746.841 Avg Mbps: 9725.747 4000 1215840068 9726.721 100.00% Conn: 1 Mbps: 9726.721 Peak Mbps: 9749.054 Avg Mbps: 9726.721 5000 1216042994 9728.344 100.00% Conn: 1 Mbps: 9728.344 Peak Mbps: 9746.841 Avg Mbps: 9728.344 5000 1216004174 9728.033 100.00% Conn: 1 Mbps: 9728.033 Peak Mbps: 9749.054 Avg Mbps: 9728.033 --- 127.0.0.1 tcpbench statistics --- 7297024462 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9703.732/9728.985/9746.841/14.796 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7297024462 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9712.827/9730.746/9749.054/12.001 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 1327651644 10621.213 100.00% Conn: 1 Mbps: 10621.213 Peak Mbps: 10621.213 Avg Mbps: 10621.213 1000 1325792762 10606.342 100.00% Conn: 1 Mbps: 10606.342 Peak Mbps: 10606.342 Avg Mbps: 10606.342 2000 1332720168 10672.434 100.00% Conn: 1 Mbps: 10672.434 Peak Mbps: 10672.434 Avg Mbps: 10672.434 2000 1332740096 10672.593 100.00% Conn: 1 Mbps: 10672.593 Peak Mbps: 10672.593 Avg Mbps: 10672.593 3000 1331591312 10652.730 100.00% Conn: 1 Mbps: 10652.730 Peak Mbps: 10672.434 Avg Mbps: 10652.730 3000 1331691520 10653.532 100.00% Conn: 1 Mbps: 10653.532 Peak Mbps: 10672.593 Avg Mbps: 10653.532 4000 1332481892 10670.526 100.00% Conn: 1 Mbps: 10670.526 Peak Mbps: 10672.434 Avg Mbps: 10670.526 4000 1332740096 10661.921 100.00% Conn: 1 Mbps: 10661.921 Peak Mbps: 10672.593 Avg Mbps: 10661.921 5000 1336077076 10688.617 100.00% Conn: 1 Mbps: 10688.617 Peak Mbps: 10688.617 Avg Mbps: 10688.617 5000 1336147968 10699.884 100.00% Conn: 1 Mbps: 10699.884 Peak Mbps: 10699.884 Avg Mbps: 10699.884 --- 127.0.0.1 tcpbench statistics --- 7991265672 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10621.213/10661.104/10688.617/22.959 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7991265672 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10606.342/10658.854/10699.884/30.553 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: 1936.434 Peak Mbps: 1936.434 Tx PPS: 164439 Elapsed: 1000 Mbps: 1936.493 Peak Mbps: 1936.493 Rx PPS: 164444 Elapsed: 2000 Mbps: 1946.506 Peak Mbps: 1946.506 Tx PPS: 165294 Elapsed: 1999 Mbps: 1946.600 Peak Mbps: 1946.600 Rx PPS: 165302 Elapsed: 3000 Mbps: 1940.944 Peak Mbps: 1946.506 Tx PPS: 164822 Elapsed: 2999 Mbps: 1940.909 Peak Mbps: 1946.600 Rx PPS: 164819 Elapsed: 4000 Mbps: 1944.924 Peak Mbps: 1946.506 Tx PPS: 165160 Elapsed: 3999 Mbps: 1944.901 Peak Mbps: 1946.600 Rx PPS: 165158 Elapsed: 5000 Mbps: 1905.957 Peak Mbps: 1946.506 Tx PPS: 161851 Elapsed: 5000 Mbps: 1906.028 Peak Mbps: 1946.600 Rx PPS: 161857 --- 127.0.0.1 tcpbench statistics --- 1452211904 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1905.957/1934.953/1946.506/14.911 Mbps Elapsed: 6002 Mbps: 1940.831 Peak Mbps: 1946.600 Rx PPS: 164812 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1452211904 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1906.028/1935.960/1946.600/13.769 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: 1826.575 Peak Mbps: 1826.575 Tx PPS: 155110 Elapsed: 999 Mbps: 1828.463 Peak Mbps: 1828.463 Rx PPS: 155270 Elapsed: 2000 Mbps: 1827.201 Peak Mbps: 1827.201 Tx PPS: 155163 Elapsed: 1999 Mbps: 1827.260 Peak Mbps: 1828.463 Rx PPS: 155168 Elapsed: 3000 Mbps: 1828.200 Peak Mbps: 1828.200 Tx PPS: 155248 Elapsed: 2999 Mbps: 1828.212 Peak Mbps: 1828.463 Rx PPS: 155249 Elapsed: 4000 Mbps: 1826.010 Peak Mbps: 1828.200 Tx PPS: 155062 Elapsed: 3999 Mbps: 1825.987 Peak Mbps: 1828.463 Rx PPS: 155060 Elapsed: 5000 Mbps: 1823.219 Peak Mbps: 1828.200 Tx PPS: 154825 Elapsed: 4999 Mbps: 1823.196 Peak Mbps: 1828.463 Rx PPS: 154823 --- 127.0.0.1 tcpbench statistics --- 1369784320 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1823.219/1826.241/1828.200/1.677 Mbps Elapsed: 6002 Mbps: 1825.162 Peak Mbps: 1828.463 Rx PPS: 154990 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1369784320 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1823.196/1826.380/1828.463/1.837 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s