START sys/kern/sosplice/perf 2024-08-16T01:29:45Z ==== 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 999 1561446882 12504.079 100.00% Conn: 1 Mbps: 12504.079 Peak Mbps: 12504.079 Avg Mbps: 12504.079 1000 1561637106 12493.097 100.00% Conn: 1 Mbps: 12493.097 Peak Mbps: 12493.097 Avg Mbps: 12493.097 2000 1562109988 12509.389 100.00% Conn: 1 Mbps: 12509.389 Peak Mbps: 12509.389 Avg Mbps: 12509.389 1999 1562191942 12497.536 100.00% Conn: 1 Mbps: 12497.536 Peak Mbps: 12504.079 Avg Mbps: 12497.536 3000 1563763426 12510.107 100.00% Conn: 1 Mbps: 12510.107 Peak Mbps: 12510.107 Avg Mbps: 12510.107 3000 1563757294 12510.058 100.00% Conn: 1 Mbps: 12510.058 Peak Mbps: 12510.058 Avg Mbps: 12510.058 4000 1560968612 12500.249 100.00% Conn: 1 Mbps: 12500.249 Peak Mbps: 12510.107 Avg Mbps: 12500.249 4000 1561051130 12488.409 100.00% Conn: 1 Mbps: 12488.409 Peak Mbps: 12510.058 Avg Mbps: 12488.409 5000 1563026480 12504.212 100.00% Conn: 1 Mbps: 12504.212 Peak Mbps: 12510.107 Avg Mbps: 12504.212 5000 1563045162 12504.361 100.00% Conn: 1 Mbps: 12504.361 Peak Mbps: 12510.058 Avg Mbps: 12504.361 --- 127.0.0.1 tcpbench statistics --- 9374827328 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12493.097/12503.411/12510.107/6.287 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9374827328 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12488.409/12500.889/12510.058/7.393 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 1843923234 14751.386 100.00% Conn: 1 Mbps: 14751.386 Peak Mbps: 14751.386 Avg Mbps: 14751.386 1000 1842455898 14739.647 100.00% Conn: 1 Mbps: 14739.647 Peak Mbps: 14739.647 Avg Mbps: 14739.647 2000 1859473346 14875.787 100.00% Conn: 1 Mbps: 14875.787 Peak Mbps: 14875.787 Avg Mbps: 14875.787 2000 1859387392 14889.989 100.00% Conn: 1 Mbps: 14889.989 Peak Mbps: 14889.989 Avg Mbps: 14889.989 3000 1853573530 14828.588 100.00% Conn: 1 Mbps: 14828.588 Peak Mbps: 14875.787 Avg Mbps: 14828.588 3000 1853620224 14828.962 100.00% Conn: 1 Mbps: 14828.962 Peak Mbps: 14889.989 Avg Mbps: 14828.962 4000 1861048272 14888.386 100.00% Conn: 1 Mbps: 14888.386 Peak Mbps: 14888.386 Avg Mbps: 14888.386 4000 1860960256 14887.682 100.00% Conn: 1 Mbps: 14887.682 Peak Mbps: 14889.989 Avg Mbps: 14887.682 5000 1861695048 14893.560 100.00% Conn: 1 Mbps: 14893.560 Peak Mbps: 14893.560 Avg Mbps: 14893.560 5000 1862008832 14896.071 100.00% Conn: 1 Mbps: 14896.071 Peak Mbps: 14896.071 Avg Mbps: 14896.071 --- 127.0.0.1 tcpbench statistics --- 11135340694 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14751.386/14847.541/14893.560/53.271 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11135340694 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14739.647/14848.470/14896.071/59.582 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: 3037.337 Peak Mbps: 3037.337 Tx PPS: 257926 Elapsed: 1000 Mbps: 2551.600 Peak Mbps: 2551.600 Rx PPS: 216678 Elapsed: 2000 Mbps: 3058.837 Peak Mbps: 3058.837 Tx PPS: 259751 Elapsed: 2000 Mbps: 2552.931 Peak Mbps: 2552.931 Rx PPS: 216791 Elapsed: 3000 Mbps: 3056.590 Peak Mbps: 3058.837 Tx PPS: 259561 Elapsed: 3001 Mbps: 2604.590 Peak Mbps: 2604.590 Rx PPS: 221177 Elapsed: 4000 Mbps: 3051.385 Peak Mbps: 3058.837 Tx PPS: 259119 Elapsed: 4001 Mbps: 2522.961 Peak Mbps: 2604.590 Rx PPS: 214246 Elapsed: 5000 Mbps: 3003.539 Peak Mbps: 3058.837 Tx PPS: 255056 Elapsed: 5001 Mbps: 2483.912 Peak Mbps: 2604.590 Rx PPS: 210930 --- 127.0.0.1 tcpbench statistics --- 2278460224 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3003.539/3041.538/3058.837/20.417 Mbps Elapsed: 6002 Mbps: 2482.416 Peak Mbps: 2604.590 Rx PPS: 210803 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1900126784 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 2482.416/2533.068/2604.590/42.696 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: 3036.724 Peak Mbps: 3036.724 Tx PPS: 257874 Elapsed: 1000 Mbps: 2377.680 Peak Mbps: 2377.680 Rx PPS: 201909 Elapsed: 2001 Mbps: 2300.414 Peak Mbps: 2377.680 Rx PPS: 195347 Elapsed: 2001 Mbps: 3070.489 Peak Mbps: 3070.489 Tx PPS: 260741 Elapsed: 3001 Mbps: 2346.921 Peak Mbps: 2377.680 Rx PPS: 199297 Elapsed: 3001 Mbps: 3067.866 Peak Mbps: 3070.489 Tx PPS: 260518 Elapsed: 4001 Mbps: 2337.713 Peak Mbps: 2377.680 Rx PPS: 198515 Elapsed: 4001 Mbps: 3032.821 Peak Mbps: 3070.489 Tx PPS: 257542 Elapsed: 5001 Mbps: 2340.256 Peak Mbps: 2377.680 Rx PPS: 198731 Elapsed: 5001 Mbps: 3044.414 Peak Mbps: 3070.489 Tx PPS: 258527 --- 127.0.0.1 tcpbench statistics --- 2284860480 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3032.821/3050.463/3070.489/15.751 Mbps Elapsed: 6003 Mbps: 2252.651 Peak Mbps: 2377.680 Rx PPS: 191291 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1745098688 bytes received over 6.005 seconds bandwidth min/avg/max/std-dev = 2252.651/2325.939/2377.680/39.757 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.58s