START sys/kern/sosplice/perf 2024-01-25T10:41:16Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -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 492818578 3942.549 100.00% Conn: 1 Mbps: 3942.549 Peak Mbps: 3942.549 Avg Mbps: 3942.549 1000 492753146 3942.025 100.00% Conn: 1 Mbps: 3942.025 Peak Mbps: 3942.025 Avg Mbps: 3942.025 2000 468835658 3750.685 100.00% Conn: 1 Mbps: 3750.685 Peak Mbps: 3942.549 Avg Mbps: 3750.685 2000 468901090 3751.209 100.00% Conn: 1 Mbps: 3751.209 Peak Mbps: 3942.025 Avg Mbps: 3751.209 3000 464366424 3714.931 100.00% Conn: 1 Mbps: 3714.931 Peak Mbps: 3942.549 Avg Mbps: 3714.931 3000 464252022 3714.016 100.00% Conn: 1 Mbps: 3714.016 Peak Mbps: 3942.025 Avg Mbps: 3714.016 4000 457921136 3667.036 100.00% Conn: 1 Mbps: 3667.036 Peak Mbps: 3942.549 Avg Mbps: 3667.036 4000 458035538 3664.284 100.00% Conn: 1 Mbps: 3664.284 Peak Mbps: 3942.025 Avg Mbps: 3664.284 5000 473755204 3790.042 100.00% Conn: 1 Mbps: 3790.042 Peak Mbps: 3942.549 Avg Mbps: 3790.042 5000 473722684 3789.781 100.00% Conn: 1 Mbps: 3789.781 Peak Mbps: 3942.025 Avg Mbps: 3789.781 --- 127.0.0.1 tcpbench statistics --- 2827640762 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3667.036/3773.049/3942.549/93.953 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2827640762 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 3664.284/3772.263/3942.025/94.468 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 542001278 4336.010 100.00% Conn: 1 Mbps: 4336.010 Peak Mbps: 4336.010 Avg Mbps: 4336.010 1000 542246648 4337.973 100.00% Conn: 1 Mbps: 4337.973 Peak Mbps: 4337.973 Avg Mbps: 4337.973 2000 524941626 4199.533 100.00% Conn: 1 Mbps: 4199.533 Peak Mbps: 4336.010 Avg Mbps: 4199.533 2000 524696256 4201.772 100.00% Conn: 1 Mbps: 4201.772 Peak Mbps: 4337.973 Avg Mbps: 4201.772 3000 521785184 4174.281 100.00% Conn: 1 Mbps: 4174.281 Peak Mbps: 4336.010 Avg Mbps: 4174.281 3000 521834258 4174.674 100.00% Conn: 1 Mbps: 4174.674 Peak Mbps: 4337.973 Avg Mbps: 4174.674 4000 523144230 4185.154 100.00% Conn: 1 Mbps: 4185.154 Peak Mbps: 4336.010 Avg Mbps: 4185.154 4000 523095156 4184.761 100.00% Conn: 1 Mbps: 4184.761 Peak Mbps: 4337.973 Avg Mbps: 4184.761 5000 522127418 4177.019 100.00% Conn: 1 Mbps: 4177.019 Peak Mbps: 4336.010 Avg Mbps: 4177.019 5000 522127418 4177.019 100.00% Conn: 1 Mbps: 4177.019 Peak Mbps: 4337.973 Avg Mbps: 4177.019 --- 127.0.0.1 tcpbench statistics --- 3155143578 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 4174.281/4214.400/4336.010/61.437 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 3155143578 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 4174.674/4215.240/4337.973/62.097 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: 425.455 Peak Mbps: 425.455 Tx PPS: 36129 Elapsed: 1000 Mbps: 408.557 Peak Mbps: 408.557 Rx PPS: 34694 Elapsed: 2000 Mbps: 455.719 Peak Mbps: 455.719 Tx PPS: 38699 Elapsed: 2000 Mbps: 412.914 Peak Mbps: 412.914 Rx PPS: 35064 Elapsed: 3000 Mbps: 436.748 Peak Mbps: 455.719 Tx PPS: 37088 Elapsed: 3000 Mbps: 428.646 Peak Mbps: 428.646 Rx PPS: 36400 Elapsed: 4000 Mbps: 468.320 Peak Mbps: 468.320 Tx PPS: 39769 Elapsed: 4000 Mbps: 410.888 Peak Mbps: 428.646 Rx PPS: 34892 Elapsed: 5000 Mbps: 447.135 Peak Mbps: 468.320 Tx PPS: 37970 Elapsed: 5000 Mbps: 423.383 Peak Mbps: 428.646 Rx PPS: 35953 --- 127.0.0.1 tcpbench statistics --- 344243392 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 425.455/446.675/468.320/14.828 Mbps Elapsed: 6006 Mbps: 385.143 Peak Mbps: 428.646 Rx PPS: 32705 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 308928640 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 385.143/411.589/428.646/13.789 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: 462.820 Peak Mbps: 462.820 Tx PPS: 39302 Elapsed: 999 Mbps: 437.728 Peak Mbps: 437.728 Rx PPS: 37171 Elapsed: 2000 Mbps: 456.002 Peak Mbps: 462.820 Tx PPS: 38723 Elapsed: 1999 Mbps: 455.268 Peak Mbps: 455.268 Rx PPS: 38660 Elapsed: 3000 Mbps: 467.978 Peak Mbps: 467.978 Tx PPS: 39740 Elapsed: 3000 Mbps: 457.639 Peak Mbps: 457.639 Rx PPS: 38862 Elapsed: 4000 Mbps: 485.124 Peak Mbps: 485.124 Tx PPS: 41196 Elapsed: 4000 Mbps: 427.610 Peak Mbps: 457.639 Rx PPS: 36312 Elapsed: 5000 Mbps: 515.930 Peak Mbps: 515.930 Tx PPS: 43812 Elapsed: 5000 Mbps: 378.469 Peak Mbps: 457.639 Rx PPS: 32139 --- 127.0.0.1 tcpbench statistics --- 359736192 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 456.002/477.571/515.930/21.463 Mbps Elapsed: 6006 Mbps: 414.747 Peak Mbps: 457.639 Rx PPS: 35219 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 321632000 bytes received over 6.006 seconds bandwidth min/avg/max/std-dev = 378.469/428.577/457.639/26.907 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m33.25s