START sys/kern/sosplice/perf 2025-01-14T02:21:22Z ==== 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 2548223854 20385.791 100.00% Conn: 1 Mbps: 20385.791 Peak Mbps: 20385.791 Avg Mbps: 20385.791 999 2548240212 20406.328 100.00% Conn: 1 Mbps: 20406.328 Peak Mbps: 20406.328 Avg Mbps: 20406.328 2000 2561591832 20513.248 100.00% Conn: 1 Mbps: 20513.248 Peak Mbps: 20513.248 Avg Mbps: 20513.248 2000 2561689980 20493.520 100.00% Conn: 1 Mbps: 20493.520 Peak Mbps: 20493.520 Avg Mbps: 20493.520 3000 2566906154 20535.249 100.00% Conn: 1 Mbps: 20535.249 Peak Mbps: 20535.249 Avg Mbps: 20535.249 3000 2566824468 20534.596 100.00% Conn: 1 Mbps: 20534.596 Peak Mbps: 20534.596 Avg Mbps: 20534.596 4000 2562260934 20498.087 100.00% Conn: 1 Mbps: 20498.087 Peak Mbps: 20535.249 Avg Mbps: 20498.087 4000 2562195606 20497.565 100.00% Conn: 1 Mbps: 20497.565 Peak Mbps: 20534.596 Avg Mbps: 20497.565 5000 2561982712 20495.862 100.00% Conn: 1 Mbps: 20495.862 Peak Mbps: 20535.249 Avg Mbps: 20495.862 5000 2561933742 20495.470 100.00% Conn: 1 Mbps: 20495.470 Peak Mbps: 20534.596 Avg Mbps: 20495.470 --- 127.0.0.1 tcpbench statistics --- 15367199630 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 20385.791/20485.647/20535.249/51.870 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 15367199630 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 20406.328/20485.496/20534.596/42.398 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 2225188636 17801.509 100.00% Conn: 1 Mbps: 17801.509 Peak Mbps: 17801.509 Avg Mbps: 17801.509 999 2225188636 17819.328 100.00% Conn: 1 Mbps: 17819.328 Peak Mbps: 17819.328 Avg Mbps: 17819.328 2000 2237541134 17900.329 100.00% Conn: 1 Mbps: 17900.329 Peak Mbps: 17900.329 Avg Mbps: 17900.329 2000 2237475702 17899.806 100.00% Conn: 1 Mbps: 17899.806 Peak Mbps: 17899.806 Avg Mbps: 17899.806 3000 2233734212 17869.874 100.00% Conn: 1 Mbps: 17869.874 Peak Mbps: 17899.806 Avg Mbps: 17869.874 3000 2233799644 17870.397 100.00% Conn: 1 Mbps: 17870.397 Peak Mbps: 17900.329 Avg Mbps: 17870.397 4000 2230963090 17865.570 100.00% Conn: 1 Mbps: 17865.570 Peak Mbps: 17900.329 Avg Mbps: 17865.570 4000 2231028522 17848.228 100.00% Conn: 1 Mbps: 17848.228 Peak Mbps: 17899.806 Avg Mbps: 17848.228 5000 2234003586 17889.919 100.00% Conn: 1 Mbps: 17889.919 Peak Mbps: 17900.329 Avg Mbps: 17889.919 5000 2234069018 17872.552 100.00% Conn: 1 Mbps: 17872.552 Peak Mbps: 17899.806 Avg Mbps: 17872.552 --- 127.0.0.1 tcpbench statistics --- 13396790198 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17801.509/17865.545/17900.329/34.433 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13396790198 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 17819.328/17861.958/17899.806/26.882 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: 4331.283 Peak Mbps: 4331.283 Tx PPS: 367806 Elapsed: 1000 Mbps: 2922.968 Peak Mbps: 2922.968 Rx PPS: 248214 Elapsed: 2000 Mbps: 4050.425 Peak Mbps: 4331.283 Tx PPS: 343955 Elapsed: 1999 Mbps: 2708.174 Peak Mbps: 2922.968 Rx PPS: 229973 Elapsed: 3000 Mbps: 4443.721 Peak Mbps: 4443.721 Tx PPS: 377354 Elapsed: 2999 Mbps: 2879.574 Peak Mbps: 2922.968 Rx PPS: 244529 Elapsed: 4000 Mbps: 4023.376 Peak Mbps: 4443.721 Tx PPS: 341659 Elapsed: 3999 Mbps: 2620.737 Peak Mbps: 2922.968 Rx PPS: 222549 Elapsed: 5000 Mbps: 4019.891 Peak Mbps: 4443.721 Tx PPS: 341363 Elapsed: 4999 Mbps: 2587.729 Peak Mbps: 2922.968 Rx PPS: 219746 Elapsed: 6002 Mbps: 2596.514 Peak Mbps: 2922.968 Rx PPS: 220492 --- 127.0.0.1 tcpbench statistics --- 3112377664 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 4019.891/4173.739/4443.721/178.435 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2039912320 bytes received over 6.005 seconds bandwidth min/avg/max/std-dev = 2587.729/2719.282/2922.968/135.027 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: 4550.918 Peak Mbps: 4550.918 Tx PPS: 386457 Elapsed: 1000 Mbps: 2713.815 Peak Mbps: 2713.815 Rx PPS: 230453 Elapsed: 2000 Mbps: 3971.494 Peak Mbps: 4550.918 Tx PPS: 337253 Elapsed: 2000 Mbps: 2372.281 Peak Mbps: 2713.815 Rx PPS: 201450 Elapsed: 3000 Mbps: 3957.207 Peak Mbps: 4550.918 Tx PPS: 336040 Elapsed: 3000 Mbps: 2366.493 Peak Mbps: 2713.815 Rx PPS: 200959 Elapsed: 4000 Mbps: 4480.744 Peak Mbps: 4550.918 Tx PPS: 380498 Elapsed: 4000 Mbps: 2667.076 Peak Mbps: 2713.815 Rx PPS: 226484 Elapsed: 5000 Mbps: 3959.409 Peak Mbps: 4550.918 Tx PPS: 336227 Elapsed: 5000 Mbps: 2364.974 Peak Mbps: 2713.815 Rx PPS: 200830 --- 127.0.0.1 tcpbench statistics --- 3109461632 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3957.207/4183.955/4550.918/271.927 Mbps Elapsed: 6000 Mbps: 2372.299 Peak Mbps: 2713.815 Rx PPS: 201452 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1856975104 bytes received over 6.018 seconds bandwidth min/avg/max/std-dev = 2364.974/2476.156/2713.815/152.149 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.54s