START sys/kern/sosplice/perf 2025-03-18T02:23:35Z ==== 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 1836912804 14695.302 100.00% Conn: 1 Mbps: 14695.302 Peak Mbps: 14695.302 Avg Mbps: 14695.302 1000 1836880088 14695.041 100.00% Conn: 1 Mbps: 14695.041 Peak Mbps: 14695.041 Avg Mbps: 14695.041 2000 1856555966 14867.315 100.00% Conn: 1 Mbps: 14867.315 Peak Mbps: 14867.315 Avg Mbps: 14867.315 2000 1856621386 14867.839 100.00% Conn: 1 Mbps: 14867.839 Peak Mbps: 14867.839 Avg Mbps: 14867.839 3000 1861116632 14888.933 100.00% Conn: 1 Mbps: 14888.933 Peak Mbps: 14888.933 Avg Mbps: 14888.933 3000 1861084020 14888.672 100.00% Conn: 1 Mbps: 14888.672 Peak Mbps: 14888.672 Avg Mbps: 14888.672 4000 1846181740 14769.454 100.00% Conn: 1 Mbps: 14769.454 Peak Mbps: 14888.933 Avg Mbps: 14769.454 4000 1846181740 14784.238 100.00% Conn: 1 Mbps: 14784.238 Peak Mbps: 14888.672 Avg Mbps: 14784.238 5000 1849532226 14811.069 100.00% Conn: 1 Mbps: 14811.069 Peak Mbps: 14888.933 Avg Mbps: 14811.069 5000 1849564838 14796.519 100.00% Conn: 1 Mbps: 14796.519 Peak Mbps: 14888.672 Avg Mbps: 14796.519 --- 127.0.0.1 tcpbench statistics --- 11101041942 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14695.302/14806.415/14888.933/69.645 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11101041942 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14695.041/14806.462/14888.672/68.605 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 1864506134 14916.049 100.00% Conn: 1 Mbps: 14916.049 Peak Mbps: 14916.049 Avg Mbps: 14916.049 999 1864440702 14930.456 100.00% Conn: 1 Mbps: 14930.456 Peak Mbps: 14930.456 Avg Mbps: 14930.456 2000 1882010526 15071.155 100.00% Conn: 1 Mbps: 15071.155 Peak Mbps: 15071.155 Avg Mbps: 15071.155 2000 1882141390 15057.131 100.00% Conn: 1 Mbps: 15057.131 Peak Mbps: 15057.131 Avg Mbps: 15057.131 3000 1880487756 15043.902 100.00% Conn: 1 Mbps: 15043.902 Peak Mbps: 15071.155 Avg Mbps: 15043.902 3000 1880487756 15043.902 100.00% Conn: 1 Mbps: 15043.902 Peak Mbps: 15057.131 Avg Mbps: 15043.902 4000 1873269858 14986.159 100.00% Conn: 1 Mbps: 14986.159 Peak Mbps: 15071.155 Avg Mbps: 14986.159 4000 1873302574 14986.421 100.00% Conn: 1 Mbps: 14986.421 Peak Mbps: 15057.131 Avg Mbps: 14986.421 5000 1884677360 15077.419 100.00% Conn: 1 Mbps: 15077.419 Peak Mbps: 15077.419 Avg Mbps: 15077.419 5000 1884677360 15077.419 100.00% Conn: 1 Mbps: 15077.419 Peak Mbps: 15077.419 Avg Mbps: 15077.419 --- 127.0.0.1 tcpbench statistics --- 11262365550 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14916.049/15018.937/15077.419/60.713 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11262365550 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14930.456/15019.066/15077.419/53.644 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: 2692.076 Peak Mbps: 2692.076 Tx PPS: 228607 Elapsed: 1000 Mbps: 2223.262 Peak Mbps: 2223.262 Rx PPS: 188796 Elapsed: 2000 Mbps: 2699.132 Peak Mbps: 2699.132 Tx PPS: 229206 Elapsed: 1999 Mbps: 2136.230 Peak Mbps: 2223.262 Rx PPS: 181405 Elapsed: 3000 Mbps: 2693.890 Peak Mbps: 2699.132 Tx PPS: 228761 Elapsed: 3000 Mbps: 2168.751 Peak Mbps: 2223.262 Rx PPS: 184167 Elapsed: 4000 Mbps: 2707.726 Peak Mbps: 2707.726 Tx PPS: 229936 Elapsed: 4000 Mbps: 2188.108 Peak Mbps: 2223.262 Rx PPS: 185810 Elapsed: 5000 Mbps: 2706.172 Peak Mbps: 2707.726 Tx PPS: 229804 Elapsed: 5000 Mbps: 2142.466 Peak Mbps: 2223.262 Rx PPS: 181934 --- 127.0.0.1 tcpbench statistics --- 2022157056 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2692.076/2699.799/2707.726/6.300 Mbps Elapsed: 6000 Mbps: 2275.488 Peak Mbps: 2275.488 Rx PPS: 193231 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1644506624 bytes received over 6.012 seconds bandwidth min/avg/max/std-dev = 2136.230/2189.051/2275.488/48.330 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: 2803.088 Peak Mbps: 2803.088 Tx PPS: 238034 Elapsed: 1000 Mbps: 2083.893 Peak Mbps: 2083.893 Rx PPS: 176961 Elapsed: 2000 Mbps: 2840.692 Peak Mbps: 2840.692 Tx PPS: 241227 Elapsed: 2000 Mbps: 2073.967 Peak Mbps: 2083.893 Rx PPS: 176118 Elapsed: 3000 Mbps: 2779.065 Peak Mbps: 2840.692 Tx PPS: 235994 Elapsed: 3000 Mbps: 2112.485 Peak Mbps: 2112.485 Rx PPS: 179389 Elapsed: 4000 Mbps: 2742.395 Peak Mbps: 2840.692 Tx PPS: 232880 Elapsed: 4000 Mbps: 2118.137 Peak Mbps: 2118.137 Rx PPS: 179869 Elapsed: 5000 Mbps: 2737.296 Peak Mbps: 2840.692 Tx PPS: 232447 Elapsed: 5000 Mbps: 2118.396 Peak Mbps: 2118.396 Rx PPS: 179891 --- 127.0.0.1 tcpbench statistics --- 2089788096 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2737.296/2780.507/2840.692/38.611 Mbps Elapsed: 6000 Mbps: 2071.964 Peak Mbps: 2118.396 Rx PPS: 175948 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1578459456 bytes received over 6.021 seconds bandwidth min/avg/max/std-dev = 2071.964/2096.474/2118.396/20.297 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.64s