START sys/kern/sosplice/perf 2024-08-25T18:54:43Z ==== 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 1218953862 9751.631 100.00% Conn: 1 Mbps: 9751.631 Peak Mbps: 9751.631 Avg Mbps: 9751.631 1000 1218872488 9750.980 100.00% Conn: 1 Mbps: 9750.980 Peak Mbps: 9750.980 Avg Mbps: 9750.980 2000 1226854620 9824.662 100.00% Conn: 1 Mbps: 9824.662 Peak Mbps: 9824.662 Avg Mbps: 9824.662 2000 1226890308 9815.122 100.00% Conn: 1 Mbps: 9815.122 Peak Mbps: 9815.122 Avg Mbps: 9815.122 3000 1223861566 9790.893 100.00% Conn: 1 Mbps: 9790.893 Peak Mbps: 9824.662 Avg Mbps: 9790.893 3000 1223862478 9790.900 100.00% Conn: 1 Mbps: 9790.900 Peak Mbps: 9815.122 Avg Mbps: 9790.900 4000 1224548438 9796.388 100.00% Conn: 1 Mbps: 9796.388 Peak Mbps: 9824.662 Avg Mbps: 9796.388 4000 1224515146 9805.927 100.00% Conn: 1 Mbps: 9805.927 Peak Mbps: 9815.122 Avg Mbps: 9805.927 5000 1226558480 9812.468 100.00% Conn: 1 Mbps: 9812.468 Peak Mbps: 9824.662 Avg Mbps: 9812.468 5000 1226539394 9812.315 100.00% Conn: 1 Mbps: 9812.315 Peak Mbps: 9815.122 Avg Mbps: 9812.315 --- 127.0.0.1 tcpbench statistics --- 7347319064 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 9751.631/9795.208/9824.662/24.837 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 7347319064 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 9750.980/9795.049/9815.122/23.574 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 1334777204 10678.218 100.00% Conn: 1 Mbps: 10678.218 Peak Mbps: 10678.218 Avg Mbps: 10678.218 1000 1332971848 10663.775 100.00% Conn: 1 Mbps: 10663.775 Peak Mbps: 10663.775 Avg Mbps: 10663.775 2000 1345298700 10762.390 100.00% Conn: 1 Mbps: 10762.390 Peak Mbps: 10762.390 Avg Mbps: 10762.390 2000 1345323008 10773.357 100.00% Conn: 1 Mbps: 10773.357 Peak Mbps: 10773.357 Avg Mbps: 10773.357 3000 1342866356 10742.931 100.00% Conn: 1 Mbps: 10742.931 Peak Mbps: 10762.390 Avg Mbps: 10742.931 3000 1342963712 10743.710 100.00% Conn: 1 Mbps: 10743.710 Peak Mbps: 10773.357 Avg Mbps: 10743.710 4000 1344786548 10758.292 100.00% Conn: 1 Mbps: 10758.292 Peak Mbps: 10762.390 Avg Mbps: 10758.292 4000 1344798720 10758.390 100.00% Conn: 1 Mbps: 10758.390 Peak Mbps: 10773.357 Avg Mbps: 10758.390 5000 1340973574 10727.789 100.00% Conn: 1 Mbps: 10727.789 Peak Mbps: 10762.390 Avg Mbps: 10727.789 5000 1341128704 10729.030 100.00% Conn: 1 Mbps: 10729.030 Peak Mbps: 10773.357 Avg Mbps: 10729.030 --- 127.0.0.1 tcpbench statistics --- 8047140168 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 10678.218/10733.924/10762.390/30.417 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 8047140168 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 10663.775/10733.652/10773.357/37.931 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: 1932.583 Peak Mbps: 1932.583 Tx PPS: 164112 Elapsed: 999 Mbps: 1934.588 Peak Mbps: 1934.588 Rx PPS: 164282 Elapsed: 2000 Mbps: 1942.934 Peak Mbps: 1942.934 Tx PPS: 164990 Elapsed: 1999 Mbps: 1943.005 Peak Mbps: 1943.005 Rx PPS: 164996 Elapsed: 3000 Mbps: 1941.592 Peak Mbps: 1942.934 Tx PPS: 164877 Elapsed: 2999 Mbps: 1941.580 Peak Mbps: 1943.005 Rx PPS: 164876 Elapsed: 4000 Mbps: 1920.995 Peak Mbps: 1942.934 Tx PPS: 163128 Elapsed: 3999 Mbps: 1921.007 Peak Mbps: 1943.005 Rx PPS: 163129 Elapsed: 5000 Mbps: 1939.955 Peak Mbps: 1942.934 Tx PPS: 164738 Elapsed: 4999 Mbps: 1939.931 Peak Mbps: 1943.005 Rx PPS: 164736 --- 127.0.0.1 tcpbench statistics --- 1451789440 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1920.995/1935.612/1942.934/8.137 Mbps Elapsed: 6002 Mbps: 1934.214 Peak Mbps: 1943.005 Rx PPS: 164250 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1451789440 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1921.007/1935.721/1943.005/7.362 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: 1854.508 Peak Mbps: 1854.508 Tx PPS: 157482 Elapsed: 1000 Mbps: 1854.590 Peak Mbps: 1854.590 Rx PPS: 157489 Elapsed: 2000 Mbps: 1851.720 Peak Mbps: 1854.508 Tx PPS: 157245 Elapsed: 1999 Mbps: 1851.755 Peak Mbps: 1854.590 Rx PPS: 157248 Elapsed: 3000 Mbps: 1857.652 Peak Mbps: 1857.652 Tx PPS: 157749 Elapsed: 2999 Mbps: 1857.664 Peak Mbps: 1857.664 Rx PPS: 157750 Elapsed: 4000 Mbps: 1854.920 Peak Mbps: 1857.652 Tx PPS: 157517 Elapsed: 3999 Mbps: 1854.908 Peak Mbps: 1857.664 Rx PPS: 157516 Elapsed: 5000 Mbps: 1857.852 Peak Mbps: 1857.852 Tx PPS: 157766 Elapsed: 4999 Mbps: 1857.876 Peak Mbps: 1857.876 Rx PPS: 157768 --- 127.0.0.1 tcpbench statistics --- 1391091520 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 1851.720/1855.331/1857.852/2.264 Mbps Elapsed: 6002 Mbps: 1850.090 Peak Mbps: 1857.876 Rx PPS: 157106 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1391091520 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 1850.090/1854.481/1857.876/2.845 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.47s