START sys/kern/sosplice/perf 2025-03-24T02:24:51Z ==== 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 1823032550 14584.260 100.00% Conn: 1 Mbps: 14584.260 Peak Mbps: 14584.260 Avg Mbps: 14584.260 999 1822999834 14598.597 100.00% Conn: 1 Mbps: 14598.597 Peak Mbps: 14598.597 Avg Mbps: 14598.597 2000 1827845486 14637.401 100.00% Conn: 1 Mbps: 14637.401 Peak Mbps: 14637.401 Avg Mbps: 14637.401 1999 1827812770 14637.139 100.00% Conn: 1 Mbps: 14637.139 Peak Mbps: 14637.139 Avg Mbps: 14637.139 3000 1833340978 14666.728 100.00% Conn: 1 Mbps: 14666.728 Peak Mbps: 14666.728 Avg Mbps: 14666.728 3000 1833340978 14666.728 100.00% Conn: 1 Mbps: 14666.728 Peak Mbps: 14666.728 Avg Mbps: 14666.728 4000 1837051332 14711.122 100.00% Conn: 1 Mbps: 14711.122 Peak Mbps: 14711.122 Avg Mbps: 14711.122 4000 1837084036 14696.672 100.00% Conn: 1 Mbps: 14696.672 Peak Mbps: 14696.672 Avg Mbps: 14696.672 5000 1832130514 14657.044 100.00% Conn: 1 Mbps: 14657.044 Peak Mbps: 14711.122 Avg Mbps: 14657.044 5000 1832163658 14657.309 100.00% Conn: 1 Mbps: 14657.309 Peak Mbps: 14696.672 Avg Mbps: 14657.309 --- 127.0.0.1 tcpbench statistics --- 10984450234 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14584.260/14651.311/14711.122/41.321 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10984450234 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14598.597/14651.289/14696.672/32.591 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 2005682698 16045.462 100.00% Conn: 1 Mbps: 16045.462 Peak Mbps: 16045.462 Avg Mbps: 16045.462 999 2005584550 16060.737 100.00% Conn: 1 Mbps: 16060.737 Peak Mbps: 16060.737 Avg Mbps: 16060.737 2000 2021238340 16186.093 100.00% Conn: 1 Mbps: 16186.093 Peak Mbps: 16186.093 Avg Mbps: 16186.093 1999 2021336488 16170.692 100.00% Conn: 1 Mbps: 16170.692 Peak Mbps: 16170.692 Avg Mbps: 16170.692 3000 2020569754 16164.558 100.00% Conn: 1 Mbps: 16164.558 Peak Mbps: 16186.093 Avg Mbps: 16164.558 3000 2020569754 16164.558 100.00% Conn: 1 Mbps: 16164.558 Peak Mbps: 16170.692 Avg Mbps: 16164.558 4000 2021336996 16170.696 100.00% Conn: 1 Mbps: 16170.696 Peak Mbps: 16186.093 Avg Mbps: 16170.696 4000 2021304268 16170.434 100.00% Conn: 1 Mbps: 16170.434 Peak Mbps: 16170.692 Avg Mbps: 16170.434 5000 2021451338 16171.611 100.00% Conn: 1 Mbps: 16171.611 Peak Mbps: 16186.093 Avg Mbps: 16171.611 5000 2021516782 16172.134 100.00% Conn: 1 Mbps: 16172.134 Peak Mbps: 16172.134 Avg Mbps: 16172.134 --- 127.0.0.1 tcpbench statistics --- 12108328136 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16045.462/16147.684/16186.093/51.597 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12108328136 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16060.737/16147.711/16172.134/43.564 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: 3243.864 Peak Mbps: 3243.864 Tx PPS: 275464 Elapsed: 1000 Mbps: 2903.467 Peak Mbps: 2903.467 Rx PPS: 246558 Elapsed: 2000 Mbps: 3267.268 Peak Mbps: 3267.268 Tx PPS: 277451 Elapsed: 2000 Mbps: 3005.674 Peak Mbps: 3005.674 Rx PPS: 255237 Elapsed: 3000 Mbps: 3306.748 Peak Mbps: 3306.748 Tx PPS: 280804 Elapsed: 3000 Mbps: 2912.676 Peak Mbps: 3005.674 Rx PPS: 247340 Elapsed: 4000 Mbps: 3344.926 Peak Mbps: 3344.926 Tx PPS: 284046 Elapsed: 4000 Mbps: 2912.888 Peak Mbps: 3005.674 Rx PPS: 247358 Elapsed: 5000 Mbps: 3279.887 Peak Mbps: 3344.926 Tx PPS: 278523 Elapsed: 5000 Mbps: 2886.309 Peak Mbps: 3005.674 Rx PPS: 245101 --- 127.0.0.1 tcpbench statistics --- 2474197952 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3243.864/3288.539/3344.926/34.740 Mbps Elapsed: 6000 Mbps: 2867.962 Peak Mbps: 3005.674 Rx PPS: 243543 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2190016576 bytes received over 6.011 seconds bandwidth min/avg/max/std-dev = 2867.962/2914.829/3005.674/43.589 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: 3431.362 Peak Mbps: 3431.362 Tx PPS: 291386 Elapsed: 1000 Mbps: 2812.132 Peak Mbps: 2812.132 Rx PPS: 238802 Elapsed: 2000 Mbps: 3455.849 Peak Mbps: 3455.849 Tx PPS: 293465 Elapsed: 1999 Mbps: 2721.010 Peak Mbps: 2812.132 Rx PPS: 231064 Elapsed: 3000 Mbps: 3368.937 Peak Mbps: 3455.849 Tx PPS: 286085 Elapsed: 2999 Mbps: 2788.898 Peak Mbps: 2812.132 Rx PPS: 236829 Elapsed: 4000 Mbps: 3446.847 Peak Mbps: 3455.849 Tx PPS: 292701 Elapsed: 3999 Mbps: 2733.728 Peak Mbps: 2812.132 Rx PPS: 232144 Elapsed: 5000 Mbps: 3343.607 Peak Mbps: 3455.849 Tx PPS: 283934 Elapsed: 4999 Mbps: 2763.038 Peak Mbps: 2812.132 Rx PPS: 234633 --- 127.0.0.1 tcpbench statistics --- 2556644672 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3343.607/3409.320/3455.849/44.739 Mbps Elapsed: 6000 Mbps: 2754.265 Peak Mbps: 2812.132 Rx PPS: 233888 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2076099968 bytes received over 6.013 seconds bandwidth min/avg/max/std-dev = 2721.010/2762.179/2812.132/31.029 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s