START sys/kern/sosplice/perf 2025-04-01T01:16:12Z ==== 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 1807714380 14461.715 100.00% Conn: 1 Mbps: 14461.715 Peak Mbps: 14461.715 Avg Mbps: 14461.715 1000 1807616232 14460.930 100.00% Conn: 1 Mbps: 14460.930 Peak Mbps: 14460.930 Avg Mbps: 14460.930 2000 1819379314 14569.604 100.00% Conn: 1 Mbps: 14569.604 Peak Mbps: 14569.604 Avg Mbps: 14569.604 1999 1819412146 14569.867 100.00% Conn: 1 Mbps: 14569.867 Peak Mbps: 14569.867 Avg Mbps: 14569.867 3000 1817515726 14540.126 100.00% Conn: 1 Mbps: 14540.126 Peak Mbps: 14569.604 Avg Mbps: 14540.126 3000 1817613758 14540.910 100.00% Conn: 1 Mbps: 14540.910 Peak Mbps: 14569.867 Avg Mbps: 14540.910 4000 1822665112 14581.321 100.00% Conn: 1 Mbps: 14581.321 Peak Mbps: 14581.321 Avg Mbps: 14581.321 4000 1822599680 14580.797 100.00% Conn: 1 Mbps: 14580.797 Peak Mbps: 14580.797 Avg Mbps: 14580.797 5000 1814717956 14517.744 100.00% Conn: 1 Mbps: 14517.744 Peak Mbps: 14581.321 Avg Mbps: 14517.744 5000 1814717956 14517.744 100.00% Conn: 1 Mbps: 14517.744 Peak Mbps: 14580.797 Avg Mbps: 14517.744 --- 127.0.0.1 tcpbench statistics --- 10900930960 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14461.715/14534.102/14581.321/42.506 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10900930960 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14460.930/14534.050/14580.797/42.726 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 1991680546 15933.444 100.00% Conn: 1 Mbps: 15933.444 Peak Mbps: 15933.444 Avg Mbps: 15933.444 1000 1991713262 15933.706 100.00% Conn: 1 Mbps: 15933.706 Peak Mbps: 15933.706 Avg Mbps: 15933.706 2000 2006685236 16069.551 100.00% Conn: 1 Mbps: 16069.551 Peak Mbps: 16069.551 Avg Mbps: 16069.551 2000 2006783384 16054.267 100.00% Conn: 1 Mbps: 16054.267 Peak Mbps: 16054.267 Avg Mbps: 16054.267 3000 2006961850 16055.695 100.00% Conn: 1 Mbps: 16055.695 Peak Mbps: 16069.551 Avg Mbps: 16055.695 3000 2006896418 16055.171 100.00% Conn: 1 Mbps: 16055.171 Peak Mbps: 16055.171 Avg Mbps: 16055.171 4000 2010182332 16097.556 100.00% Conn: 1 Mbps: 16097.556 Peak Mbps: 16097.556 Avg Mbps: 16097.556 4000 2010247764 16098.080 100.00% Conn: 1 Mbps: 16098.080 Peak Mbps: 16098.080 Avg Mbps: 16098.080 5000 2006876940 16055.016 100.00% Conn: 1 Mbps: 16055.016 Peak Mbps: 16097.556 Avg Mbps: 16055.016 5000 2006778792 16054.230 100.00% Conn: 1 Mbps: 16054.230 Peak Mbps: 16098.080 Avg Mbps: 16054.230 --- 127.0.0.1 tcpbench statistics --- 12028776692 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15933.444/16042.252/16097.556/56.545 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12028776692 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15933.706/16039.091/16098.080/55.324 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: 3397.918 Peak Mbps: 3397.918 Tx PPS: 288546 Elapsed: 1000 Mbps: 2996.933 Peak Mbps: 2996.933 Rx PPS: 254495 Elapsed: 2000 Mbps: 3319.559 Peak Mbps: 3397.918 Tx PPS: 281891 Elapsed: 2000 Mbps: 2943.859 Peak Mbps: 2996.933 Rx PPS: 249987 Elapsed: 3000 Mbps: 3348.753 Peak Mbps: 3397.918 Tx PPS: 284371 Elapsed: 3000 Mbps: 3143.921 Peak Mbps: 3143.921 Rx PPS: 266976 Elapsed: 4000 Mbps: 3322.704 Peak Mbps: 3397.918 Tx PPS: 282159 Elapsed: 4000 Mbps: 2986.052 Peak Mbps: 3143.921 Rx PPS: 253571 Elapsed: 5000 Mbps: 3361.365 Peak Mbps: 3397.918 Tx PPS: 285442 Elapsed: 5000 Mbps: 2906.776 Peak Mbps: 3143.921 Rx PPS: 246839 --- 127.0.0.1 tcpbench statistics --- 2506590784 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3319.559/3350.060/3397.918/28.630 Mbps Elapsed: 6000 Mbps: 3017.129 Peak Mbps: 3143.921 Rx PPS: 256210 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2251119296 bytes received over 6.008 seconds bandwidth min/avg/max/std-dev = 2906.776/2999.112/3143.921/74.216 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: 3434.035 Peak Mbps: 3434.035 Tx PPS: 291613 Elapsed: 1000 Mbps: 2751.027 Peak Mbps: 2751.027 Rx PPS: 233613 Elapsed: 2000 Mbps: 3472.647 Peak Mbps: 3472.647 Tx PPS: 294891 Elapsed: 1999 Mbps: 2734.991 Peak Mbps: 2751.027 Rx PPS: 232251 Elapsed: 3000 Mbps: 3408.905 Peak Mbps: 3472.647 Tx PPS: 289479 Elapsed: 2999 Mbps: 2768.255 Peak Mbps: 2768.255 Rx PPS: 235076 Elapsed: 4000 Mbps: 3359.354 Peak Mbps: 3472.647 Tx PPS: 285271 Elapsed: 3999 Mbps: 2756.196 Peak Mbps: 2768.255 Rx PPS: 234052 Elapsed: 5000 Mbps: 3449.167 Peak Mbps: 3472.647 Tx PPS: 292898 Elapsed: 4999 Mbps: 2750.721 Peak Mbps: 2768.255 Rx PPS: 233587 --- 127.0.0.1 tcpbench statistics --- 2557184896 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3359.354/3424.822/3472.647/38.740 Mbps Elapsed: 5999 Mbps: 2739.156 Peak Mbps: 2768.255 Rx PPS: 232605 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2065266048 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 2734.991/2750.058/2768.255/10.924 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s