START sys/kern/sosplice/perf 2024-08-05T11:42:19Z ==== 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 1001 66217184 529.208 100.00% Conn: 1 Mbps: 529.208 Peak Mbps: 529.208 Avg Mbps: 529.208 1001 66149538 528.668 100.00% Conn: 1 Mbps: 528.668 Peak Mbps: 528.668 Avg Mbps: 528.668 2001 63812558 510.500 100.00% Conn: 1 Mbps: 510.500 Peak Mbps: 529.208 Avg Mbps: 510.500 2001 63806422 510.451 100.00% Conn: 1 Mbps: 510.451 Peak Mbps: 528.668 Avg Mbps: 510.451 3001 60819044 486.552 100.00% Conn: 1 Mbps: 486.552 Peak Mbps: 529.208 Avg Mbps: 486.552 3001 60751872 486.015 100.00% Conn: 1 Mbps: 486.015 Peak Mbps: 528.668 Avg Mbps: 486.015 4002 60949908 487.599 100.00% Conn: 1 Mbps: 487.599 Peak Mbps: 529.208 Avg Mbps: 487.599 4001 60948480 487.588 100.00% Conn: 1 Mbps: 487.588 Peak Mbps: 528.668 Avg Mbps: 487.588 5002 60753612 486.515 100.00% Conn: 1 Mbps: 486.515 Peak Mbps: 529.208 Avg Mbps: 486.515 5003 60817408 486.053 100.00% Conn: 1 Mbps: 486.053 Peak Mbps: 528.668 Avg Mbps: 486.053 --- 127.0.0.1 tcpbench statistics --- 373240486 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 486.515/500.075/529.208/17.204 Mbps 6014 60555264 479.171 100.00% sleep 1 Conn: 1 Mbps: 479.171 Peak Mbps: 528.668 Avg Mbps: 479.171 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 373028984 bytes received over 6.031 seconds bandwidth min/avg/max/std-dev = 479.171/496.324/528.668/17.455 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 104297984 833.550 100.00% Conn: 1 Mbps: 833.550 Peak Mbps: 833.550 Avg Mbps: 833.550 1002 104396120 833.502 100.00% Conn: 1 Mbps: 833.502 Peak Mbps: 833.502 Avg Mbps: 833.502 2002 109549202 875.518 100.00% Conn: 1 Mbps: 875.518 Peak Mbps: 875.518 Avg Mbps: 875.518 2005 108257764 864.333 100.00% Conn: 1 Mbps: 864.333 Peak Mbps: 864.333 Avg Mbps: 864.333 3002 82244868 658.618 100.00% Conn: 1 Mbps: 658.618 Peak Mbps: 875.518 Avg Mbps: 658.618 3007 82398538 657.873 100.00% Conn: 1 Mbps: 657.873 Peak Mbps: 864.333 Avg Mbps: 657.873 4002 81573638 652.589 100.00% Conn: 1 Mbps: 652.589 Peak Mbps: 875.518 Avg Mbps: 652.589 4008 81526784 651.563 100.00% Conn: 1 Mbps: 651.563 Peak Mbps: 864.333 Avg Mbps: 651.563 5004 81115650 648.277 100.00% Conn: 1 Mbps: 648.277 Peak Mbps: 875.518 Avg Mbps: 648.277 5009 81264640 649.468 100.00% Conn: 1 Mbps: 649.468 Peak Mbps: 864.333 Avg Mbps: 649.468 --- 127.0.0.1 tcpbench statistics --- 543103004 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 648.277/733.710/875.518/99.595 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 541729926 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 649.468/731.348/864.333/96.529 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.265 Peak Mbps: 68.265 Tx PPS: 5797 Elapsed: 1000 Mbps: 68.277 Peak Mbps: 68.277 Rx PPS: 5798 Elapsed: 2000 Mbps: 74.860 Peak Mbps: 74.860 Tx PPS: 6357 Elapsed: 2000 Mbps: 67.179 Peak Mbps: 68.277 Rx PPS: 5704 Elapsed: 3000 Mbps: 71.068 Peak Mbps: 74.860 Tx PPS: 6035 Elapsed: 3000 Mbps: 71.822 Peak Mbps: 71.822 Rx PPS: 6099 Elapsed: 4000 Mbps: 86.805 Peak Mbps: 86.805 Tx PPS: 7371 Elapsed: 4015 Mbps: 61.676 Peak Mbps: 71.822 Rx PPS: 5237 Elapsed: 5000 Mbps: 72.823 Peak Mbps: 86.805 Tx PPS: 6184 Elapsed: 5015 Mbps: 69.361 Peak Mbps: 71.822 Rx PPS: 5890 --- 127.0.0.1 tcpbench statistics --- 55238272 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 68.265/74.764/86.805/6.398 Mbps Elapsed: 6019 Mbps: 66.911 Peak Mbps: 71.822 Rx PPS: 5681 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 50785472 bytes received over 6.035 seconds bandwidth min/avg/max/std-dev = 61.676/67.538/71.822/3.085 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: 80.607 Peak Mbps: 80.607 Tx PPS: 6845 Elapsed: 1000 Mbps: 80.618 Peak Mbps: 80.618 Rx PPS: 6846 Elapsed: 2000 Mbps: 80.442 Peak Mbps: 80.607 Tx PPS: 6831 Elapsed: 2000 Mbps: 80.477 Peak Mbps: 80.618 Rx PPS: 6834 Elapsed: 3000 Mbps: 80.583 Peak Mbps: 80.607 Tx PPS: 6843 Elapsed: 3000 Mbps: 80.583 Peak Mbps: 80.618 Rx PPS: 6843 Elapsed: 4000 Mbps: 80.995 Peak Mbps: 80.995 Tx PPS: 6878 Elapsed: 4000 Mbps: 79.947 Peak Mbps: 80.618 Rx PPS: 6789 Elapsed: 5000 Mbps: 80.748 Peak Mbps: 80.995 Tx PPS: 6857 Elapsed: 5000 Mbps: 80.760 Peak Mbps: 80.760 Rx PPS: 6858 --- 127.0.0.1 tcpbench statistics --- 60851008 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 80.442/80.675/80.995/0.187 Mbps Elapsed: 6016 Mbps: 72.617 Peak Mbps: 80.760 Rx PPS: 6166 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 59511488 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 72.617/79.167/80.760/2.941 Mbps PASS sys/kern/sosplice/perf Duration 0m36.62s