START sys/kern/sosplice/perf 2024-12-21T00:20:37Z ==== 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 2302019080 18416.153 100.00% Conn: 1 Mbps: 18416.153 Peak Mbps: 18416.153 Avg Mbps: 18416.153 999 2301937498 18433.934 100.00% Conn: 1 Mbps: 18433.934 Peak Mbps: 18433.934 Avg Mbps: 18433.934 2000 2313241044 18524.453 100.00% Conn: 1 Mbps: 18524.453 Peak Mbps: 18524.453 Avg Mbps: 18524.453 1999 2313208224 18505.666 100.00% Conn: 1 Mbps: 18505.666 Peak Mbps: 18505.666 Avg Mbps: 18505.666 3000 2312751484 18502.012 100.00% Conn: 1 Mbps: 18502.012 Peak Mbps: 18524.453 Avg Mbps: 18502.012 3000 2312800570 18502.405 100.00% Conn: 1 Mbps: 18502.405 Peak Mbps: 18505.666 Avg Mbps: 18502.405 4000 2314330032 18514.640 100.00% Conn: 1 Mbps: 18514.640 Peak Mbps: 18524.453 Avg Mbps: 18514.640 4000 2314248542 18513.988 100.00% Conn: 1 Mbps: 18513.988 Peak Mbps: 18513.988 Avg Mbps: 18513.988 5000 2313162754 18505.302 100.00% Conn: 1 Mbps: 18505.302 Peak Mbps: 18513.988 Avg Mbps: 18505.302 5000 2313227770 18505.822 100.00% Conn: 1 Mbps: 18505.822 Peak Mbps: 18524.453 Avg Mbps: 18505.822 --- 127.0.0.1 tcpbench statistics --- 13867091264 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 18416.153/18492.616/18524.453/39.008 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13867091264 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 18433.934/18492.259/18513.988/29.417 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 2473078474 19784.628 100.00% 1000 2473144334 19785.155 100.00% Conn: 1 Mbps: 19784.628 Peak Mbps: 19784.628 Avg Mbps: 19784.628 Conn: 1 Mbps: 19785.155 Peak Mbps: 19785.155 Avg Mbps: 19785.155 2000 2484151564 19893.106 100.00% Conn: 1 Mbps: 19893.106 Peak Mbps: 19893.106 Avg Mbps: 19893.106 2000 2484266498 19874.132 100.00% Conn: 1 Mbps: 19874.132 Peak Mbps: 19874.132 Avg Mbps: 19874.132 3000 2486171022 19909.277 100.00% Conn: 1 Mbps: 19909.277 Peak Mbps: 19909.277 Avg Mbps: 19909.277 3000 2486236442 19889.892 100.00% Conn: 1 Mbps: 19889.892 Peak Mbps: 19889.892 Avg Mbps: 19889.892 4000 2487289352 19898.315 100.00% Conn: 1 Mbps: 19898.315 Peak Mbps: 19909.277 Avg Mbps: 19898.315 4000 2487338426 19898.707 100.00% Conn: 1 Mbps: 19898.707 Peak Mbps: 19898.707 Avg Mbps: 19898.707 5000 2500722028 20005.776 100.00% Conn: 1 Mbps: 20005.776 Peak Mbps: 20005.776 Avg Mbps: 20005.776 5000 2500656608 20005.253 100.00% Conn: 1 Mbps: 20005.253 Peak Mbps: 20005.253 Avg Mbps: 20005.253 --- 127.0.0.1 tcpbench statistics --- 14929669564 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 19785.155/19898.326/20005.776/70.001 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 14929669564 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 19784.628/19890.522/20005.253/70.303 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: 4395.663 Peak Mbps: 4395.663 Tx PPS: 373273 Elapsed: 1000 Mbps: 2909.779 Peak Mbps: 2909.779 Rx PPS: 247094 Elapsed: 2000 Mbps: 4092.213 Peak Mbps: 4395.663 Tx PPS: 347504 Elapsed: 1999 Mbps: 2617.136 Peak Mbps: 2909.779 Rx PPS: 222243 Elapsed: 3006 Mbps: 2585.991 Peak Mbps: 2909.779 Rx PPS: 219598 Elapsed: 3006 Mbps: 4048.732 Peak Mbps: 4395.663 Tx PPS: 343812 Elapsed: 4006 Mbps: 2807.175 Peak Mbps: 2909.779 Rx PPS: 238381 Elapsed: 4006 Mbps: 4502.671 Peak Mbps: 4502.671 Tx PPS: 382360 Elapsed: 5006 Mbps: 2545.865 Peak Mbps: 2909.779 Rx PPS: 216191 Elapsed: 5006 Mbps: 4099.014 Peak Mbps: 4502.671 Tx PPS: 348082 --- 127.0.0.1 tcpbench statistics --- 3153227136 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 4048.732/4227.658/4502.671/184.807 Mbps Elapsed: 6010 Mbps: 2538.356 Peak Mbps: 2909.779 Rx PPS: 215553 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2003240384 bytes received over 6.044 seconds bandwidth min/avg/max/std-dev = 2538.356/2667.384/2909.779/140.749 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: 4342.659 Peak Mbps: 4342.659 Tx PPS: 368772 Elapsed: 1000 Mbps: 2484.159 Peak Mbps: 2484.159 Rx PPS: 210951 Elapsed: 2000 Mbps: 4022.665 Peak Mbps: 4342.659 Tx PPS: 341598 Elapsed: 2000 Mbps: 2305.870 Peak Mbps: 2484.159 Rx PPS: 195811 Elapsed: 3000 Mbps: 4570.784 Peak Mbps: 4570.784 Tx PPS: 388144 Elapsed: 3071 Mbps: 2399.720 Peak Mbps: 2484.159 Rx PPS: 203780 Elapsed: 4000 Mbps: 4073.837 Peak Mbps: 4570.784 Tx PPS: 345944 Elapsed: 4071 Mbps: 2347.208 Peak Mbps: 2484.159 Rx PPS: 199321 Elapsed: 5000 Mbps: 4055.395 Peak Mbps: 4570.784 Tx PPS: 344378 Elapsed: 5071 Mbps: 2417.012 Peak Mbps: 2484.159 Rx PPS: 205249 --- 127.0.0.1 tcpbench statistics --- 3154961152 bytes sent over 6.012 seconds bandwidth min/avg/max/std-dev = 4022.665/4213.068/4570.784/212.252 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1799570048 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 2305.870/2390.794/2484.159/60.985 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.57s