START sys/kern/sosplice/perf 2024-12-25T02:23:23Z ==== 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 1598122454 12784.980 100.00% Conn: 1 Mbps: 12784.980 Peak Mbps: 12784.980 Avg Mbps: 12784.980 1000 1598089842 12784.719 100.00% Conn: 1 Mbps: 12784.719 Peak Mbps: 12784.719 Avg Mbps: 12784.719 2000 1603516162 12840.970 100.00% Conn: 1 Mbps: 12840.970 Peak Mbps: 12840.970 Avg Mbps: 12840.970 2000 1603565444 12828.524 100.00% Conn: 1 Mbps: 12828.524 Peak Mbps: 12828.524 Avg Mbps: 12828.524 3000 1605460832 12843.687 100.00% Conn: 1 Mbps: 12843.687 Peak Mbps: 12843.687 Avg Mbps: 12843.687 3000 1605493548 12856.805 100.00% Conn: 1 Mbps: 12856.805 Peak Mbps: 12856.805 Avg Mbps: 12856.805 4000 1609632242 12889.948 100.00% Conn: 1 Mbps: 12889.948 Peak Mbps: 12889.948 Avg Mbps: 12889.948 4000 1609615676 12876.925 100.00% Conn: 1 Mbps: 12876.925 Peak Mbps: 12876.925 Avg Mbps: 12876.925 5000 1607143694 12870.020 100.00% Conn: 1 Mbps: 12870.020 Peak Mbps: 12889.948 Avg Mbps: 12870.020 5000 1607209334 12870.545 100.00% Conn: 1 Mbps: 12870.545 Peak Mbps: 12876.925 Avg Mbps: 12870.545 --- 127.0.0.1 tcpbench statistics --- 9631464720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12784.980/12845.921/12889.948/35.391 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9631464720 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12784.719/12843.504/12876.925/33.779 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 999 1744324920 13968.568 100.00% Conn: 1 Mbps: 13968.568 Peak Mbps: 13968.568 Avg Mbps: 13968.568 1000 1744505274 13956.042 100.00% Conn: 1 Mbps: 13956.042 Peak Mbps: 13956.042 Avg Mbps: 13956.042 2000 1744944578 13959.557 100.00% Conn: 1 Mbps: 13959.557 Peak Mbps: 13968.568 Avg Mbps: 13959.557 2000 1744879158 13973.006 100.00% Conn: 1 Mbps: 13973.006 Peak Mbps: 13973.006 Avg Mbps: 13973.006 3000 1745283054 13962.264 100.00% Conn: 1 Mbps: 13962.264 Peak Mbps: 13968.568 Avg Mbps: 13962.264 3000 1745331700 13962.654 100.00% Conn: 1 Mbps: 13962.654 Peak Mbps: 13973.006 Avg Mbps: 13962.654 4000 1746144496 13969.156 100.00% 4000 1746177212 13969.418 100.00% Conn: 1 Mbps: 13969.156 Peak Mbps: 13973.006 Avg Mbps: 13969.156 Conn: 1 Mbps: 13969.418 Peak Mbps: 13969.418 Avg Mbps: 13969.418 5000 1746489024 13971.912 100.00% Conn: 1 Mbps: 13971.912 Peak Mbps: 13971.912 Avg Mbps: 13971.912 5000 1746668962 13973.352 100.00% Conn: 1 Mbps: 13973.352 Peak Mbps: 13973.352 Avg Mbps: 13973.352 --- 127.0.0.1 tcpbench statistics --- 10472576496 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 13956.042/13966.842/13973.352/6.632 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10472576496 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 13959.557/13966.344/13971.912/4.650 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: 3092.425 Peak Mbps: 3092.425 Tx PPS: 262604 Elapsed: 1000 Mbps: 2472.501 Peak Mbps: 2472.501 Rx PPS: 209961 Elapsed: 2000 Mbps: 3028.365 Peak Mbps: 3092.425 Tx PPS: 257164 Elapsed: 2006 Mbps: 2321.885 Peak Mbps: 2472.501 Rx PPS: 197170 Elapsed: 3000 Mbps: 3087.385 Peak Mbps: 3092.425 Tx PPS: 262176 Elapsed: 3012 Mbps: 2309.490 Peak Mbps: 2472.501 Rx PPS: 196118 Elapsed: 4000 Mbps: 2924.911 Peak Mbps: 3092.425 Tx PPS: 248379 Elapsed: 4012 Mbps: 2365.904 Peak Mbps: 2472.501 Rx PPS: 200909 Elapsed: 5000 Mbps: 2948.451 Peak Mbps: 3092.425 Tx PPS: 250378 Elapsed: 5012 Mbps: 2366.352 Peak Mbps: 2472.501 Rx PPS: 200947 Elapsed: 6026 Mbps: 2320.837 Peak Mbps: 2472.501 Rx PPS: 197081 --- 127.0.0.1 tcpbench statistics --- 2266375104 bytes sent over 6.026 seconds bandwidth min/avg/max/std-dev = 2924.911/3016.307/3092.425/69.208 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1776717248 bytes received over 6.029 seconds bandwidth min/avg/max/std-dev = 2309.490/2359.495/2472.501/55.178 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: 1021 Mbps: 3056.351 Peak Mbps: 3056.351 Tx PPS: 259540 Elapsed: 1021 Mbps: 2154.766 Peak Mbps: 2154.766 Rx PPS: 182979 Elapsed: 2021 Mbps: 2198.458 Peak Mbps: 2198.458 Rx PPS: 186689 Elapsed: 2021 Mbps: 3136.742 Peak Mbps: 3136.742 Tx PPS: 266367 Elapsed: 3021 Mbps: 2151.322 Peak Mbps: 2198.458 Rx PPS: 182687 Elapsed: 3021 Mbps: 2996.592 Peak Mbps: 3136.742 Tx PPS: 254466 Elapsed: 4021 Mbps: 2177.112 Peak Mbps: 2198.458 Rx PPS: 184877 Elapsed: 4021 Mbps: 2922.697 Peak Mbps: 3136.742 Tx PPS: 248191 Elapsed: 5021 Mbps: 2168.857 Peak Mbps: 2198.458 Rx PPS: 184176 Elapsed: 5021 Mbps: 3017.129 Peak Mbps: 3136.742 Tx PPS: 256210 --- 127.0.0.1 tcpbench statistics --- 2289878528 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2922.697/3025.902/3136.742/70.427 Mbps Elapsed: 6022 Mbps: 2203.089 Peak Mbps: 2203.089 Rx PPS: 187083 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1637184896 bytes received over 6.089 seconds bandwidth min/avg/max/std-dev = 2151.322/2175.601/2203.089/19.788 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.73s