START sys/kern/sosplice/perf 2024-08-15T11:47:07Z ==== 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 68621914 548.975 100.00% Conn: 1 Mbps: 548.975 Peak Mbps: 548.975 Avg Mbps: 548.975 1004 68687242 547.309 100.00% Conn: 1 Mbps: 547.309 Peak Mbps: 547.309 Avg Mbps: 547.309 2001 62078610 498.123 100.00% Conn: 1 Mbps: 498.123 Peak Mbps: 547.309 Avg Mbps: 498.123 2001 62034542 495.781 100.00% Conn: 1 Mbps: 495.781 Peak Mbps: 548.975 Avg Mbps: 495.781 3002 61113488 488.908 100.00% Conn: 1 Mbps: 488.908 Peak Mbps: 547.309 Avg Mbps: 488.908 3002 61077384 488.619 100.00% Conn: 1 Mbps: 488.619 Peak Mbps: 548.975 Avg Mbps: 488.619 4002 60540958 484.328 100.00% Conn: 1 Mbps: 484.328 Peak Mbps: 547.309 Avg Mbps: 484.328 4002 60555264 484.442 100.00% Conn: 1 Mbps: 484.442 Peak Mbps: 548.975 Avg Mbps: 484.442 5003 60622748 484.982 100.00% Conn: 1 Mbps: 484.982 Peak Mbps: 547.309 Avg Mbps: 484.982 5002 60620800 484.966 100.00% Conn: 1 Mbps: 484.966 Peak Mbps: 548.975 Avg Mbps: 484.966 --- 127.0.0.1 tcpbench statistics --- 373600362 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 484.328/500.730/547.309/23.804 Mbps 6015 60489728 478.180 100.00% sleep 1 Conn: 1 Mbps: 478.180 Peak Mbps: 548.975 Avg Mbps: 478.180 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 373399632 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 478.180/496.827/548.975/23.908 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 99603670 796.033 100.00% Conn: 1 Mbps: 796.033 Peak Mbps: 796.033 Avg Mbps: 796.033 1002 99701806 796.022 100.00% Conn: 1 Mbps: 796.022 Peak Mbps: 796.022 Avg Mbps: 796.022 2002 106130704 849.046 100.00% Conn: 1 Mbps: 849.046 Peak Mbps: 849.046 Avg Mbps: 849.046 2002 106147074 849.177 100.00% Conn: 1 Mbps: 849.177 Peak Mbps: 849.177 Avg Mbps: 849.177 3002 109925760 879.406 100.00% Conn: 1 Mbps: 879.406 Peak Mbps: 879.406 Avg Mbps: 879.406 3002 109925760 879.406 100.00% Conn: 1 Mbps: 879.406 Peak Mbps: 879.406 Avg Mbps: 879.406 4002 110056624 880.453 100.00% Conn: 1 Mbps: 880.453 Peak Mbps: 880.453 Avg Mbps: 880.453 4003 110040254 880.322 100.00% Conn: 1 Mbps: 880.322 Peak Mbps: 880.322 Avg Mbps: 880.322 5003 107439344 859.515 100.00% Conn: 1 Mbps: 859.515 Peak Mbps: 880.453 Avg Mbps: 859.515 5004 107455714 858.787 100.00% Conn: 1 Mbps: 858.787 Peak Mbps: 880.322 Avg Mbps: 858.787 --- 127.0.0.1 tcpbench statistics --- 642427542 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 796.033/852.891/880.453/30.836 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 642427542 bytes received over 6.036 seconds bandwidth min/avg/max/std-dev = 796.022/852.743/880.322/30.783 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: 68.536 Peak Mbps: 68.536 Tx PPS: 5820 Elapsed: 1000 Mbps: 68.548 Peak Mbps: 68.548 Rx PPS: 5821 Elapsed: 2000 Mbps: 68.699 Peak Mbps: 68.699 Tx PPS: 5833 Elapsed: 2000 Mbps: 68.666 Peak Mbps: 68.666 Rx PPS: 5831 Elapsed: 3000 Mbps: 71.517 Peak Mbps: 71.517 Tx PPS: 6073 Elapsed: 3041 Mbps: 57.885 Peak Mbps: 68.666 Rx PPS: 4915 Elapsed: 4000 Mbps: 79.618 Peak Mbps: 79.618 Tx PPS: 6761 Elapsed: 4041 Mbps: 47.245 Peak Mbps: 68.666 Rx PPS: 4012 Elapsed: 5000 Mbps: 82.314 Peak Mbps: 82.314 Tx PPS: 6989 Elapsed: 5041 Mbps: 64.426 Peak Mbps: 68.666 Rx PPS: 5471 --- 127.0.0.1 tcpbench statistics --- 55541504 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 68.536/74.137/82.314/5.739 Mbps tcpbench: sleep 1 Terminated by signal 15 --- tcpbench server statistics --- 47012736 bytes received over 6.033 seconds bandwidth min/avg/max/std-dev = 47.245/61.354/68.666/8.072 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: 84.175 Peak Mbps: 84.175 Tx PPS: 7148 Elapsed: 1000 Mbps: 75.790 Peak Mbps: 75.790 Rx PPS: 6436 Elapsed: 2000 Mbps: 81.490 Peak Mbps: 84.175 Tx PPS: 6920 Elapsed: 2000 Mbps: 81.513 Peak Mbps: 81.513 Rx PPS: 6922 Elapsed: 3000 Mbps: 109.623 Peak Mbps: 109.623 Tx PPS: 9309 Elapsed: 3148 Mbps: 5.205 Peak Mbps: 81.513 Rx PPS: 442 Elapsed: 4000 Mbps: 86.024 Peak Mbps: 109.623 Tx PPS: 7305 Elapsed: 4148 Mbps: 81.867 Peak Mbps: 81.867 Rx PPS: 6952 Elapsed: 5000 Mbps: 81.619 Peak Mbps: 109.623 Tx PPS: 6931 Elapsed: 5148 Mbps: 81.549 Peak Mbps: 81.867 Rx PPS: 6925 --- 127.0.0.1 tcpbench statistics --- 65573184 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 81.490/88.586/109.623/10.653 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 49537216 bytes received over 6.020 seconds bandwidth min/avg/max/std-dev = 5.205/65.185/81.867/30.076 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m36.70s