START sys/kern/sosplice/perf 2025-03-29T02:24:17Z ==== 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 1824365924 14594.927 100.00% Conn: 1 Mbps: 14594.927 Peak Mbps: 14594.927 Avg Mbps: 14594.927 1000 1824284134 14594.273 100.00% Conn: 1 Mbps: 14594.273 Peak Mbps: 14594.273 Avg Mbps: 14594.273 2000 1835116486 14695.628 100.00% Conn: 1 Mbps: 14695.628 Peak Mbps: 14695.628 Avg Mbps: 14695.628 2000 1835231084 14681.849 100.00% Conn: 1 Mbps: 14681.849 Peak Mbps: 14681.849 Avg Mbps: 14681.849 3000 1837830334 14717.360 100.00% Conn: 1 Mbps: 14717.360 Peak Mbps: 14717.360 Avg Mbps: 14717.360 3000 1837895674 14703.165 100.00% Conn: 1 Mbps: 14703.165 Peak Mbps: 14703.165 Avg Mbps: 14703.165 4000 1839597042 14716.776 100.00% Conn: 1 Mbps: 14716.776 Peak Mbps: 14717.360 Avg Mbps: 14716.776 4000 1839580684 14731.377 100.00% Conn: 1 Mbps: 14731.377 Peak Mbps: 14731.377 Avg Mbps: 14731.377 5000 1835817652 14686.541 100.00% Conn: 1 Mbps: 14686.541 Peak Mbps: 14717.360 Avg Mbps: 14686.541 5000 1835801294 14686.410 100.00% Conn: 1 Mbps: 14686.410 Peak Mbps: 14731.377 Avg Mbps: 14686.410 --- 127.0.0.1 tcpbench statistics --- 11012486624 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14594.927/14682.246/14717.360/45.271 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11012486624 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14594.273/14679.415/14731.377/45.974 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 2022873996 16182.992 100.00% Conn: 1 Mbps: 16182.992 Peak Mbps: 16182.992 Avg Mbps: 16182.992 1000 2022873996 16182.992 100.00% Conn: 1 Mbps: 16182.992 Peak Mbps: 16182.992 Avg Mbps: 16182.992 2000 2034915416 16295.619 100.00% Conn: 1 Mbps: 16295.619 Peak Mbps: 16295.619 Avg Mbps: 16295.619 2000 2034948120 16279.585 100.00% Conn: 1 Mbps: 16279.585 Peak Mbps: 16279.585 Avg Mbps: 16279.585 3000 2037680794 16301.446 100.00% Conn: 1 Mbps: 16301.446 Peak Mbps: 16301.446 Avg Mbps: 16301.446 3000 2037746238 16301.970 100.00% Conn: 1 Mbps: 16301.970 Peak Mbps: 16301.970 Avg Mbps: 16301.970 4000 2038577852 16324.948 100.00% Conn: 1 Mbps: 16324.948 Peak Mbps: 16324.948 Avg Mbps: 16324.948 4000 2038610556 16325.210 100.00% Conn: 1 Mbps: 16325.210 Peak Mbps: 16325.210 Avg Mbps: 16325.210 5000 2037122918 16296.983 100.00% Conn: 1 Mbps: 16296.983 Peak Mbps: 16324.948 Avg Mbps: 16296.983 5000 2036992066 16295.937 100.00% Conn: 1 Mbps: 16295.937 Peak Mbps: 16325.210 Avg Mbps: 16295.937 --- 127.0.0.1 tcpbench statistics --- 12204648500 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16182.992/16280.398/16324.948/49.845 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12204648500 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16182.992/16277.139/16325.210/49.296 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: 3357.644 Peak Mbps: 3357.644 Tx PPS: 285126 Elapsed: 1000 Mbps: 2992.329 Peak Mbps: 2992.329 Rx PPS: 254104 Elapsed: 2000 Mbps: 3387.681 Peak Mbps: 3387.681 Tx PPS: 287676 Elapsed: 1999 Mbps: 2932.248 Peak Mbps: 2992.329 Rx PPS: 249002 Elapsed: 3000 Mbps: 3315.509 Peak Mbps: 3387.681 Tx PPS: 281548 Elapsed: 3000 Mbps: 2918.623 Peak Mbps: 2992.329 Rx PPS: 247845 Elapsed: 4000 Mbps: 3384.905 Peak Mbps: 3387.681 Tx PPS: 287441 Elapsed: 4000 Mbps: 2947.191 Peak Mbps: 2992.329 Rx PPS: 250271 Elapsed: 5000 Mbps: 3291.757 Peak Mbps: 3387.681 Tx PPS: 279531 Elapsed: 5000 Mbps: 3039.009 Peak Mbps: 3039.009 Rx PPS: 258068 --- 127.0.0.1 tcpbench statistics --- 2522096832 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3291.757/3347.499/3387.681/38.072 Mbps Elapsed: 6000 Mbps: 2978.421 Peak Mbps: 3039.009 Rx PPS: 252923 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2226994688 bytes received over 6.005 seconds bandwidth min/avg/max/std-dev = 2918.623/2967.970/3039.009/40.604 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: 3483.223 Peak Mbps: 3483.223 Tx PPS: 295790 Elapsed: 1000 Mbps: 2783.823 Peak Mbps: 2783.823 Rx PPS: 236398 Elapsed: 2000 Mbps: 3434.195 Peak Mbps: 3483.223 Tx PPS: 291626 Elapsed: 1999 Mbps: 2750.409 Peak Mbps: 2783.823 Rx PPS: 233560 Elapsed: 3000 Mbps: 3408.269 Peak Mbps: 3483.223 Tx PPS: 289425 Elapsed: 2999 Mbps: 2698.376 Peak Mbps: 2783.823 Rx PPS: 229142 Elapsed: 4000 Mbps: 3423.224 Peak Mbps: 3483.223 Tx PPS: 290695 Elapsed: 3999 Mbps: 2761.136 Peak Mbps: 2783.823 Rx PPS: 234471 Elapsed: 5000 Mbps: 3395.186 Peak Mbps: 3483.223 Tx PPS: 288314 Elapsed: 4999 Mbps: 2745.633 Peak Mbps: 2783.823 Rx PPS: 233155 --- 127.0.0.1 tcpbench statistics --- 2568319104 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3395.186/3428.819/3483.223/30.244 Mbps Elapsed: 6000 Mbps: 2786.920 Peak Mbps: 2786.920 Rx PPS: 236661 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2066071232 bytes received over 6.004 seconds bandwidth min/avg/max/std-dev = 2698.376/2754.383/2786.920/29.439 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s