START sys/kern/sosplice/perf 2023-12-15T23:27:36Z ==== 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 96150452 769.204 100.00% Conn: 1 Mbps: 769.204 Peak Mbps: 769.204 Avg Mbps: 769.204 1000 96052408 768.419 100.00% Conn: 1 Mbps: 768.419 Peak Mbps: 768.419 Avg Mbps: 768.419 2001 96346504 770.772 100.00% Conn: 1 Mbps: 770.772 Peak Mbps: 770.772 Avg Mbps: 770.772 2001 96362966 770.904 100.00% Conn: 1 Mbps: 770.904 Peak Mbps: 770.904 Avg Mbps: 770.904 3002 95921328 766.604 100.00% Conn: 1 Mbps: 766.604 Peak Mbps: 770.772 Avg Mbps: 766.604 3002 95872046 766.210 100.00% Conn: 1 Mbps: 766.210 Peak Mbps: 770.904 Avg Mbps: 766.210 4003 94858206 758.108 100.00% Conn: 1 Mbps: 758.108 Peak Mbps: 770.772 Avg Mbps: 758.108 4003 94842600 758.741 100.00% Conn: 1 Mbps: 758.741 Peak Mbps: 770.904 Avg Mbps: 758.741 5003 95872234 766.978 100.00% Conn: 1 Mbps: 766.978 Peak Mbps: 770.772 Avg Mbps: 766.978 5003 95937862 768.271 100.00% Conn: 1 Mbps: 768.271 Peak Mbps: 770.904 Avg Mbps: 768.271 --- 127.0.0.1 tcpbench statistics --- 574155044 bytes sent over 6.001 seconds bandwidth min/avg/max/std-dev = 758.108/766.333/770.772/4.384 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 574155044 bytes received over 6.011 seconds bandwidth min/avg/max/std-dev = 758.741/766.509/770.904/4.159 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 1001 104817050 837.699 100.00% Conn: 1 Mbps: 837.699 Peak Mbps: 837.699 Avg Mbps: 837.699 1001 104817050 837.699 100.00% Conn: 1 Mbps: 837.699 Peak Mbps: 837.699 Avg Mbps: 837.699 2001 107495006 860.821 100.00% Conn: 1 Mbps: 860.821 Peak Mbps: 860.821 Avg Mbps: 860.821 2004 107855714 860.265 100.00% Conn: 1 Mbps: 860.265 Peak Mbps: 860.265 Avg Mbps: 860.265 3001 107069986 856.560 100.00% Conn: 1 Mbps: 856.560 Peak Mbps: 860.821 Avg Mbps: 856.560 3005 107069154 856.553 100.00% Conn: 1 Mbps: 856.553 Peak Mbps: 860.265 Avg Mbps: 856.553 4002 105520824 844.167 100.00% Conn: 1 Mbps: 844.167 Peak Mbps: 860.821 Avg Mbps: 844.167 4005 105488096 844.750 100.00% Conn: 1 Mbps: 844.750 Peak Mbps: 860.265 Avg Mbps: 844.750 5003 106987052 855.896 100.00% Conn: 1 Mbps: 855.896 Peak Mbps: 860.821 Avg Mbps: 855.896 5006 107021028 855.313 100.00% Conn: 1 Mbps: 855.313 Peak Mbps: 860.265 Avg Mbps: 855.313 --- 127.0.0.1 tcpbench statistics --- 639597530 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 837.699/851.028/860.821/8.660 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 639597530 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 837.699/850.916/860.265/8.381 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: 48.152 Peak Mbps: 48.152 Tx PPS: 4089 Elapsed: 1000 Mbps: 48.152 Peak Mbps: 48.152 Rx PPS: 4089 Elapsed: 2000 Mbps: 49.424 Peak Mbps: 49.424 Tx PPS: 4197 Elapsed: 2000 Mbps: 49.436 Peak Mbps: 49.436 Rx PPS: 4198 Elapsed: 3000 Mbps: 49.718 Peak Mbps: 49.718 Tx PPS: 4222 Elapsed: 3000 Mbps: 49.718 Peak Mbps: 49.718 Rx PPS: 4222 Elapsed: 4000 Mbps: 49.671 Peak Mbps: 49.718 Tx PPS: 4218 Elapsed: 4000 Mbps: 49.659 Peak Mbps: 49.718 Rx PPS: 4217 Elapsed: 5000 Mbps: 50.581 Peak Mbps: 50.581 Tx PPS: 4295 Elapsed: 5000 Mbps: 50.543 Peak Mbps: 50.543 Rx PPS: 4292 --- 127.0.0.1 tcpbench statistics --- 37098816 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 48.152/49.509/50.581/0.783 Mbps Elapsed: 6009 Mbps: 48.891 Peak Mbps: 50.543 Rx PPS: 4151 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 37098816 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 48.152/49.400/50.543/0.741 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: 71.339 Peak Mbps: 71.339 Tx PPS: 6058 Elapsed: 999 Mbps: 71.410 Peak Mbps: 71.410 Rx PPS: 6064 Elapsed: 2000 Mbps: 73.635 Peak Mbps: 73.635 Tx PPS: 6253 Elapsed: 2000 Mbps: 73.635 Peak Mbps: 73.635 Rx PPS: 6253 Elapsed: 3000 Mbps: 73.968 Peak Mbps: 73.968 Rx PPS: 6281 Elapsed: 3000 Mbps: 73.906 Peak Mbps: 73.906 Tx PPS: 6276 Elapsed: 4000 Mbps: 74.059 Peak Mbps: 74.059 Rx PPS: 6289 Elapsed: 4000 Mbps: 74.071 Peak Mbps: 74.071 Tx PPS: 6290 Elapsed: 5000 Mbps: 72.846 Peak Mbps: 74.071 Tx PPS: 6186 Elapsed: 5000 Mbps: 72.811 Peak Mbps: 74.059 Rx PPS: 6183 --- 127.0.0.1 tcpbench statistics --- 54779008 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 71.339/73.160/74.071/1.003 Mbps Elapsed: 6009 Mbps: 71.918 Peak Mbps: 74.059 Rx PPS: 6107 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 54779008 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 71.410/72.967/74.059/1.016 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m35.03s