START sys/kern/sosplice/perf 2025-03-08T19:21:38Z ==== 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 1398480200 11187.842 100.00% Conn: 1 Mbps: 11187.842 Peak Mbps: 11187.842 Avg Mbps: 11187.842 1000 1398496558 11187.972 100.00% Conn: 1 Mbps: 11187.972 Peak Mbps: 11187.972 Avg Mbps: 11187.972 2000 1408493176 11279.225 100.00% Conn: 1 Mbps: 11279.225 Peak Mbps: 11279.225 Avg Mbps: 11279.225 2000 1408509950 11268.080 100.00% Conn: 1 Mbps: 11268.080 Peak Mbps: 11268.080 Avg Mbps: 11268.080 3000 1409534792 11276.278 100.00% Conn: 1 Mbps: 11276.278 Peak Mbps: 11279.225 Avg Mbps: 11276.278 3000 1409534584 11276.277 100.00% Conn: 1 Mbps: 11276.277 Peak Mbps: 11276.277 Avg Mbps: 11276.277 4000 1415226492 11321.812 100.00% Conn: 1 Mbps: 11321.812 Peak Mbps: 11321.812 Avg Mbps: 11321.812 4000 1415259000 11322.072 100.00% Conn: 1 Mbps: 11322.072 Peak Mbps: 11322.072 Avg Mbps: 11322.072 5000 1414463178 11315.705 100.00% Conn: 1 Mbps: 11315.705 Peak Mbps: 11321.812 Avg Mbps: 11315.705 5000 1414397850 11315.183 100.00% Conn: 1 Mbps: 11315.183 Peak Mbps: 11322.072 Avg Mbps: 11315.183 --- 127.0.0.1 tcpbench statistics --- 8458090338 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11187.842/11276.172/11321.812/47.870 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8458090338 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11187.972/11273.917/11322.072/47.850 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 999 1551326010 12423.031 100.00% Conn: 1 Mbps: 12423.031 Peak Mbps: 12423.031 Avg Mbps: 12423.031 1000 1551539080 12412.313 100.00% Conn: 1 Mbps: 12412.313 Peak Mbps: 12412.313 Avg Mbps: 12412.313 2000 1571381390 12583.635 100.00% Conn: 1 Mbps: 12583.635 Peak Mbps: 12583.635 Avg Mbps: 12583.635 1999 1571529028 12572.232 100.00% Conn: 1 Mbps: 12572.232 Peak Mbps: 12572.232 Avg Mbps: 12572.232 3000 1570096216 12560.770 100.00% Conn: 1 Mbps: 12560.770 Peak Mbps: 12583.635 Avg Mbps: 12560.770 3000 1570128920 12561.031 100.00% Conn: 1 Mbps: 12561.031 Peak Mbps: 12572.232 Avg Mbps: 12561.031 4000 1569695600 12557.565 100.00% Conn: 1 Mbps: 12557.565 Peak Mbps: 12583.635 Avg Mbps: 12557.565 4000 1569630180 12557.041 100.00% Conn: 1 Mbps: 12557.041 Peak Mbps: 12572.232 Avg Mbps: 12557.041 5000 1569486566 12568.461 100.00% Conn: 1 Mbps: 12568.461 Peak Mbps: 12583.635 Avg Mbps: 12568.461 5000 1569551986 12556.416 100.00% Conn: 1 Mbps: 12556.416 Peak Mbps: 12572.232 Avg Mbps: 12556.416 --- 127.0.0.1 tcpbench statistics --- 9408310468 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12412.313/12536.549/12583.635/62.767 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9408310468 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12423.031/12533.950/12572.232/55.749 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: 1973.764 Peak Mbps: 1973.764 Tx PPS: 167609 Elapsed: 1000 Mbps: 1973.881 Peak Mbps: 1973.881 Rx PPS: 167619 Elapsed: 2000 Mbps: 1976.600 Peak Mbps: 1976.600 Tx PPS: 167849 Elapsed: 1999 Mbps: 1976.647 Peak Mbps: 1976.647 Rx PPS: 167853 Elapsed: 3000 Mbps: 1976.531 Peak Mbps: 1976.600 Tx PPS: 167844 Elapsed: 3000 Mbps: 1976.554 Peak Mbps: 1976.647 Rx PPS: 167846 Elapsed: 4000 Mbps: 1979.086 Peak Mbps: 1979.086 Tx PPS: 168061 Elapsed: 4000 Mbps: 1979.086 Peak Mbps: 1979.086 Rx PPS: 168061 Elapsed: 5000 Mbps: 1976.449 Peak Mbps: 1979.086 Tx PPS: 167837 Elapsed: 5000 Mbps: 1976.449 Peak Mbps: 1979.086 Rx PPS: 167837 --- 127.0.0.1 tcpbench statistics --- 1482517440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1973.764/1976.486/1979.086/1.685 Mbps Elapsed: 6002 Mbps: 1975.547 Peak Mbps: 1979.086 Rx PPS: 167760 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1482517440 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1973.881/1976.361/1979.086/1.547 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: 1857.346 Peak Mbps: 1857.346 Tx PPS: 157723 Elapsed: 1000 Mbps: 1857.417 Peak Mbps: 1857.417 Rx PPS: 157729 Elapsed: 2000 Mbps: 1861.197 Peak Mbps: 1861.197 Tx PPS: 158050 Elapsed: 1999 Mbps: 1861.256 Peak Mbps: 1861.256 Rx PPS: 158055 Elapsed: 3000 Mbps: 1860.384 Peak Mbps: 1861.197 Tx PPS: 157981 Elapsed: 3000 Mbps: 1860.396 Peak Mbps: 1861.256 Rx PPS: 157982 Elapsed: 4000 Mbps: 1860.537 Peak Mbps: 1861.197 Tx PPS: 157994 Elapsed: 4000 Mbps: 1860.549 Peak Mbps: 1861.256 Rx PPS: 157995 Elapsed: 5000 Mbps: 1857.016 Peak Mbps: 1861.197 Tx PPS: 157695 Elapsed: 5000 Mbps: 1856.993 Peak Mbps: 1861.256 Rx PPS: 157693 --- 127.0.0.1 tcpbench statistics --- 1394029632 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1857.016/1859.296/1861.197/1.752 Mbps Elapsed: 6002 Mbps: 1853.780 Peak Mbps: 1861.256 Rx PPS: 157420 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1394029632 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1853.780/1858.398/1861.256/2.616 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s