START sys/kern/sosplice/perf 2025-03-19T03:22:35Z ==== 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 1788118516 14304.948 100.00% Conn: 1 Mbps: 14304.948 Peak Mbps: 14304.948 Avg Mbps: 14304.948 1000 1788118516 14304.948 100.00% Conn: 1 Mbps: 14304.948 Peak Mbps: 14304.948 Avg Mbps: 14304.948 2000 1804100974 14447.255 100.00% Conn: 1 Mbps: 14447.255 Peak Mbps: 14447.255 Avg Mbps: 14447.255 2000 1804166406 14433.331 100.00% Conn: 1 Mbps: 14433.331 Peak Mbps: 14433.331 Avg Mbps: 14433.331 3000 1800273338 14402.187 100.00% Conn: 1 Mbps: 14402.187 Peak Mbps: 14447.255 Avg Mbps: 14402.187 3000 1800208010 14416.080 100.00% Conn: 1 Mbps: 14416.080 Peak Mbps: 14433.331 Avg Mbps: 14416.080 4000 1799356086 14394.849 100.00% Conn: 1 Mbps: 14394.849 Peak Mbps: 14447.255 Avg Mbps: 14394.849 4000 1799421402 14395.371 100.00% Conn: 1 Mbps: 14395.371 Peak Mbps: 14433.331 Avg Mbps: 14395.371 5000 1799095770 14392.766 100.00% Conn: 1 Mbps: 14392.766 Peak Mbps: 14447.255 Avg Mbps: 14392.766 5000 1799128486 14393.028 100.00% Conn: 1 Mbps: 14393.028 Peak Mbps: 14433.331 Avg Mbps: 14393.028 --- 127.0.0.1 tcpbench statistics --- 10790285172 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14304.948/14388.401/14447.255/46.214 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10790285172 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14304.948/14388.552/14433.331/44.315 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 999 1987278856 15914.145 100.00% Conn: 1 Mbps: 15914.145 Peak Mbps: 15914.145 Avg Mbps: 15914.145 1000 1987458794 15899.670 100.00% Conn: 1 Mbps: 15899.670 Peak Mbps: 15899.670 Avg Mbps: 15899.670 2000 2000434388 16019.495 100.00% Conn: 1 Mbps: 16019.495 Peak Mbps: 16019.495 Avg Mbps: 16019.495 2000 2000614326 16004.915 100.00% Conn: 1 Mbps: 16004.915 Peak Mbps: 16004.915 Avg Mbps: 16004.915 3000 1999485792 15995.886 100.00% Conn: 1 Mbps: 15995.886 Peak Mbps: 16019.495 Avg Mbps: 15995.886 3000 1999453076 15995.625 100.00% Conn: 1 Mbps: 15995.625 Peak Mbps: 16004.915 Avg Mbps: 15995.625 4000 1999093588 16008.757 100.00% Conn: 1 Mbps: 16008.757 Peak Mbps: 16019.495 Avg Mbps: 16008.757 4000 1999126304 15993.010 100.00% Conn: 1 Mbps: 15993.010 Peak Mbps: 16004.915 Avg Mbps: 15993.010 5000 1999762818 15998.103 100.00% Conn: 1 Mbps: 15998.103 Peak Mbps: 16019.495 Avg Mbps: 15998.103 5000 1999762806 15998.102 100.00% Conn: 1 Mbps: 15998.102 Peak Mbps: 16004.915 Avg Mbps: 15998.102 --- 127.0.0.1 tcpbench statistics --- 11990479206 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15899.670/15984.382/16019.495/43.183 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11990479206 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15914.145/15981.159/16004.915/33.740 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: 3340.227 Peak Mbps: 3340.227 Tx PPS: 283647 Elapsed: 1000 Mbps: 3118.461 Peak Mbps: 3118.461 Rx PPS: 264815 Elapsed: 2000 Mbps: 3327.021 Peak Mbps: 3340.227 Tx PPS: 282525 Elapsed: 2000 Mbps: 2971.772 Peak Mbps: 3118.461 Rx PPS: 252358 Elapsed: 3000 Mbps: 3281.732 Peak Mbps: 3340.227 Tx PPS: 278679 Elapsed: 3000 Mbps: 2955.894 Peak Mbps: 3118.461 Rx PPS: 251010 Elapsed: 4000 Mbps: 3319.148 Peak Mbps: 3340.227 Tx PPS: 281857 Elapsed: 4000 Mbps: 2993.294 Peak Mbps: 3118.461 Rx PPS: 254186 Elapsed: 5000 Mbps: 3329.322 Peak Mbps: 3340.227 Tx PPS: 282721 Elapsed: 5000 Mbps: 3004.010 Peak Mbps: 3118.461 Rx PPS: 255096 --- 127.0.0.1 tcpbench statistics --- 2486041664 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3281.732/3319.490/3340.227/20.046 Mbps Elapsed: 6000 Mbps: 2940.267 Peak Mbps: 3118.461 Rx PPS: 249683 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2248588928 bytes received over 6.004 seconds bandwidth min/avg/max/std-dev = 2940.267/2997.283/3118.461/58.252 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: 3526.076 Peak Mbps: 3526.076 Tx PPS: 299429 Elapsed: 1000 Mbps: 2683.444 Peak Mbps: 2683.444 Rx PPS: 227874 Elapsed: 2000 Mbps: 3506.761 Peak Mbps: 3526.076 Tx PPS: 297788 Elapsed: 2000 Mbps: 2695.549 Peak Mbps: 2695.549 Rx PPS: 228901 Elapsed: 3000 Mbps: 3460.919 Peak Mbps: 3526.076 Tx PPS: 293896 Elapsed: 3000 Mbps: 2715.864 Peak Mbps: 2715.864 Rx PPS: 230627 Elapsed: 4000 Mbps: 3338.378 Peak Mbps: 3526.076 Tx PPS: 283490 Elapsed: 4000 Mbps: 2813.368 Peak Mbps: 2813.368 Rx PPS: 238906 Elapsed: 5000 Mbps: 3347.881 Peak Mbps: 3526.076 Tx PPS: 284297 Elapsed: 5000 Mbps: 2737.155 Peak Mbps: 2813.368 Rx PPS: 232435 --- 127.0.0.1 tcpbench statistics --- 2566417280 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3338.378/3436.003/3526.076/78.787 Mbps Elapsed: 6000 Mbps: 2728.275 Peak Mbps: 2813.368 Rx PPS: 231681 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2046084416 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 2683.444/2728.942/2813.368/41.936 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.63s