START sys/kern/sosplice/perf 2024-12-19T19:20:13Z ==== 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 1158640772 9269.126 100.00% 1000 1158509480 9268.076 100.00% Conn: 1 Mbps: 9269.126 Peak Mbps: 9269.126 Avg Mbps: 9269.126 Conn: 1 Mbps: 9268.076 Peak Mbps: 9268.076 Avg Mbps: 9268.076 2000 1163451204 9316.927 100.00% Conn: 1 Mbps: 9316.927 Peak Mbps: 9316.927 Avg Mbps: 9316.927 2000 1163437602 9307.501 100.00% Conn: 1 Mbps: 9307.501 Peak Mbps: 9307.501 Avg Mbps: 9307.501 3000 1163045034 9304.360 100.00% Conn: 1 Mbps: 9304.360 Peak Mbps: 9316.927 Avg Mbps: 9304.360 3000 1163084142 9304.673 100.00% Conn: 1 Mbps: 9304.673 Peak Mbps: 9307.501 Avg Mbps: 9304.673 4000 1160145924 9281.167 100.00% Conn: 1 Mbps: 9281.167 Peak Mbps: 9316.927 Avg Mbps: 9281.167 4000 1160121530 9280.972 100.00% Conn: 1 Mbps: 9280.972 Peak Mbps: 9307.501 Avg Mbps: 9280.972 5000 1162110604 9296.885 100.00% Conn: 1 Mbps: 9296.885 Peak Mbps: 9316.927 Avg Mbps: 9296.885 5000 1162155732 9297.246 100.00% Conn: 1 Mbps: 9297.246 Peak Mbps: 9307.501 Avg Mbps: 9297.246 --- 127.0.0.1 tcpbench statistics --- 6968634756 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9269.126/9293.693/9316.927/16.877 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 6968634756 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9268.076/9291.694/9307.501/14.979 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 1282090840 10256.727 100.00% Conn: 1 Mbps: 10256.727 Peak Mbps: 10256.727 Avg Mbps: 10256.727 1000 1280032484 10240.260 100.00% Conn: 1 Mbps: 10240.260 Peak Mbps: 10240.260 Avg Mbps: 10240.260 2000 1290873098 10326.985 100.00% Conn: 1 Mbps: 10326.985 Peak Mbps: 10326.985 Avg Mbps: 10326.985 2000 1291059200 10328.474 100.00% Conn: 1 Mbps: 10328.474 Peak Mbps: 10328.474 Avg Mbps: 10328.474 3000 1287817694 10302.542 100.00% Conn: 1 Mbps: 10302.542 Peak Mbps: 10326.985 Avg Mbps: 10302.542 3000 1287651328 10311.522 100.00% Conn: 1 Mbps: 10311.522 Peak Mbps: 10328.474 Avg Mbps: 10311.522 4000 1295403948 10373.605 100.00% Conn: 1 Mbps: 10373.605 Peak Mbps: 10373.605 Avg Mbps: 10373.605 4000 1295777792 10366.222 100.00% Conn: 1 Mbps: 10366.222 Peak Mbps: 10366.222 Avg Mbps: 10366.222 5000 1290976094 10327.809 100.00% Conn: 1 Mbps: 10327.809 Peak Mbps: 10373.605 Avg Mbps: 10327.809 5000 1291059200 10328.474 100.00% Conn: 1 Mbps: 10328.474 Peak Mbps: 10366.222 Avg Mbps: 10328.474 --- 127.0.0.1 tcpbench statistics --- 7738494650 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 10256.727/10317.533/10373.605/38.108 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7738494650 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10240.260/10314.990/10366.222/41.437 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: 1957.866 Peak Mbps: 1957.866 Tx PPS: 166259 Elapsed: 999 Mbps: 1959.908 Peak Mbps: 1959.908 Rx PPS: 166432 Elapsed: 2000 Mbps: 1964.682 Peak Mbps: 1964.682 Tx PPS: 166837 Elapsed: 1999 Mbps: 1964.718 Peak Mbps: 1964.718 Rx PPS: 166840 Elapsed: 3000 Mbps: 1963.118 Peak Mbps: 1964.682 Tx PPS: 166705 Elapsed: 2999 Mbps: 1963.177 Peak Mbps: 1964.718 Rx PPS: 166710 Elapsed: 4000 Mbps: 1967.428 Peak Mbps: 1967.428 Tx PPS: 167071 Elapsed: 4000 Mbps: 1967.357 Peak Mbps: 1967.357 Rx PPS: 167065 Elapsed: 5000 Mbps: 1955.994 Peak Mbps: 1967.428 Tx PPS: 166100 Elapsed: 5000 Mbps: 1956.100 Peak Mbps: 1967.357 Rx PPS: 166109 --- 127.0.0.1 tcpbench statistics --- 1470267456 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1955.994/1961.818/1967.428/4.264 Mbps Elapsed: 6002 Mbps: 1950.902 Peak Mbps: 1967.357 Rx PPS: 165667 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1470267456 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1950.902/1960.360/1967.357/5.533 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: 1853.743 Peak Mbps: 1853.743 Tx PPS: 157417 Elapsed: 1000 Mbps: 1853.801 Peak Mbps: 1853.801 Rx PPS: 157422 Elapsed: 2000 Mbps: 1869.673 Peak Mbps: 1869.673 Tx PPS: 158769 Elapsed: 1999 Mbps: 1869.720 Peak Mbps: 1869.720 Rx PPS: 158773 Elapsed: 3000 Mbps: 1868.510 Peak Mbps: 1869.673 Tx PPS: 158671 Elapsed: 2999 Mbps: 1868.557 Peak Mbps: 1869.720 Rx PPS: 158675 Elapsed: 4000 Mbps: 1866.425 Peak Mbps: 1869.673 Tx PPS: 158494 Elapsed: 4000 Mbps: 1866.414 Peak Mbps: 1869.720 Rx PPS: 158493 Elapsed: 5000 Mbps: 1867.685 Peak Mbps: 1869.673 Tx PPS: 158601 Elapsed: 5000 Mbps: 1867.662 Peak Mbps: 1869.720 Rx PPS: 158599 --- 127.0.0.1 tcpbench statistics --- 1399193408 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1853.743/1865.207/1869.673/5.829 Mbps Elapsed: 6002 Mbps: 1865.532 Peak Mbps: 1869.720 Rx PPS: 158418 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1399193408 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1853.801/1865.281/1869.720/5.311 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.49s