START sys/kern/sosplice/perf 2024-12-22T19:16:39Z ==== run-tcp-copy ==== cc -O2 -pipe -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -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 1225390918 9803.127 100.00% Conn: 1 Mbps: 9803.127 Peak Mbps: 9803.127 Avg Mbps: 9803.127 1000 1225210980 9801.688 100.00% Conn: 1 Mbps: 9801.688 Peak Mbps: 9801.688 Avg Mbps: 9801.688 2000 1229797788 9848.231 100.00% Conn: 1 Mbps: 9848.231 Peak Mbps: 9848.231 Avg Mbps: 9848.231 2000 1229977726 9839.822 100.00% Conn: 1 Mbps: 9839.822 Peak Mbps: 9839.822 Avg Mbps: 9839.822 3000 1234233184 9873.865 100.00% Conn: 1 Mbps: 9873.865 Peak Mbps: 9873.865 Avg Mbps: 9873.865 3000 1234217658 9873.741 100.00% Conn: 1 Mbps: 9873.741 Peak Mbps: 9873.741 Avg Mbps: 9873.741 4000 1231040780 9848.326 100.00% Conn: 1 Mbps: 9848.326 Peak Mbps: 9873.865 Avg Mbps: 9848.326 4000 1231072664 9848.581 100.00% Conn: 1 Mbps: 9848.581 Peak Mbps: 9873.741 Avg Mbps: 9848.581 5000 1234142300 9873.138 100.00% Conn: 1 Mbps: 9873.138 Peak Mbps: 9873.865 Avg Mbps: 9873.138 5000 1234110000 9872.880 100.00% Conn: 1 Mbps: 9872.880 Peak Mbps: 9873.741 Avg Mbps: 9872.880 --- 127.0.0.1 tcpbench statistics --- 7388234712 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9803.127/9849.338/9873.865/25.713 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7388234712 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9801.688/9847.342/9873.741/26.425 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 1250436754 10003.494 100.00% Conn: 1 Mbps: 10003.494 Peak Mbps: 10003.494 Avg Mbps: 10003.494 1000 1250338606 10002.709 100.00% Conn: 1 Mbps: 10002.709 Peak Mbps: 10002.709 Avg Mbps: 10002.709 2000 1253330860 10026.647 100.00% Conn: 1 Mbps: 10026.647 Peak Mbps: 10026.647 Avg Mbps: 10026.647 2000 1253445366 10027.563 100.00% Conn: 1 Mbps: 10027.563 Peak Mbps: 10027.563 Avg Mbps: 10027.563 3000 1257149186 10057.193 100.00% Conn: 1 Mbps: 10057.193 Peak Mbps: 10057.193 Avg Mbps: 10057.193 3000 1257296824 10058.375 100.00% Conn: 1 Mbps: 10058.375 Peak Mbps: 10058.375 Avg Mbps: 10058.375 4000 1251237530 10009.900 100.00% Conn: 1 Mbps: 10009.900 Peak Mbps: 10057.193 Avg Mbps: 10009.900 4000 1251204386 10019.655 100.00% Conn: 1 Mbps: 10019.655 Peak Mbps: 10058.375 Avg Mbps: 10019.655 5000 1256388080 10051.105 100.00% Conn: 1 Mbps: 10051.105 Peak Mbps: 10057.193 Avg Mbps: 10051.105 5000 1256486656 10051.893 100.00% Conn: 1 Mbps: 10051.893 Peak Mbps: 10058.375 Avg Mbps: 10051.893 --- 127.0.0.1 tcpbench statistics --- 7522905370 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10003.494/10032.196/10058.375/20.376 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7522905370 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10002.709/10029.511/10057.193/21.651 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: 1943.723 Peak Mbps: 1943.723 Tx PPS: 165058 Elapsed: 1000 Mbps: 1943.817 Peak Mbps: 1943.817 Rx PPS: 165066 Elapsed: 2000 Mbps: 1948.875 Peak Mbps: 1948.875 Tx PPS: 165495 Elapsed: 1999 Mbps: 1948.981 Peak Mbps: 1948.981 Rx PPS: 165504 Elapsed: 3000 Mbps: 1949.623 Peak Mbps: 1949.623 Tx PPS: 165559 Elapsed: 2999 Mbps: 1949.576 Peak Mbps: 1949.576 Rx PPS: 165555 Elapsed: 4000 Mbps: 1950.094 Peak Mbps: 1950.094 Tx PPS: 165599 Elapsed: 3999 Mbps: 1950.106 Peak Mbps: 1950.106 Rx PPS: 165600 Elapsed: 5000 Mbps: 1951.613 Peak Mbps: 1951.613 Tx PPS: 165728 Elapsed: 4999 Mbps: 1951.636 Peak Mbps: 1951.636 Rx PPS: 165730 --- 127.0.0.1 tcpbench statistics --- 1461310336 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1943.723/1948.785/1951.613/2.685 Mbps Elapsed: 6002 Mbps: 1944.427 Peak Mbps: 1951.636 Rx PPS: 165117 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1461310336 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1943.817/1948.090/1951.636/2.925 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: 1808.735 Peak Mbps: 1808.735 Tx PPS: 153595 Elapsed: 1000 Mbps: 1808.817 Peak Mbps: 1808.817 Rx PPS: 153602 Elapsed: 2000 Mbps: 1794.479 Peak Mbps: 1808.735 Tx PPS: 152384 Elapsed: 1999 Mbps: 1794.537 Peak Mbps: 1808.817 Rx PPS: 152389 Elapsed: 3000 Mbps: 1809.276 Peak Mbps: 1809.276 Tx PPS: 153641 Elapsed: 2999 Mbps: 1809.312 Peak Mbps: 1809.312 Rx PPS: 153644 Elapsed: 4000 Mbps: 1807.086 Peak Mbps: 1809.276 Tx PPS: 153455 Elapsed: 3999 Mbps: 1807.086 Peak Mbps: 1809.312 Rx PPS: 153455 Elapsed: 5000 Mbps: 1810.218 Peak Mbps: 1810.218 Tx PPS: 153721 Elapsed: 4999 Mbps: 1810.218 Peak Mbps: 1810.218 Rx PPS: 153721 --- 127.0.0.1 tcpbench statistics --- 1354680128 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1794.479/1805.959/1810.218/5.830 Mbps Elapsed: 6002 Mbps: 1805.653 Peak Mbps: 1810.218 Rx PPS: 153333 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1354680128 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1794.537/1805.937/1810.218/5.313 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s