START sys/kern/sosplice/perf 2025-01-13T02:28:52Z ==== 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 1938775550 15510.204 100.00% Conn: 1 Mbps: 15510.204 Peak Mbps: 15510.204 Avg Mbps: 15510.204 999 1938742834 15525.468 100.00% Conn: 1 Mbps: 15525.468 Peak Mbps: 15525.468 Avg Mbps: 15525.468 2000 1949068680 15608.158 100.00% Conn: 1 Mbps: 15608.158 Peak Mbps: 15608.158 Avg Mbps: 15608.158 1999 1949068668 15608.158 100.00% Conn: 1 Mbps: 15608.158 Peak Mbps: 15608.158 Avg Mbps: 15608.158 3000 1945601972 15564.816 100.00% Conn: 1 Mbps: 15564.816 Peak Mbps: 15608.158 Avg Mbps: 15564.816 3000 1945536552 15564.292 100.00% Conn: 1 Mbps: 15564.292 Peak Mbps: 15608.158 Avg Mbps: 15564.292 4000 1950636624 15620.714 100.00% Conn: 1 Mbps: 15620.714 Peak Mbps: 15620.714 Avg Mbps: 15620.714 4000 1950767476 15606.140 100.00% Conn: 1 Mbps: 15606.140 Peak Mbps: 15608.158 Avg Mbps: 15606.140 5000 1947219434 15577.755 100.00% Conn: 1 Mbps: 15577.755 Peak Mbps: 15620.714 Avg Mbps: 15577.755 5000 1947219434 15577.755 100.00% Conn: 1 Mbps: 15577.755 Peak Mbps: 15608.158 Avg Mbps: 15577.755 --- 127.0.0.1 tcpbench statistics --- 11683424306 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15510.204/15576.329/15620.714/38.704 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11683424306 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15525.468/15576.363/15608.158/30.448 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 1504309848 12034.479 100.00% Conn: 1 Mbps: 12034.479 Peak Mbps: 12034.479 Avg Mbps: 12034.479 1000 1504326206 12034.610 100.00% Conn: 1 Mbps: 12034.610 Peak Mbps: 12034.610 Avg Mbps: 12034.610 2000 1511868752 12094.950 100.00% Conn: 1 Mbps: 12094.950 Peak Mbps: 12094.950 Avg Mbps: 12094.950 2000 1511786962 12094.296 100.00% Conn: 1 Mbps: 12094.296 Peak Mbps: 12094.296 Avg Mbps: 12094.296 3000 1511376916 12103.118 100.00% Conn: 1 Mbps: 12103.118 Peak Mbps: 12103.118 Avg Mbps: 12103.118 3000 1511507780 12092.062 100.00% Conn: 1 Mbps: 12092.062 Peak Mbps: 12094.296 Avg Mbps: 12092.062 4000 1511769932 12094.159 100.00% Conn: 1 Mbps: 12094.159 Peak Mbps: 12103.118 Avg Mbps: 12094.159 4000 1511769932 12094.159 100.00% Conn: 1 Mbps: 12094.159 Peak Mbps: 12094.296 Avg Mbps: 12094.159 5000 1512441394 12099.531 100.00% Conn: 1 Mbps: 12099.531 Peak Mbps: 12103.118 Avg Mbps: 12099.531 5000 1512441394 12099.531 100.00% Conn: 1 Mbps: 12099.531 Peak Mbps: 12099.531 Avg Mbps: 12099.531 --- 127.0.0.1 tcpbench statistics --- 9063291388 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12034.479/12085.248/12103.118/25.591 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9063291388 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12034.610/12082.932/12099.531/24.286 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: 3192.226 Peak Mbps: 3192.226 Tx PPS: 271079 Elapsed: 1000 Mbps: 2601.106 Peak Mbps: 2601.106 Rx PPS: 220882 Elapsed: 2000 Mbps: 3013.678 Peak Mbps: 3192.226 Tx PPS: 255916 Elapsed: 1999 Mbps: 2400.984 Peak Mbps: 2601.106 Rx PPS: 203887 Elapsed: 3000 Mbps: 2960.416 Peak Mbps: 3192.226 Tx PPS: 251394 Elapsed: 2999 Mbps: 2401.727 Peak Mbps: 2601.106 Rx PPS: 203951 Elapsed: 4000 Mbps: 2973.993 Peak Mbps: 3192.226 Tx PPS: 252547 Elapsed: 3999 Mbps: 2352.421 Peak Mbps: 2601.106 Rx PPS: 199764 Elapsed: 5013 Mbps: 2436.504 Peak Mbps: 2601.106 Rx PPS: 206904 Elapsed: 5013 Mbps: 2980.281 Peak Mbps: 3192.226 Tx PPS: 253080 --- 127.0.0.1 tcpbench statistics --- 2272167424 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2960.416/3024.119/3192.226/85.862 Mbps Elapsed: 6024 Mbps: 2495.394 Peak Mbps: 2601.106 Rx PPS: 211905 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1843242816 bytes received over 6.027 seconds bandwidth min/avg/max/std-dev = 2352.421/2448.023/2601.106/80.939 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: 1038 Mbps: 2205.584 Peak Mbps: 2205.584 Rx PPS: 187294 Elapsed: 1038 Mbps: 3092.913 Peak Mbps: 3092.913 Tx PPS: 262645 Elapsed: 2038 Mbps: 3101.167 Peak Mbps: 3101.167 Tx PPS: 263346 Elapsed: 2038 Mbps: 2300.894 Peak Mbps: 2300.894 Rx PPS: 195388 Elapsed: 3038 Mbps: 2992.023 Peak Mbps: 3101.167 Tx PPS: 254078 Elapsed: 3038 Mbps: 2191.455 Peak Mbps: 2300.894 Rx PPS: 186095 Elapsed: 4038 Mbps: 3079.076 Peak Mbps: 3101.167 Tx PPS: 261470 Elapsed: 4038 Mbps: 2360.111 Peak Mbps: 2360.111 Rx PPS: 200417 Elapsed: 5038 Mbps: 3076.009 Peak Mbps: 3101.167 Tx PPS: 261210 Elapsed: 5038 Mbps: 2428.706 Peak Mbps: 2428.706 Rx PPS: 206242 --- 127.0.0.1 tcpbench statistics --- 2251843520 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2992.023/3068.237/3101.167/39.191 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1692208256 bytes received over 6.011 seconds bandwidth min/avg/max/std-dev = 2191.455/2297.350/2428.706/90.378 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s