START sys/kern/sosplice/perf 2024-12-18T19:20:46Z ==== 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 999 1204942600 9649.190 100.00% Conn: 1 Mbps: 9649.190 Peak Mbps: 9649.190 Avg Mbps: 9649.190 1000 1205183242 9641.466 100.00% Conn: 1 Mbps: 9641.466 Peak Mbps: 9641.466 Avg Mbps: 9641.466 2000 1209093540 9682.431 100.00% Conn: 1 Mbps: 9682.431 Peak Mbps: 9682.431 Avg Mbps: 9682.431 1999 1209197852 9673.583 100.00% Conn: 1 Mbps: 9673.583 Peak Mbps: 9673.583 Avg Mbps: 9673.583 3000 1208879562 9671.036 100.00% Conn: 1 Mbps: 9671.036 Peak Mbps: 9682.431 Avg Mbps: 9671.036 3000 1208906494 9671.252 100.00% Conn: 1 Mbps: 9671.252 Peak Mbps: 9673.583 Avg Mbps: 9671.252 4000 1209405806 9675.246 100.00% Conn: 1 Mbps: 9675.246 Peak Mbps: 9682.431 Avg Mbps: 9675.246 4000 1209446034 9675.568 100.00% Conn: 1 Mbps: 9675.568 Peak Mbps: 9675.568 Avg Mbps: 9675.568 5000 1212399116 9699.193 100.00% Conn: 1 Mbps: 9699.193 Peak Mbps: 9699.193 Avg Mbps: 9699.193 5000 1212453604 9699.629 100.00% Conn: 1 Mbps: 9699.629 Peak Mbps: 9699.629 Avg Mbps: 9699.629 --- 127.0.0.1 tcpbench statistics --- 7256356336 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 9641.466/9673.875/9699.193/18.839 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7256356336 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9649.190/9673.844/9699.629/16.015 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 1322544938 10580.360 100.00% Conn: 1 Mbps: 10580.360 Peak Mbps: 10580.360 Avg Mbps: 10580.360 1000 1320813672 10566.509 100.00% Conn: 1 Mbps: 10566.509 Peak Mbps: 10566.509 Avg Mbps: 10566.509 2000 1328021504 10624.172 100.00% Conn: 1 Mbps: 10624.172 Peak Mbps: 10624.172 Avg Mbps: 10624.172 2000 1327874146 10622.993 100.00% Conn: 1 Mbps: 10622.993 Peak Mbps: 10622.993 Avg Mbps: 10622.993 3000 1326010042 10618.699 100.00% Conn: 1 Mbps: 10618.699 Peak Mbps: 10622.993 Avg Mbps: 10618.699 3000 1325924352 10607.395 100.00% Conn: 1 Mbps: 10607.395 Peak Mbps: 10624.172 Avg Mbps: 10607.395 4000 1325855998 10617.465 100.00% Conn: 1 Mbps: 10617.465 Peak Mbps: 10622.993 Avg Mbps: 10617.465 4000 1326186496 10620.112 100.00% Conn: 1 Mbps: 10620.112 Peak Mbps: 10624.172 Avg Mbps: 10620.112 5000 1325870740 10606.966 100.00% Conn: 1 Mbps: 10606.966 Peak Mbps: 10622.993 Avg Mbps: 10606.966 5000 1325924352 10607.395 100.00% Conn: 1 Mbps: 10607.395 Peak Mbps: 10624.172 Avg Mbps: 10607.395 --- 127.0.0.1 tcpbench statistics --- 7953367532 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 10580.360/10609.297/10622.993/15.398 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7953367532 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10566.509/10605.117/10624.172/20.440 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: 1967.546 Peak Mbps: 1967.546 Tx PPS: 167081 Elapsed: 999 Mbps: 1969.621 Peak Mbps: 1969.621 Rx PPS: 167257 Elapsed: 2000 Mbps: 1977.519 Peak Mbps: 1977.519 Tx PPS: 167927 Elapsed: 1999 Mbps: 1977.590 Peak Mbps: 1977.590 Rx PPS: 167933 Elapsed: 3000 Mbps: 1970.243 Peak Mbps: 1977.519 Tx PPS: 167310 Elapsed: 2999 Mbps: 1970.290 Peak Mbps: 1977.590 Rx PPS: 167314 Elapsed: 4000 Mbps: 1975.483 Peak Mbps: 1977.519 Tx PPS: 167755 Elapsed: 3999 Mbps: 1975.424 Peak Mbps: 1977.590 Rx PPS: 167750 Elapsed: 5000 Mbps: 1976.672 Peak Mbps: 1977.519 Tx PPS: 167856 Elapsed: 5000 Mbps: 1976.672 Peak Mbps: 1977.590 Rx PPS: 167856 --- 127.0.0.1 tcpbench statistics --- 1479973824 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1967.546/1973.493/1977.519/3.904 Mbps Elapsed: 6002 Mbps: 1970.200 Peak Mbps: 1977.590 Rx PPS: 167306 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1479973824 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1969.621/1973.300/1977.590/3.329 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: 1855.285 Peak Mbps: 1855.285 Tx PPS: 157548 Elapsed: 1000 Mbps: 1855.391 Peak Mbps: 1855.391 Rx PPS: 157557 Elapsed: 2000 Mbps: 1857.260 Peak Mbps: 1857.260 Tx PPS: 157715 Elapsed: 2000 Mbps: 1857.307 Peak Mbps: 1857.307 Rx PPS: 157719 Elapsed: 3000 Mbps: 1856.192 Peak Mbps: 1857.260 Tx PPS: 157625 Elapsed: 3000 Mbps: 1856.239 Peak Mbps: 1857.307 Rx PPS: 157629 Elapsed: 4000 Mbps: 1853.837 Peak Mbps: 1857.260 Tx PPS: 157425 Elapsed: 4000 Mbps: 1853.825 Peak Mbps: 1857.307 Rx PPS: 157424 Elapsed: 5000 Mbps: 1857.158 Peak Mbps: 1857.260 Tx PPS: 157707 Elapsed: 5000 Mbps: 1857.122 Peak Mbps: 1857.307 Rx PPS: 157704 --- 127.0.0.1 tcpbench statistics --- 1391184256 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1853.837/1855.946/1857.260/1.276 Mbps Elapsed: 6002 Mbps: 1847.751 Peak Mbps: 1857.307 Rx PPS: 156908 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1391184256 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1847.751/1854.606/1857.307/3.279 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.50s