START sys/kern/sosplice/perf 2024-05-05T12:40:13Z ==== 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 69636006 557.088 100.00% Conn: 1 Mbps: 557.088 Peak Mbps: 557.088 Avg Mbps: 557.088 1003 69636006 555.422 100.00% Conn: 1 Mbps: 555.422 Peak Mbps: 555.422 Avg Mbps: 555.422 2001 65252062 523.587 100.00% Conn: 1 Mbps: 523.587 Peak Mbps: 555.422 Avg Mbps: 523.587 2000 65087456 520.700 100.00% Conn: 1 Mbps: 520.700 Peak Mbps: 557.088 Avg Mbps: 520.700 3001 60851760 486.814 100.00% Conn: 1 Mbps: 486.814 Peak Mbps: 555.422 Avg Mbps: 486.814 3000 60882944 487.064 100.00% Conn: 1 Mbps: 487.064 Peak Mbps: 557.088 Avg Mbps: 487.064 4002 61211636 489.693 100.00% Conn: 1 Mbps: 489.693 Peak Mbps: 555.422 Avg Mbps: 489.693 4001 61210624 489.685 100.00% Conn: 1 Mbps: 489.685 Peak Mbps: 557.088 Avg Mbps: 489.685 5002 61080772 488.646 100.00% Conn: 1 Mbps: 488.646 Peak Mbps: 555.422 Avg Mbps: 488.646 5001 61079552 488.636 100.00% Conn: 1 Mbps: 488.636 Peak Mbps: 557.088 Avg Mbps: 488.636 --- 127.0.0.1 tcpbench statistics --- 379047576 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 486.814/508.832/555.422/27.007 Mbps 6015 60948480 481.331 100.00% sleep 1 Conn: 1 Mbps: 481.331 Peak Mbps: 557.088 Avg Mbps: 481.331 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 378845062 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 481.331/504.084/557.088/26.891 Mbps ==== 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 1001 106392432 850.289 100.00% Conn: 1 Mbps: 850.289 Peak Mbps: 850.289 Avg Mbps: 850.289 1001 106490568 851.073 100.00% Conn: 1 Mbps: 851.073 Peak Mbps: 851.073 Avg Mbps: 851.073 2002 107570208 860.562 100.00% Conn: 1 Mbps: 860.562 Peak Mbps: 860.562 Avg Mbps: 860.562 2002 107570208 860.562 100.00% Conn: 1 Mbps: 860.562 Peak Mbps: 860.562 Avg Mbps: 860.562 3002 106261568 850.093 100.00% Conn: 1 Mbps: 850.093 Peak Mbps: 860.562 Avg Mbps: 850.093 3003 106261568 850.093 100.00% Conn: 1 Mbps: 850.093 Peak Mbps: 860.562 Avg Mbps: 850.093 4003 107701072 861.609 100.00% Conn: 1 Mbps: 861.609 Peak Mbps: 861.609 Avg Mbps: 861.609 4004 107717442 860.879 100.00% Conn: 1 Mbps: 860.879 Peak Mbps: 860.879 Avg Mbps: 860.879 5004 106915888 855.327 100.00% Conn: 1 Mbps: 855.327 Peak Mbps: 861.609 Avg Mbps: 855.327 5004 106899518 855.196 100.00% Conn: 1 Mbps: 855.196 Peak Mbps: 860.879 Avg Mbps: 855.196 --- 127.0.0.1 tcpbench statistics --- 641495328 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 850.093/855.576/861.609/4.885 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 641495328 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 850.093/855.560/860.879/4.549 Mbps ==== 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: 75.131 Peak Mbps: 75.131 Tx PPS: 6380 Elapsed: 1000 Mbps: 62.849 Peak Mbps: 62.849 Rx PPS: 5337 Elapsed: 2000 Mbps: 77.740 Peak Mbps: 77.740 Tx PPS: 6601 Elapsed: 2000 Mbps: 63.414 Peak Mbps: 63.414 Rx PPS: 5385 Elapsed: 3000 Mbps: 86.683 Peak Mbps: 86.683 Tx PPS: 7361 Elapsed: 3000 Mbps: 58.480 Peak Mbps: 63.414 Rx PPS: 4966 Elapsed: 4000 Mbps: 71.740 Peak Mbps: 86.683 Tx PPS: 6092 Elapsed: 4006 Mbps: 67.012 Peak Mbps: 67.012 Rx PPS: 5690 Elapsed: 5000 Mbps: 80.583 Peak Mbps: 86.683 Tx PPS: 6843 Elapsed: 5006 Mbps: 62.495 Peak Mbps: 67.012 Rx PPS: 5307 --- 127.0.0.1 tcpbench statistics --- 58484032 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 71.740/78.376/86.683/5.076 Mbps Elapsed: 6016 Mbps: 62.661 Peak Mbps: 67.012 Rx PPS: 5321 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 47226176 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 58.480/62.818/67.012/2.480 Mbps ==== 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: 89.698 Peak Mbps: 89.698 Tx PPS: 7617 Elapsed: 1000 Mbps: 89.710 Peak Mbps: 89.710 Rx PPS: 7618 Elapsed: 2000 Mbps: 89.662 Peak Mbps: 89.698 Tx PPS: 7614 Elapsed: 2000 Mbps: 89.698 Peak Mbps: 89.710 Rx PPS: 7617 Elapsed: 3000 Mbps: 92.701 Peak Mbps: 92.701 Tx PPS: 7872 Elapsed: 3000 Mbps: 83.763 Peak Mbps: 89.710 Rx PPS: 7113 Elapsed: 4000 Mbps: 90.169 Peak Mbps: 92.701 Tx PPS: 7657 Elapsed: 4000 Mbps: 90.169 Peak Mbps: 90.169 Rx PPS: 7657 Elapsed: 5000 Mbps: 90.825 Peak Mbps: 92.701 Tx PPS: 7712 Elapsed: 5026 Mbps: 85.465 Peak Mbps: 90.169 Rx PPS: 7257 --- 127.0.0.1 tcpbench statistics --- 67909248 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 89.662/90.611/92.701/1.126 Mbps tcpbench: sleep 1 Terminated by signal 15 --- tcpbench server statistics --- 66028032 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 83.763/87.761/90.169/2.631 Mbps PASS sys/kern/sosplice/perf Duration 0m36.62s