START sys/kern/sosplice/perf 2025-02-25T19:32:36Z ==== 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 1418194728 11345.558 100.00% Conn: 1 Mbps: 11345.558 Peak Mbps: 11345.558 Avg Mbps: 11345.558 999 1418080222 11355.998 100.00% Conn: 1 Mbps: 11355.998 Peak Mbps: 11355.998 Avg Mbps: 11355.998 2000 1429741704 11449.383 100.00% Conn: 1 Mbps: 11449.383 Peak Mbps: 11449.383 Avg Mbps: 11449.383 2000 1429774848 11438.199 100.00% Conn: 1 Mbps: 11438.199 Peak Mbps: 11438.199 Avg Mbps: 11438.199 3000 1434649840 11477.199 100.00% Conn: 1 Mbps: 11477.199 Peak Mbps: 11477.199 Avg Mbps: 11477.199 3000 1434665770 11477.326 100.00% Conn: 1 Mbps: 11477.326 Peak Mbps: 11477.326 Avg Mbps: 11477.326 4000 1435549190 11484.394 100.00% Conn: 1 Mbps: 11484.394 Peak Mbps: 11484.394 Avg Mbps: 11484.394 4000 1435549190 11484.394 100.00% Conn: 1 Mbps: 11484.394 Peak Mbps: 11484.394 Avg Mbps: 11484.394 5000 1428974226 11443.237 100.00% Conn: 1 Mbps: 11443.237 Peak Mbps: 11484.394 Avg Mbps: 11443.237 5000 1429007150 11432.057 100.00% Conn: 1 Mbps: 11432.057 Peak Mbps: 11484.394 Avg Mbps: 11432.057 --- 127.0.0.1 tcpbench statistics --- 8576490820 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 11345.558/11439.954/11484.394/49.744 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8576490820 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 11355.998/11437.595/11484.394/45.734 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 1551127236 12409.018 100.00% Conn: 1 Mbps: 12409.018 Peak Mbps: 12409.018 Avg Mbps: 12409.018 999 1550996372 12420.391 100.00% Conn: 1 Mbps: 12420.391 Peak Mbps: 12420.391 Avg Mbps: 12420.391 1999 1566080268 12528.642 100.00% Conn: 1 Mbps: 12528.642 Peak Mbps: 12528.642 Avg Mbps: 12528.642 2000 1566260206 12530.082 100.00% Conn: 1 Mbps: 12530.082 Peak Mbps: 12530.082 Avg Mbps: 12530.082 3000 1569259914 12566.646 100.00% Conn: 1 Mbps: 12566.646 Peak Mbps: 12566.646 Avg Mbps: 12566.646 3000 1569472568 12555.781 100.00% Conn: 1 Mbps: 12555.781 Peak Mbps: 12555.781 Avg Mbps: 12555.781 4000 1572015358 12576.123 100.00% 4000 1571917210 12575.338 100.00% Conn: 1 Mbps: 12576.123 Peak Mbps: 12576.123 Avg Mbps: 12576.123 Conn: 1 Mbps: 12575.338 Peak Mbps: 12575.338 Avg Mbps: 12575.338 5000 1569560482 12556.484 100.00% Conn: 1 Mbps: 12556.484 Peak Mbps: 12576.123 Avg Mbps: 12556.484 5000 1569625914 12557.007 100.00% Conn: 1 Mbps: 12557.007 Peak Mbps: 12575.338 Avg Mbps: 12557.007 --- 127.0.0.1 tcpbench statistics --- 9402476688 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12409.018/12527.670/12576.123/61.288 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9402476688 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12420.391/12527.432/12575.338/55.556 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: 1952.437 Peak Mbps: 1952.437 Tx PPS: 165798 Elapsed: 999 Mbps: 1954.474 Peak Mbps: 1954.474 Rx PPS: 165970 Elapsed: 2000 Mbps: 1957.798 Peak Mbps: 1957.798 Tx PPS: 166253 Elapsed: 1999 Mbps: 1957.881 Peak Mbps: 1957.881 Rx PPS: 166260 Elapsed: 3000 Mbps: 1961.547 Peak Mbps: 1961.547 Tx PPS: 166571 Elapsed: 2999 Mbps: 1959.609 Peak Mbps: 1959.609 Rx PPS: 166407 Elapsed: 4000 Mbps: 1959.856 Peak Mbps: 1961.547 Tx PPS: 166428 Elapsed: 3999 Mbps: 1959.809 Peak Mbps: 1959.809 Rx PPS: 166424 Elapsed: 5000 Mbps: 1958.773 Peak Mbps: 1961.547 Tx PPS: 166336 Elapsed: 5000 Mbps: 1958.820 Peak Mbps: 1959.809 Rx PPS: 166340 --- 127.0.0.1 tcpbench statistics --- 1467804800 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1952.437/1958.082/1961.547/3.085 Mbps Elapsed: 6002 Mbps: 1951.854 Peak Mbps: 1959.809 Rx PPS: 165748 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1467804800 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1951.854/1957.075/1959.809/2.933 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: 1846.524 Peak Mbps: 1846.524 Tx PPS: 156804 Elapsed: 1000 Mbps: 1846.595 Peak Mbps: 1846.595 Rx PPS: 156810 Elapsed: 2000 Mbps: 1848.467 Peak Mbps: 1848.467 Tx PPS: 156968 Elapsed: 1999 Mbps: 1848.502 Peak Mbps: 1848.502 Rx PPS: 156971 Elapsed: 3000 Mbps: 1844.192 Peak Mbps: 1848.467 Tx PPS: 156606 Elapsed: 2999 Mbps: 1844.204 Peak Mbps: 1848.502 Rx PPS: 156607 Elapsed: 4000 Mbps: 1845.853 Peak Mbps: 1848.467 Tx PPS: 156747 Elapsed: 4000 Mbps: 1845.853 Peak Mbps: 1848.502 Rx PPS: 156747 Elapsed: 5000 Mbps: 1845.570 Peak Mbps: 1848.467 Tx PPS: 156723 Elapsed: 5000 Mbps: 1845.594 Peak Mbps: 1848.502 Rx PPS: 156725 --- 127.0.0.1 tcpbench statistics --- 1384242304 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1844.192/1846.121/1848.467/1.397 Mbps Elapsed: 6002 Mbps: 1841.357 Peak Mbps: 1848.502 Rx PPS: 156365 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1384242304 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1841.357/1845.351/1848.502/2.200 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.48s