START sys/kern/sosplice/perf 2025-01-08T19:05:04Z ==== 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 2544120376 20352.963 100.00% Conn: 1 Mbps: 20352.963 Peak Mbps: 20352.963 Avg Mbps: 20352.963 999 2543989512 20372.288 100.00% Conn: 1 Mbps: 20372.288 Peak Mbps: 20372.288 Avg Mbps: 20372.288 2000 2554644870 20457.617 100.00% Conn: 1 Mbps: 20457.617 Peak Mbps: 20457.617 Avg Mbps: 20457.617 2000 2554873870 20438.991 100.00% Conn: 1 Mbps: 20438.991 Peak Mbps: 20438.991 Avg Mbps: 20438.991 3000 2556526088 20452.209 100.00% Conn: 1 Mbps: 20452.209 Peak Mbps: 20457.617 Avg Mbps: 20452.209 3000 2556558816 20452.471 100.00% Conn: 1 Mbps: 20452.471 Peak Mbps: 20452.471 Avg Mbps: 20452.471 4000 2553777932 20430.223 100.00% Conn: 1 Mbps: 20430.223 Peak Mbps: 20457.617 Avg Mbps: 20430.223 4000 2553843352 20430.747 100.00% Conn: 1 Mbps: 20430.747 Peak Mbps: 20452.471 Avg Mbps: 20430.747 5000 2554530436 20436.243 100.00% Conn: 1 Mbps: 20436.243 Peak Mbps: 20457.617 Avg Mbps: 20436.243 5000 2554563152 20436.505 100.00% Conn: 1 Mbps: 20436.505 Peak Mbps: 20452.471 Avg Mbps: 20436.505 --- 127.0.0.1 tcpbench statistics --- 15317279558 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 20352.963/20425.851/20457.617/37.798 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 15317279558 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 20372.288/20426.200/20452.471/27.882 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 2106751738 16854.014 100.00% Conn: 1 Mbps: 16854.014 Peak Mbps: 16854.014 Avg Mbps: 16854.014 1000 2106719010 16853.752 100.00% Conn: 1 Mbps: 16853.752 Peak Mbps: 16853.752 Avg Mbps: 16853.752 2000 2193896472 17568.741 100.00% Conn: 1 Mbps: 17568.741 Peak Mbps: 17568.741 Avg Mbps: 17568.741 2000 2194076410 17552.611 100.00% Conn: 1 Mbps: 17552.611 Peak Mbps: 17552.611 Avg Mbps: 17552.611 3000 2192670942 17541.368 100.00% Conn: 1 Mbps: 17541.368 Peak Mbps: 17568.741 Avg Mbps: 17541.368 3000 2192556436 17540.451 100.00% Conn: 1 Mbps: 17540.451 Peak Mbps: 17552.611 Avg Mbps: 17540.451 4000 2197477962 17579.824 100.00% Conn: 1 Mbps: 17579.824 Peak Mbps: 17579.824 Avg Mbps: 17579.824 4000 2197608802 17580.870 100.00% Conn: 1 Mbps: 17580.870 Peak Mbps: 17580.870 Avg Mbps: 17580.870 5000 2207042532 17656.340 100.00% Conn: 1 Mbps: 17656.340 Peak Mbps: 17656.340 Avg Mbps: 17656.340 5000 2206911704 17655.294 100.00% Conn: 1 Mbps: 17655.294 Peak Mbps: 17655.294 Avg Mbps: 17655.294 --- 127.0.0.1 tcpbench statistics --- 13020885812 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16854.014/17440.057/17656.340/295.494 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13020885812 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16853.752/17436.596/17655.294/294.142 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: 1035 Mbps: 3012.631 Peak Mbps: 3012.631 Tx PPS: 255828 Elapsed: 1035 Mbps: 2389.641 Peak Mbps: 2389.641 Rx PPS: 202924 Elapsed: 2035 Mbps: 2392.497 Peak Mbps: 2392.497 Rx PPS: 203167 Elapsed: 2035 Mbps: 3099.787 Peak Mbps: 3099.787 Tx PPS: 263229 Elapsed: 3035 Mbps: 2364.939 Peak Mbps: 2392.497 Rx PPS: 200827 Elapsed: 3035 Mbps: 3046.522 Peak Mbps: 3099.787 Tx PPS: 258706 Elapsed: 4035 Mbps: 2300.253 Peak Mbps: 2392.497 Rx PPS: 195334 Elapsed: 4035 Mbps: 3019.614 Peak Mbps: 3099.787 Tx PPS: 256421 Elapsed: 5035 Mbps: 2303.056 Peak Mbps: 2392.497 Rx PPS: 195572 Elapsed: 5035 Mbps: 2999.147 Peak Mbps: 3099.787 Tx PPS: 254683 --- 127.0.0.1 tcpbench statistics --- 2286141120 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2999.147/3035.540/3099.787/35.641 Mbps Elapsed: 6057 Mbps: 2271.188 Peak Mbps: 2392.497 Rx PPS: 192865 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1768948032 bytes received over 6.060 seconds bandwidth min/avg/max/std-dev = 2271.188/2336.929/2392.497/47.373 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: 3141.578 Peak Mbps: 3141.578 Tx PPS: 266778 Elapsed: 1000 Mbps: 2151.558 Peak Mbps: 2151.558 Rx PPS: 182707 Elapsed: 2000 Mbps: 3025.571 Peak Mbps: 3141.578 Tx PPS: 256926 Elapsed: 2000 Mbps: 2093.782 Peak Mbps: 2151.558 Rx PPS: 177800 Elapsed: 3000 Mbps: 2997.180 Peak Mbps: 3141.578 Tx PPS: 254516 Elapsed: 3000 Mbps: 2030.383 Peak Mbps: 2151.558 Rx PPS: 172417 Elapsed: 4000 Mbps: 3221.808 Peak Mbps: 3221.808 Tx PPS: 273591 Elapsed: 4000 Mbps: 2261.557 Peak Mbps: 2261.557 Rx PPS: 192048 Elapsed: 5000 Mbps: 3042.671 Peak Mbps: 3221.808 Tx PPS: 258379 Elapsed: 5000 Mbps: 2105.749 Peak Mbps: 2261.557 Rx PPS: 178817 --- 127.0.0.1 tcpbench statistics --- 2309052800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2997.180/3085.762/3221.808/83.606 Mbps Elapsed: 6000 Mbps: 2106.373 Peak Mbps: 2261.557 Rx PPS: 178870 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1593535680 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 2030.383/2124.900/2261.557/70.708 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.70s