START sys/kern/sosplice/perf 2024-08-25T11:21:53Z ==== 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 65481074 523.325 100.00% Conn: 1 Mbps: 523.325 Peak Mbps: 523.325 Avg Mbps: 523.325 1000 65403830 523.231 100.00% Conn: 1 Mbps: 523.231 Peak Mbps: 523.231 Avg Mbps: 523.231 2001 60557316 484.459 100.00% Conn: 1 Mbps: 484.459 Peak Mbps: 523.325 Avg Mbps: 484.459 2000 60555264 484.442 100.00% Conn: 1 Mbps: 484.442 Peak Mbps: 523.231 Avg Mbps: 484.442 3001 60017502 480.621 100.00% Conn: 1 Mbps: 480.621 Peak Mbps: 523.325 Avg Mbps: 480.621 3001 60030976 480.248 100.00% Conn: 1 Mbps: 480.248 Peak Mbps: 523.231 Avg Mbps: 480.248 4001 60491884 483.935 100.00% Conn: 1 Mbps: 483.935 Peak Mbps: 523.325 Avg Mbps: 483.935 4002 60489728 483.918 100.00% Conn: 1 Mbps: 483.918 Peak Mbps: 523.231 Avg Mbps: 483.918 5002 60361020 482.888 100.00% Conn: 1 Mbps: 482.888 Peak Mbps: 523.325 Avg Mbps: 482.888 5002 60358656 482.869 100.00% Conn: 1 Mbps: 482.869 Peak Mbps: 523.231 Avg Mbps: 482.869 --- 127.0.0.1 tcpbench statistics --- 367400680 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 480.621/491.046/523.325/16.194 Mbps 6014 60358656 477.144 100.00% Conn: 1 Mbps: 477.144 Peak Mbps: 523.231 Avg Mbps: 477.144 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 367197110 bytes received over 6.018 seconds bandwidth min/avg/max/std-dev = 477.144/488.642/523.231/15.665 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 104167744 833.342 100.00% Conn: 1 Mbps: 833.342 Peak Mbps: 833.342 Avg Mbps: 833.342 1003 104167744 830.849 100.00% Conn: 1 Mbps: 830.849 Peak Mbps: 830.849 Avg Mbps: 830.849 2000 96315904 770.527 100.00% Conn: 1 Mbps: 770.527 Peak Mbps: 833.342 Avg Mbps: 770.527 2003 96315904 770.527 100.00% Conn: 1 Mbps: 770.527 Peak Mbps: 830.849 Avg Mbps: 770.527 3000 104167744 833.342 100.00% Conn: 1 Mbps: 833.342 Peak Mbps: 833.342 Avg Mbps: 833.342 3003 104167744 833.342 100.00% Conn: 1 Mbps: 833.342 Peak Mbps: 833.342 Avg Mbps: 833.342 4001 104805706 838.446 100.00% Conn: 1 Mbps: 838.446 Peak Mbps: 838.446 Avg Mbps: 838.446 4004 104822064 838.577 100.00% Conn: 1 Mbps: 838.577 Peak Mbps: 838.577 Avg Mbps: 838.577 5003 108747984 870.855 100.00% 5002 108764342 869.245 100.00% Conn: 1 Mbps: 870.855 Peak Mbps: 870.855 Avg Mbps: 870.855 Conn: 1 Mbps: 869.245 Peak Mbps: 869.245 Avg Mbps: 869.245 --- 127.0.0.1 tcpbench statistics --- 606290908 bytes sent over 6.002 seconds bandwidth min/avg/max/std-dev = 770.527/828.830/870.855/32.511 Mbps sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 605155386 bytes received over 6.039 seconds bandwidth min/avg/max/std-dev = 770.527/828.980/869.245/32.142 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: 74.872 Peak Mbps: 74.872 Tx PPS: 6358 Elapsed: 1000 Mbps: 63.720 Peak Mbps: 63.720 Rx PPS: 5411 Elapsed: 2000 Mbps: 67.394 Peak Mbps: 74.872 Tx PPS: 5723 Elapsed: 2000 Mbps: 67.429 Peak Mbps: 67.429 Rx PPS: 5726 Elapsed: 3000 Mbps: 68.324 Peak Mbps: 74.872 Tx PPS: 5802 Elapsed: 3000 Mbps: 68.336 Peak Mbps: 68.336 Rx PPS: 5803 Elapsed: 4000 Mbps: 69.902 Peak Mbps: 74.872 Tx PPS: 5936 Elapsed: 4000 Mbps: 69.902 Peak Mbps: 69.902 Rx PPS: 5936 Elapsed: 5000 Mbps: 68.760 Peak Mbps: 74.872 Tx PPS: 5839 Elapsed: 5000 Mbps: 68.760 Peak Mbps: 69.902 Rx PPS: 5839 --- 127.0.0.1 tcpbench statistics --- 52588672 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 67.394/69.851/74.872/2.637 Mbps Elapsed: 6016 Mbps: 70.343 Peak Mbps: 70.343 Rx PPS: 5973 sleep 1 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 51193216 bytes received over 6.034 seconds bandwidth min/avg/max/std-dev = 63.720/68.082/70.343/2.176 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: 79.924 Peak Mbps: 79.924 Tx PPS: 6787 Elapsed: 1000 Mbps: 79.935 Peak Mbps: 79.935 Rx PPS: 6788 Elapsed: 2000 Mbps: 79.877 Peak Mbps: 79.924 Tx PPS: 6783 Elapsed: 2000 Mbps: 79.912 Peak Mbps: 79.935 Rx PPS: 6786 Elapsed: 3000 Mbps: 79.888 Peak Mbps: 79.924 Tx PPS: 6784 Elapsed: 3000 Mbps: 79.888 Peak Mbps: 79.935 Rx PPS: 6784 Elapsed: 4000 Mbps: 80.713 Peak Mbps: 80.713 Tx PPS: 6854 Elapsed: 4000 Mbps: 78.593 Peak Mbps: 79.935 Rx PPS: 6674 Elapsed: 5000 Mbps: 80.147 Peak Mbps: 80.713 Tx PPS: 6806 Elapsed: 5000 Mbps: 80.147 Peak Mbps: 80.147 Rx PPS: 6806 --- 127.0.0.1 tcpbench statistics --- Elapsed: 6061 Mbps: 48.437 Peak Mbps: 80.147 Rx PPS: 4113 67177664 bytes sent over 6.064 seconds bandwidth min/avg/max/std-dev = 79.877/80.110/80.713/0.317 Mbps tcpbench: sleep 1 Terminated by signal 15 --- tcpbench server statistics --- 56267200 bytes received over 6.097 seconds bandwidth min/avg/max/std-dev = 48.437/74.486/80.147/11.660 Mbps PASS sys/kern/sosplice/perf Duration 0m36.70s