START sys/kern/sosplice/perf 2024-12-30T02:28:28Z ==== 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 2132726274 17061.810 100.00% 1000 2132562694 17060.502 100.00% Conn: 1 Mbps: 17061.810 Peak Mbps: 17061.810 Avg Mbps: 17061.810 Conn: 1 Mbps: 17060.502 Peak Mbps: 17060.502 Avg Mbps: 17060.502 2000 2139567878 17133.677 100.00% Conn: 1 Mbps: 17133.677 Peak Mbps: 17133.677 Avg Mbps: 17133.677 2000 2139731458 17117.852 100.00% Conn: 1 Mbps: 17117.852 Peak Mbps: 17117.852 Avg Mbps: 17117.852 3000 2151082866 17208.663 100.00% Conn: 1 Mbps: 17208.663 Peak Mbps: 17208.663 Avg Mbps: 17208.663 3000 2151181014 17209.448 100.00% Conn: 1 Mbps: 17209.448 Peak Mbps: 17209.448 Avg Mbps: 17209.448 4000 2148679776 17189.438 100.00% Conn: 1 Mbps: 17189.438 Peak Mbps: 17208.663 Avg Mbps: 17189.438 4000 2148581628 17188.653 100.00% Conn: 1 Mbps: 17188.653 Peak Mbps: 17209.448 Avg Mbps: 17188.653 5000 2150232394 17219.078 100.00% Conn: 1 Mbps: 17219.078 Peak Mbps: 17219.078 Avg Mbps: 17219.078 5000 2150265110 17202.121 100.00% Conn: 1 Mbps: 17202.121 Peak Mbps: 17209.448 Avg Mbps: 17202.121 --- 127.0.0.1 tcpbench statistics --- 12867794852 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17061.810/17162.533/17219.078/58.356 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12867794852 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 17060.502/17155.715/17209.448/57.663 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 1978330486 15826.644 100.00% Conn: 1 Mbps: 15826.644 Peak Mbps: 15826.644 Avg Mbps: 15826.644 999 1978330486 15842.486 100.00% Conn: 1 Mbps: 15842.486 Peak Mbps: 15842.486 Avg Mbps: 15842.486 2000 1996748070 15973.985 100.00% Conn: 1 Mbps: 15973.985 Peak Mbps: 15973.985 Avg Mbps: 15973.985 1999 1996649922 15973.199 100.00% Conn: 1 Mbps: 15973.199 Peak Mbps: 15973.199 Avg Mbps: 15973.199 3000 1989323374 15930.518 100.00% Conn: 1 Mbps: 15930.518 Peak Mbps: 15973.985 Avg Mbps: 15930.518 2999 1989356090 15914.849 100.00% Conn: 1 Mbps: 15914.849 Peak Mbps: 15973.199 Avg Mbps: 15914.849 4000 1994278532 15970.198 100.00% Conn: 1 Mbps: 15970.198 Peak Mbps: 15973.985 Avg Mbps: 15970.198 3999 1994278532 15954.228 100.00% Conn: 1 Mbps: 15954.228 Peak Mbps: 15973.199 Avg Mbps: 15954.228 5000 1994637848 15957.103 100.00% Conn: 1 Mbps: 15957.103 Peak Mbps: 15973.985 Avg Mbps: 15957.103 5000 1994605132 15956.841 100.00% Conn: 1 Mbps: 15956.841 Peak Mbps: 15973.199 Avg Mbps: 15956.841 --- 127.0.0.1 tcpbench statistics --- 11948314774 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15826.644/15931.689/15973.985/54.687 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11948314774 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15842.486/15928.321/15973.199/47.006 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: 3061.736 Peak Mbps: 3061.736 Tx PPS: 259998 Elapsed: 1000 Mbps: 2559.879 Peak Mbps: 2559.879 Rx PPS: 217381 Elapsed: 2000 Mbps: 2959.972 Peak Mbps: 3061.736 Tx PPS: 251356 Elapsed: 1999 Mbps: 2452.437 Peak Mbps: 2559.879 Rx PPS: 208257 Elapsed: 3000 Mbps: 2969.059 Peak Mbps: 3061.736 Tx PPS: 252128 Elapsed: 2999 Mbps: 2474.432 Peak Mbps: 2559.879 Rx PPS: 210125 Elapsed: 4000 Mbps: 3062.419 Peak Mbps: 3062.419 Tx PPS: 260056 Elapsed: 3999 Mbps: 2657.702 Peak Mbps: 2657.702 Rx PPS: 225688 Elapsed: 5000 Mbps: 2997.369 Peak Mbps: 3062.419 Tx PPS: 254532 Elapsed: 4999 Mbps: 2443.602 Peak Mbps: 2657.702 Rx PPS: 207507 --- 127.0.0.1 tcpbench statistics --- 2254209024 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2959.972/3010.111/3062.419/44.188 Mbps Elapsed: 5999 Mbps: 2434.335 Peak Mbps: 2657.702 Rx PPS: 206720 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1877675840 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 2434.335/2503.731/2657.702/80.395 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: 2984.933 Peak Mbps: 2984.933 Tx PPS: 253476 Elapsed: 1000 Mbps: 2191.655 Peak Mbps: 2191.655 Rx PPS: 186112 Elapsed: 2000 Mbps: 2959.831 Peak Mbps: 2984.933 Tx PPS: 251344 Elapsed: 1999 Mbps: 2170.745 Peak Mbps: 2191.655 Rx PPS: 184336 Elapsed: 3003 Mbps: 2291.283 Peak Mbps: 2291.283 Rx PPS: 194572 Elapsed: 3042 Mbps: 2975.169 Peak Mbps: 2984.933 Tx PPS: 252646 Elapsed: 4003 Mbps: 2217.409 Peak Mbps: 2291.283 Rx PPS: 188299 Elapsed: 4042 Mbps: 3144.487 Peak Mbps: 3144.487 Tx PPS: 267025 Elapsed: 5003 Mbps: 2217.774 Peak Mbps: 2291.283 Rx PPS: 188330 Elapsed: 5042 Mbps: 2840.760 Peak Mbps: 3144.487 Tx PPS: 241233 --- 127.0.0.1 tcpbench statistics --- 2225930432 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2840.760/2981.036/3144.487/96.843 Mbps Elapsed: 6023 Mbps: 2185.471 Peak Mbps: 2291.283 Rx PPS: 185586 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1665144064 bytes received over 6.026 seconds bandwidth min/avg/max/std-dev = 2170.745/2212.389/2291.283/39.088 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s