START sys/kern/sosplice/perf 2024-10-15T18:29:46Z ==== 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 1204562006 9636.496 100.00% Conn: 1 Mbps: 9636.496 Peak Mbps: 9636.496 Avg Mbps: 9636.496 1000 1204480320 9635.843 100.00% Conn: 1 Mbps: 9635.843 Peak Mbps: 9635.843 Avg Mbps: 9635.843 2000 1210353874 9692.524 100.00% Conn: 1 Mbps: 9692.524 Peak Mbps: 9692.524 Avg Mbps: 9692.524 2000 1210389110 9683.113 100.00% Conn: 1 Mbps: 9683.113 Peak Mbps: 9683.113 Avg Mbps: 9683.113 3000 1210400744 9692.899 100.00% Conn: 1 Mbps: 9692.899 Peak Mbps: 9692.899 Avg Mbps: 9692.899 3000 1210403912 9683.231 100.00% Conn: 1 Mbps: 9683.231 Peak Mbps: 9683.231 Avg Mbps: 9683.231 4000 1209894878 9679.159 100.00% Conn: 1 Mbps: 9679.159 Peak Mbps: 9692.899 Avg Mbps: 9679.159 4000 1210059170 9680.473 100.00% Conn: 1 Mbps: 9680.473 Peak Mbps: 9683.231 Avg Mbps: 9680.473 5000 1213146308 9705.170 100.00% Conn: 1 Mbps: 9705.170 Peak Mbps: 9705.170 Avg Mbps: 9705.170 5000 1213176196 9705.410 100.00% Conn: 1 Mbps: 9705.410 Peak Mbps: 9705.410 Avg Mbps: 9705.410 --- 127.0.0.1 tcpbench statistics --- 7256962870 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9636.496/9681.250/9705.170/23.842 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7256962870 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9635.843/9677.614/9705.410/22.748 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 1338048242 10704.386 100.00% Conn: 1 Mbps: 10704.386 Peak Mbps: 10704.386 Avg Mbps: 10704.386 1000 1336517066 10692.137 100.00% Conn: 1 Mbps: 10692.137 Peak Mbps: 10692.137 Avg Mbps: 10692.137 2000 1344235954 10753.888 100.00% Conn: 1 Mbps: 10753.888 Peak Mbps: 10753.888 Avg Mbps: 10753.888 2000 1344274432 10754.195 100.00% Conn: 1 Mbps: 10754.195 Peak Mbps: 10754.195 Avg Mbps: 10754.195 3000 1340451498 10723.612 100.00% Conn: 1 Mbps: 10723.612 Peak Mbps: 10753.888 Avg Mbps: 10723.612 3000 1340604416 10724.835 100.00% Conn: 1 Mbps: 10724.835 Peak Mbps: 10754.195 Avg Mbps: 10724.835 4000 1342425170 10750.152 100.00% Conn: 1 Mbps: 10750.152 Peak Mbps: 10753.888 Avg Mbps: 10750.152 4000 1342439424 10750.266 100.00% Conn: 1 Mbps: 10750.266 Peak Mbps: 10754.195 Avg Mbps: 10750.266 5000 1341433058 10731.464 100.00% Conn: 1 Mbps: 10731.464 Peak Mbps: 10753.888 Avg Mbps: 10731.464 5000 1341652992 10733.224 100.00% Conn: 1 Mbps: 10733.224 Peak Mbps: 10754.195 Avg Mbps: 10733.224 --- 127.0.0.1 tcpbench statistics --- 8046937984 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 10704.386/10732.700/10753.888/18.107 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8046937984 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10692.137/10730.931/10754.195/22.192 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: 1937.635 Peak Mbps: 1937.635 Tx PPS: 164541 Elapsed: 1000 Mbps: 1937.717 Peak Mbps: 1937.717 Rx PPS: 164548 Elapsed: 2000 Mbps: 1949.842 Peak Mbps: 1949.842 Tx PPS: 165577 Elapsed: 1999 Mbps: 1949.959 Peak Mbps: 1949.959 Rx PPS: 165587 Elapsed: 3000 Mbps: 1943.959 Peak Mbps: 1949.842 Tx PPS: 165078 Elapsed: 2999 Mbps: 1943.959 Peak Mbps: 1949.959 Rx PPS: 165078 Elapsed: 4000 Mbps: 1947.527 Peak Mbps: 1949.842 Tx PPS: 165381 Elapsed: 4000 Mbps: 1947.444 Peak Mbps: 1949.959 Rx PPS: 165374 Elapsed: 5000 Mbps: 1946.149 Peak Mbps: 1949.842 Tx PPS: 165264 Elapsed: 5000 Mbps: 1946.243 Peak Mbps: 1949.959 Rx PPS: 165272 --- 127.0.0.1 tcpbench statistics --- 1458401664 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1937.635/1945.022/1949.842/4.159 Mbps Elapsed: 6002 Mbps: 1939.961 Peak Mbps: 1949.959 Rx PPS: 164738 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1458401664 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1937.717/1944.214/1949.959/4.241 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: 1806.415 Peak Mbps: 1806.415 Tx PPS: 153398 Elapsed: 999 Mbps: 1808.294 Peak Mbps: 1808.294 Rx PPS: 153557 Elapsed: 2000 Mbps: 1804.074 Peak Mbps: 1806.415 Tx PPS: 153199 Elapsed: 1999 Mbps: 1804.121 Peak Mbps: 1808.294 Rx PPS: 153203 Elapsed: 3000 Mbps: 1805.237 Peak Mbps: 1806.415 Tx PPS: 153298 Elapsed: 2999 Mbps: 1805.237 Peak Mbps: 1808.294 Rx PPS: 153298 Elapsed: 4000 Mbps: 1807.545 Peak Mbps: 1807.545 Tx PPS: 153494 Elapsed: 3999 Mbps: 1807.534 Peak Mbps: 1808.294 Rx PPS: 153493 Elapsed: 5000 Mbps: 1804.236 Peak Mbps: 1807.545 Tx PPS: 153213 Elapsed: 5000 Mbps: 1804.260 Peak Mbps: 1808.294 Rx PPS: 153215 --- 127.0.0.1 tcpbench statistics --- 1354184064 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1804.074/1805.501/1807.545/1.321 Mbps Elapsed: 6002 Mbps: 1804.031 Peak Mbps: 1808.294 Rx PPS: 153195 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1354184064 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1804.031/1805.579/1808.294/1.711 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.46s