START sys/kern/sosplice/perf 2024-06-06T01:30:31Z ==== 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 1588432470 12707.460 100.00% Conn: 1 Mbps: 12707.460 Peak Mbps: 12707.460 Avg Mbps: 12707.460 1000 1588285768 12706.286 100.00% Conn: 1 Mbps: 12706.286 Peak Mbps: 12706.286 Avg Mbps: 12706.286 2000 1593713992 12762.474 100.00% Conn: 1 Mbps: 12762.474 Peak Mbps: 12762.474 Avg Mbps: 12762.474 2000 1593748096 12749.985 100.00% Conn: 1 Mbps: 12749.985 Peak Mbps: 12749.985 Avg Mbps: 12749.985 3000 1592537980 12740.304 100.00% Conn: 1 Mbps: 12740.304 Peak Mbps: 12762.474 Avg Mbps: 12740.304 3000 1592540024 12753.073 100.00% Conn: 1 Mbps: 12753.073 Peak Mbps: 12753.073 Avg Mbps: 12753.073 4000 1588141014 12705.128 100.00% Conn: 1 Mbps: 12705.128 Peak Mbps: 12762.474 Avg Mbps: 12705.128 4000 1588175386 12705.403 100.00% Conn: 1 Mbps: 12705.403 Peak Mbps: 12753.073 Avg Mbps: 12705.403 5000 1597147900 12777.183 100.00% Conn: 1 Mbps: 12777.183 Peak Mbps: 12777.183 Avg Mbps: 12777.183 5000 1597153560 12777.228 100.00% Conn: 1 Mbps: 12777.228 Peak Mbps: 12777.228 Avg Mbps: 12777.228 --- 127.0.0.1 tcpbench statistics --- 9553412478 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12705.128/12738.510/12777.183/28.815 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9553412478 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12705.403/12738.395/12777.228/28.204 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 1910703018 15285.624 100.00% Conn: 1 Mbps: 15285.624 Peak Mbps: 15285.624 Avg Mbps: 15285.624 1000 1909088286 15272.706 100.00% Conn: 1 Mbps: 15272.706 Peak Mbps: 15272.706 Avg Mbps: 15272.706 2000 1925918770 15422.773 100.00% Conn: 1 Mbps: 15422.773 Peak Mbps: 15422.773 Avg Mbps: 15422.773 2000 1925971968 15407.776 100.00% Conn: 1 Mbps: 15407.776 Peak Mbps: 15407.776 Avg Mbps: 15407.776 3000 1921449568 15371.597 100.00% Conn: 1 Mbps: 15371.597 Peak Mbps: 15422.773 Avg Mbps: 15371.597 3000 1921515520 15387.512 100.00% Conn: 1 Mbps: 15387.512 Peak Mbps: 15407.776 Avg Mbps: 15387.512 4000 1925291530 15402.332 100.00% Conn: 1 Mbps: 15402.332 Peak Mbps: 15422.773 Avg Mbps: 15402.332 4000 1925447680 15403.581 100.00% Conn: 1 Mbps: 15403.581 Peak Mbps: 15407.776 Avg Mbps: 15403.581 5000 1919914318 15359.315 100.00% Conn: 1 Mbps: 15359.315 Peak Mbps: 15422.773 Avg Mbps: 15359.315 5000 1920204800 15361.638 100.00% Conn: 1 Mbps: 15361.638 Peak Mbps: 15407.776 Avg Mbps: 15361.638 --- 127.0.0.1 tcpbench statistics --- 11525040160 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15285.624/15368.328/15422.773/47.016 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11525040160 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15272.706/15366.643/15407.776/49.681 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: 1487.580 Peak Mbps: 1487.580 Tx PPS: 126323 Elapsed: 1000 Mbps: 1487.591 Peak Mbps: 1487.591 Rx PPS: 126324 Elapsed: 2000 Mbps: 1495.599 Peak Mbps: 1495.599 Tx PPS: 127004 Elapsed: 2000 Mbps: 1495.646 Peak Mbps: 1495.646 Rx PPS: 127008 Elapsed: 3000 Mbps: 1498.746 Peak Mbps: 1498.746 Tx PPS: 127271 Elapsed: 3000 Mbps: 1497.318 Peak Mbps: 1497.318 Rx PPS: 127150 Elapsed: 4000 Mbps: 1503.112 Peak Mbps: 1503.112 Tx PPS: 127642 Elapsed: 4000 Mbps: 1503.077 Peak Mbps: 1503.077 Rx PPS: 127639 Elapsed: 5000 Mbps: 1504.584 Peak Mbps: 1504.584 Tx PPS: 127767 Elapsed: 5000 Mbps: 1504.714 Peak Mbps: 1504.714 Rx PPS: 127778 --- 127.0.0.1 tcpbench statistics --- 1123551104 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1487.580/1497.924/1504.584/6.072 Mbps Elapsed: 6002 Mbps: 1498.561 Peak Mbps: 1504.714 Rx PPS: 127255 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1123551104 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1487.591/1497.818/1504.714/5.557 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: 1546.648 Peak Mbps: 1546.648 Tx PPS: 131339 Elapsed: 1000 Mbps: 1546.660 Peak Mbps: 1546.660 Rx PPS: 131340 Elapsed: 2000 Mbps: 1530.491 Peak Mbps: 1546.648 Tx PPS: 129966 Elapsed: 2000 Mbps: 1530.609 Peak Mbps: 1546.660 Rx PPS: 129976 Elapsed: 3000 Mbps: 1529.832 Peak Mbps: 1546.648 Tx PPS: 129911 Elapsed: 3000 Mbps: 1529.891 Peak Mbps: 1546.660 Rx PPS: 129916 Elapsed: 4000 Mbps: 1527.579 Peak Mbps: 1546.648 Tx PPS: 129719 Elapsed: 4000 Mbps: 1526.075 Peak Mbps: 1546.660 Rx PPS: 129592 Elapsed: 5000 Mbps: 1526.052 Peak Mbps: 1546.648 Tx PPS: 129590 Elapsed: 5000 Mbps: 1526.040 Peak Mbps: 1546.660 Rx PPS: 129589 --- 127.0.0.1 tcpbench statistics --- 1147943616 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1526.052/1532.120/1546.648/7.435 Mbps Elapsed: 6002 Mbps: 1522.759 Peak Mbps: 1546.660 Rx PPS: 129310 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1147943616 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1522.759/1530.339/1546.660/7.754 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.57s