START sys/kern/sosplice/perf 2024-12-27T02:16:32Z ==== 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 2308276514 18466.212 100.00% Conn: 1 Mbps: 18466.212 Peak Mbps: 18466.212 Avg Mbps: 18466.212 999 2308130124 18483.525 100.00% Conn: 1 Mbps: 18483.525 Peak Mbps: 18483.525 Avg Mbps: 18483.525 2000 2322039248 18594.909 100.00% Conn: 1 Mbps: 18594.909 Peak Mbps: 18594.909 Avg Mbps: 18594.909 2000 2322218458 18577.748 100.00% Conn: 1 Mbps: 18577.748 Peak Mbps: 18577.748 Avg Mbps: 18577.748 3000 2323036530 18602.895 100.00% Conn: 1 Mbps: 18602.895 Peak Mbps: 18602.895 Avg Mbps: 18602.895 3000 2323085604 18603.288 100.00% Conn: 1 Mbps: 18603.288 Peak Mbps: 18603.288 Avg Mbps: 18603.288 4000 2324979888 18599.839 100.00% Conn: 1 Mbps: 18599.839 Peak Mbps: 18602.895 Avg Mbps: 18599.839 4000 2324882468 18599.060 100.00% Conn: 1 Mbps: 18599.060 Peak Mbps: 18603.288 Avg Mbps: 18599.060 5000 2319903950 18559.232 100.00% Conn: 1 Mbps: 18559.232 Peak Mbps: 18602.895 Avg Mbps: 18559.232 5000 2319985324 18559.883 100.00% Conn: 1 Mbps: 18559.883 Peak Mbps: 18603.288 Avg Mbps: 18559.883 --- 127.0.0.1 tcpbench statistics --- 13922990206 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 18466.212/18564.617/18602.895/51.645 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13922990206 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 18483.525/18564.701/18603.288/43.480 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 2468197992 19745.584 100.00% Conn: 1 Mbps: 19745.584 Peak Mbps: 19745.584 Avg Mbps: 19745.584 999 2468165264 19765.087 100.00% Conn: 1 Mbps: 19765.087 Peak Mbps: 19765.087 Avg Mbps: 19765.087 2000 2476803480 19834.262 100.00% Conn: 1 Mbps: 19834.262 Peak Mbps: 19834.262 Avg Mbps: 19834.262 1999 2476901628 19815.213 100.00% Conn: 1 Mbps: 19815.213 Peak Mbps: 19815.213 Avg Mbps: 19815.213 2999 2482705300 19861.642 100.00% Conn: 1 Mbps: 19861.642 Peak Mbps: 19861.642 Avg Mbps: 19861.642 3000 2483114642 19864.917 100.00% Conn: 1 Mbps: 19864.917 Peak Mbps: 19864.917 Avg Mbps: 19864.917 3999 2479271958 19834.176 100.00% Conn: 1 Mbps: 19834.176 Peak Mbps: 19861.642 Avg Mbps: 19834.176 4000 2479206538 19833.652 100.00% Conn: 1 Mbps: 19833.652 Peak Mbps: 19864.917 Avg Mbps: 19833.652 4999 2479923572 19859.248 100.00% Conn: 1 Mbps: 19859.248 Peak Mbps: 19861.642 Avg Mbps: 19859.248 5000 2480169358 19841.355 100.00% Conn: 1 Mbps: 19841.355 Peak Mbps: 19864.917 Avg Mbps: 19841.355 --- 127.0.0.1 tcpbench statistics --- 14866425222 bytes sent over 6.000 seconds bandwidth min/avg/max/std-dev = 19745.584/19823.954/19864.917/40.799 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 14866425222 bytes received over 6.001 seconds bandwidth min/avg/max/std-dev = 19765.087/19827.073/19861.642/35.394 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: 4376.185 Peak Mbps: 4376.185 Tx PPS: 371619 Elapsed: 1000 Mbps: 2919.989 Peak Mbps: 2919.989 Rx PPS: 247961 Elapsed: 2000 Mbps: 4140.743 Peak Mbps: 4376.185 Tx PPS: 351625 Elapsed: 1999 Mbps: 2715.918 Peak Mbps: 2919.989 Rx PPS: 230631 Elapsed: 3000 Mbps: 4570.172 Peak Mbps: 4570.172 Tx PPS: 388092 Elapsed: 2999 Mbps: 2924.935 Peak Mbps: 2924.935 Rx PPS: 248381 Elapsed: 4000 Mbps: 4143.456 Peak Mbps: 4570.172 Tx PPS: 351856 Elapsed: 4061 Mbps: 2510.563 Peak Mbps: 2924.935 Rx PPS: 213193 Elapsed: 5000 Mbps: 4156.940 Peak Mbps: 4570.172 Tx PPS: 353001 Elapsed: 5061 Mbps: 2752.036 Peak Mbps: 2924.935 Rx PPS: 233698 --- 127.0.0.1 tcpbench statistics --- 3190133120 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 4140.743/4277.499/4570.172/171.231 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2075933632 bytes received over 6.022 seconds bandwidth min/avg/max/std-dev = 2510.563/2764.688/2924.935/152.915 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: 4210.827 Peak Mbps: 4210.827 Tx PPS: 357577 Elapsed: 1000 Mbps: 2545.995 Peak Mbps: 2545.995 Rx PPS: 216202 Elapsed: 2000 Mbps: 4518.990 Peak Mbps: 4518.990 Tx PPS: 383745 Elapsed: 2093 Mbps: 2499.917 Peak Mbps: 2545.995 Rx PPS: 212289 Elapsed: 3000 Mbps: 4030.501 Peak Mbps: 4518.990 Tx PPS: 342264 Elapsed: 3093 Mbps: 2532.641 Peak Mbps: 2545.995 Rx PPS: 215068 Elapsed: 4000 Mbps: 4071.046 Peak Mbps: 4518.990 Tx PPS: 345707 Elapsed: 4093 Mbps: 2558.619 Peak Mbps: 2558.619 Rx PPS: 217274 Elapsed: 5000 Mbps: 4070.951 Peak Mbps: 4518.990 Tx PPS: 345699 Elapsed: 5093 Mbps: 2532.123 Peak Mbps: 2558.619 Rx PPS: 215024 --- 127.0.0.1 tcpbench statistics --- 3163676864 bytes sent over 6.076 seconds bandwidth min/avg/max/std-dev = 4030.501/4180.463/4518.990/179.987 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1919564544 bytes received over 6.079 seconds bandwidth min/avg/max/std-dev = 2499.917/2533.859/2558.619/19.580 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.62s