START sys/kern/sosplice/perf 2024-10-16T01:22:20Z ==== 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 1531553876 12252.431 100.00% Conn: 1 Mbps: 12252.431 Peak Mbps: 12252.431 Avg Mbps: 12252.431 999 1531473786 12264.054 100.00% Conn: 1 Mbps: 12264.054 Peak Mbps: 12264.054 Avg Mbps: 12264.054 2000 1542494694 12352.310 100.00% Conn: 1 Mbps: 12352.310 Peak Mbps: 12352.310 Avg Mbps: 12352.310 2000 1542509688 12340.078 100.00% Conn: 1 Mbps: 12340.078 Peak Mbps: 12340.078 Avg Mbps: 12340.078 3000 1548508546 12388.068 100.00% Conn: 1 Mbps: 12388.068 Peak Mbps: 12388.068 Avg Mbps: 12388.068 3000 1548561180 12400.890 100.00% Conn: 1 Mbps: 12400.890 Peak Mbps: 12400.890 Avg Mbps: 12400.890 4000 1536722732 12293.782 100.00% Conn: 1 Mbps: 12293.782 Peak Mbps: 12388.068 Avg Mbps: 12293.782 4000 1536735194 12293.882 100.00% Conn: 1 Mbps: 12293.882 Peak Mbps: 12400.890 Avg Mbps: 12293.882 5000 1543931918 12351.455 100.00% Conn: 1 Mbps: 12351.455 Peak Mbps: 12388.068 Avg Mbps: 12351.455 5000 1543886128 12363.452 100.00% Conn: 1 Mbps: 12363.452 Peak Mbps: 12400.890 Avg Mbps: 12363.452 --- 127.0.0.1 tcpbench statistics --- 9240161398 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12252.431/12327.609/12388.068/48.229 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9240161398 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12264.054/12332.471/12400.890/48.721 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 1828664810 14629.318 100.00% Conn: 1 Mbps: 14629.318 Peak Mbps: 14629.318 Avg Mbps: 14629.318 1000 1827037316 14616.299 100.00% Conn: 1 Mbps: 14616.299 Peak Mbps: 14616.299 Avg Mbps: 14616.299 2000 1840906656 14727.253 100.00% Conn: 1 Mbps: 14727.253 Peak Mbps: 14727.253 Avg Mbps: 14727.253 2000 1841037312 14728.298 100.00% Conn: 1 Mbps: 14728.298 Peak Mbps: 14728.298 Avg Mbps: 14728.298 3000 1839583432 14716.667 100.00% Conn: 1 Mbps: 14716.667 Peak Mbps: 14727.253 Avg Mbps: 14716.667 3000 1839726592 14717.813 100.00% Conn: 1 Mbps: 14717.813 Peak Mbps: 14728.298 Avg Mbps: 14717.813 4000 1842088066 14751.456 100.00% Conn: 1 Mbps: 14751.456 Peak Mbps: 14751.456 Avg Mbps: 14751.456 4000 1842348032 14738.784 100.00% Conn: 1 Mbps: 14738.784 Peak Mbps: 14738.784 Avg Mbps: 14738.784 5000 1838371084 14706.969 100.00% Conn: 1 Mbps: 14706.969 Peak Mbps: 14751.456 Avg Mbps: 14706.969 5000 1838415872 14707.327 100.00% Conn: 1 Mbps: 14707.327 Peak Mbps: 14738.784 Avg Mbps: 14707.327 --- 127.0.0.1 tcpbench statistics --- 11031314496 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14629.318/14706.333/14751.456/41.261 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11031314496 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14616.299/14701.704/14738.784/43.971 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: 1010 Mbps: 2423.291 Peak Mbps: 2423.291 Rx PPS: 205782 Elapsed: 1031 Mbps: 3006.352 Peak Mbps: 3006.352 Tx PPS: 255294 Elapsed: 2010 Mbps: 2587.867 Peak Mbps: 2587.867 Rx PPS: 219757 Elapsed: 2071 Mbps: 2998.346 Peak Mbps: 3006.352 Tx PPS: 254615 Elapsed: 3010 Mbps: 2357.496 Peak Mbps: 2587.867 Rx PPS: 200195 Elapsed: 3071 Mbps: 3020.444 Peak Mbps: 3020.444 Tx PPS: 256491 Elapsed: 4010 Mbps: 2416.930 Peak Mbps: 2587.867 Rx PPS: 205242 Elapsed: 4071 Mbps: 3068.355 Peak Mbps: 3068.355 Tx PPS: 260560 Elapsed: 5010 Mbps: 2468.591 Peak Mbps: 2587.867 Rx PPS: 209629 Elapsed: 5071 Mbps: 2975.465 Peak Mbps: 3068.355 Tx PPS: 252672 --- 127.0.0.1 tcpbench statistics --- 2263450240 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2975.465/3013.793/3068.355/30.933 Mbps Elapsed: 6019 Mbps: 2460.892 Peak Mbps: 2587.867 Rx PPS: 208975 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1844686848 bytes received over 6.022 seconds bandwidth min/avg/max/std-dev = 2357.496/2452.511/2587.867/70.472 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: 3246.102 Peak Mbps: 3246.102 Tx PPS: 275654 Elapsed: 1000 Mbps: 2474.891 Peak Mbps: 2474.891 Rx PPS: 210164 Elapsed: 2000 Mbps: 2871.894 Peak Mbps: 3246.102 Tx PPS: 243876 Elapsed: 2002 Mbps: 2154.350 Peak Mbps: 2474.891 Rx PPS: 182944 Elapsed: 3000 Mbps: 2968.011 Peak Mbps: 3246.102 Tx PPS: 252039 Elapsed: 3024 Mbps: 2214.695 Peak Mbps: 2474.891 Rx PPS: 188068 Elapsed: 4000 Mbps: 3010.982 Peak Mbps: 3246.102 Tx PPS: 255688 Elapsed: 4025 Mbps: 2262.723 Peak Mbps: 2474.891 Rx PPS: 192147 Elapsed: 5000 Mbps: 2984.969 Peak Mbps: 3246.102 Tx PPS: 253479 Elapsed: 5025 Mbps: 2301.848 Peak Mbps: 2474.891 Rx PPS: 195469 --- 127.0.0.1 tcpbench statistics --- 2264648448 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2871.894/3016.391/3246.102/124.100 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1710973312 bytes received over 6.022 seconds bandwidth min/avg/max/std-dev = 2154.350/2281.701/2474.891/108.441 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.60s