START sys/kern/sosplice/perf 2024-08-06T01:30:30Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -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 1579013166 12632.105 100.00% Conn: 1 Mbps: 12632.105 Peak Mbps: 12632.105 Avg Mbps: 12632.105 1000 1579066400 12632.531 100.00% Conn: 1 Mbps: 12632.531 Peak Mbps: 12632.531 Avg Mbps: 12632.531 2000 1586619508 12705.662 100.00% Conn: 1 Mbps: 12705.662 Peak Mbps: 12705.662 Avg Mbps: 12705.662 2000 1586632122 12705.763 100.00% Conn: 1 Mbps: 12705.763 Peak Mbps: 12705.763 Avg Mbps: 12705.763 3000 1588695038 12709.560 100.00% Conn: 1 Mbps: 12709.560 Peak Mbps: 12709.560 Avg Mbps: 12709.560 3000 1588689336 12709.515 100.00% Conn: 1 Mbps: 12709.515 Peak Mbps: 12709.515 Avg Mbps: 12709.515 4000 1590523990 12724.192 100.00% Conn: 1 Mbps: 12724.192 Peak Mbps: 12724.192 Avg Mbps: 12724.192 4000 1590431116 12723.449 100.00% Conn: 1 Mbps: 12723.449 Peak Mbps: 12723.449 Avg Mbps: 12723.449 5000 1583591834 12681.416 100.00% Conn: 1 Mbps: 12681.416 Peak Mbps: 12724.192 Avg Mbps: 12681.416 5000 1583708956 12669.672 100.00% Conn: 1 Mbps: 12669.672 Peak Mbps: 12723.449 Avg Mbps: 12669.672 --- 127.0.0.1 tcpbench statistics --- 9517398586 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12632.105/12690.587/12724.192/32.313 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9517398586 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12632.531/12688.186/12723.449/33.008 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 1869254882 14954.039 100.00% Conn: 1 Mbps: 14954.039 Peak Mbps: 14954.039 Avg Mbps: 14954.039 1000 1867791420 14942.331 100.00% Conn: 1 Mbps: 14942.331 Peak Mbps: 14942.331 Avg Mbps: 14942.331 2000 1886615458 15092.924 100.00% Conn: 1 Mbps: 15092.924 Peak Mbps: 15092.924 Avg Mbps: 15092.924 2000 1886388224 15091.106 100.00% Conn: 1 Mbps: 15091.106 Peak Mbps: 15091.106 Avg Mbps: 15091.106 3000 1883100376 15064.803 100.00% Conn: 1 Mbps: 15064.803 Peak Mbps: 15092.924 Avg Mbps: 15064.803 3000 1882980352 15063.843 100.00% Conn: 1 Mbps: 15063.843 Peak Mbps: 15091.106 Avg Mbps: 15063.843 4000 1885619600 15100.057 100.00% Conn: 1 Mbps: 15100.057 Peak Mbps: 15100.057 Avg Mbps: 15100.057 4000 1885863936 15086.911 100.00% Conn: 1 Mbps: 15086.911 Peak Mbps: 15091.106 Avg Mbps: 15086.911 5000 1882649900 15061.199 100.00% Conn: 1 Mbps: 15061.199 Peak Mbps: 15100.057 Avg Mbps: 15061.199 5000 1882718208 15061.746 100.00% Conn: 1 Mbps: 15061.746 Peak Mbps: 15091.106 Avg Mbps: 15061.746 --- 127.0.0.1 tcpbench statistics --- 11292081046 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 14954.039/15054.604/15100.057/52.527 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11292081046 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14942.331/15049.187/15091.106/54.719 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: 3040.975 Peak Mbps: 3040.975 Tx PPS: 258235 Elapsed: 1000 Mbps: 2488.269 Peak Mbps: 2488.269 Rx PPS: 211300 Elapsed: 2000 Mbps: 3092.102 Peak Mbps: 3092.102 Tx PPS: 262576 Elapsed: 2004 Mbps: 2472.925 Peak Mbps: 2488.269 Rx PPS: 209997 Elapsed: 3000 Mbps: 2872.579 Peak Mbps: 3092.102 Tx PPS: 243935 Elapsed: 3021 Mbps: 2221.982 Peak Mbps: 2488.269 Rx PPS: 188687 Elapsed: 4000 Mbps: 2917.292 Peak Mbps: 3092.102 Tx PPS: 247732 Elapsed: 4021 Mbps: 2313.701 Peak Mbps: 2488.269 Rx PPS: 196476 Elapsed: 5000 Mbps: 3009.581 Peak Mbps: 3092.102 Tx PPS: 255569 Elapsed: 5021 Mbps: 2303.386 Peak Mbps: 2488.269 Rx PPS: 195600 Elapsed: 6036 Mbps: 2234.203 Peak Mbps: 2488.269 Rx PPS: 189725 --- 127.0.0.1 tcpbench statistics --- 2251562368 bytes sent over 6.036 seconds bandwidth min/avg/max/std-dev = 2872.579/2986.506/3092.102/80.523 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1764586496 bytes received over 6.039 seconds bandwidth min/avg/max/std-dev = 2221.982/2339.078/2488.269/105.515 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: 3120.746 Peak Mbps: 3120.746 Tx PPS: 265009 Elapsed: 1000 Mbps: 2318.353 Peak Mbps: 2318.353 Rx PPS: 196871 Elapsed: 2000 Mbps: 2919.010 Peak Mbps: 3120.746 Tx PPS: 247877 Elapsed: 2000 Mbps: 2174.941 Peak Mbps: 2318.353 Rx PPS: 184692 Elapsed: 3000 Mbps: 2988.996 Peak Mbps: 3120.746 Tx PPS: 253821 Elapsed: 3043 Mbps: 2013.007 Peak Mbps: 2318.353 Rx PPS: 170941 Elapsed: 4000 Mbps: 2924.534 Peak Mbps: 3120.746 Tx PPS: 248347 Elapsed: 4043 Mbps: 2165.994 Peak Mbps: 2318.353 Rx PPS: 183932 Elapsed: 5000 Mbps: 2958.237 Peak Mbps: 3120.746 Tx PPS: 251209 Elapsed: 5043 Mbps: 2137.156 Peak Mbps: 2318.353 Rx PPS: 181484 --- 127.0.0.1 tcpbench statistics --- 2227349440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2919.010/2982.305/3120.746/73.666 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1619753472 bytes received over 6.003 seconds bandwidth min/avg/max/std-dev = 2013.007/2161.890/2318.353/97.412 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.61s