START sys/kern/sosplice/perf 2024-12-31T02:24:36Z ==== 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 2159357122 17274.857 100.00% Conn: 1 Mbps: 17274.857 Peak Mbps: 17274.857 Avg Mbps: 17274.857 1000 2159455258 17275.642 100.00% Conn: 1 Mbps: 17275.642 Peak Mbps: 17275.642 Avg Mbps: 17275.642 2000 2173346428 17386.771 100.00% Conn: 1 Mbps: 17386.771 Peak Mbps: 17386.771 Avg Mbps: 17386.771 2000 2173248292 17385.986 100.00% Conn: 1 Mbps: 17385.986 Peak Mbps: 17385.986 Avg Mbps: 17385.986 3000 2170089986 17360.720 100.00% Conn: 1 Mbps: 17360.720 Peak Mbps: 17386.771 Avg Mbps: 17360.720 3000 2170089974 17360.720 100.00% Conn: 1 Mbps: 17360.720 Peak Mbps: 17385.986 Avg Mbps: 17360.720 4000 2172035832 17376.287 100.00% Conn: 1 Mbps: 17376.287 Peak Mbps: 17386.771 Avg Mbps: 17376.287 4000 2172232128 17377.857 100.00% Conn: 1 Mbps: 17377.857 Peak Mbps: 17385.986 Avg Mbps: 17377.857 5000 2173917962 17391.344 100.00% Conn: 1 Mbps: 17391.344 Peak Mbps: 17391.344 Avg Mbps: 17391.344 5000 2173819814 17390.559 100.00% Conn: 1 Mbps: 17390.559 Peak Mbps: 17390.559 Avg Mbps: 17390.559 --- 127.0.0.1 tcpbench statistics --- 13021895122 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17274.857/17357.996/17391.344/42.882 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 13021895122 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 17275.642/17358.153/17390.559/42.492 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 2005370656 16042.965 100.00% Conn: 1 Mbps: 16042.965 Peak Mbps: 16042.965 Avg Mbps: 16042.965 999 2005370656 16059.024 100.00% Conn: 1 Mbps: 16059.024 Peak Mbps: 16059.024 Avg Mbps: 16059.024 2000 2021316382 16186.718 100.00% Conn: 1 Mbps: 16186.718 Peak Mbps: 16186.718 Avg Mbps: 16186.718 2000 2021447234 16171.578 100.00% Conn: 1 Mbps: 16171.578 Peak Mbps: 16171.578 Avg Mbps: 16171.578 3000 2014757096 16118.057 100.00% Conn: 1 Mbps: 16118.057 Peak Mbps: 16186.718 Avg Mbps: 16118.057 3000 2014724380 16117.795 100.00% Conn: 1 Mbps: 16117.795 Peak Mbps: 16171.578 Avg Mbps: 16117.795 4000 2019680666 16157.445 100.00% Conn: 1 Mbps: 16157.445 Peak Mbps: 16186.718 Avg Mbps: 16157.445 4000 2019778826 16158.231 100.00% Conn: 1 Mbps: 16158.231 Peak Mbps: 16171.578 Avg Mbps: 16158.231 5000 2022184832 16177.479 100.00% Conn: 1 Mbps: 16177.479 Peak Mbps: 16186.718 Avg Mbps: 16177.479 5000 2022201178 16177.609 100.00% Conn: 1 Mbps: 16177.609 Peak Mbps: 16177.609 Avg Mbps: 16177.609 --- 127.0.0.1 tcpbench statistics --- 12100226340 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16042.965/16136.533/16186.718/52.400 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12100226340 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16059.024/16136.847/16177.609/44.146 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: 3061.866 Peak Mbps: 3061.866 Tx PPS: 260009 Elapsed: 1000 Mbps: 2556.122 Peak Mbps: 2556.122 Rx PPS: 217062 Elapsed: 2000 Mbps: 3085.654 Peak Mbps: 3085.654 Tx PPS: 262029 Elapsed: 1999 Mbps: 2524.838 Peak Mbps: 2556.122 Rx PPS: 214405 Elapsed: 3000 Mbps: 3056.767 Peak Mbps: 3085.654 Tx PPS: 259576 Elapsed: 3000 Mbps: 2387.454 Peak Mbps: 2556.122 Rx PPS: 202739 Elapsed: 4000 Mbps: 2993.365 Peak Mbps: 3085.654 Tx PPS: 254192 Elapsed: 4000 Mbps: 2402.457 Peak Mbps: 2556.122 Rx PPS: 204013 Elapsed: 5000 Mbps: 2968.754 Peak Mbps: 3085.654 Tx PPS: 252102 Elapsed: 5000 Mbps: 2407.803 Peak Mbps: 2556.122 Rx PPS: 204467 --- 127.0.0.1 tcpbench statistics --- 2268513920 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2968.754/3033.281/3085.654/44.427 Mbps Elapsed: 6000 Mbps: 2374.042 Peak Mbps: 2556.122 Rx PPS: 201600 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1831419712 bytes received over 6.005 seconds bandwidth min/avg/max/std-dev = 2374.042/2442.119/2556.122/70.961 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: 3145.169 Peak Mbps: 3145.169 Tx PPS: 267083 Elapsed: 1000 Mbps: 2347.098 Peak Mbps: 2347.098 Rx PPS: 199312 Elapsed: 2000 Mbps: 3005.709 Peak Mbps: 3145.169 Tx PPS: 255240 Elapsed: 2000 Mbps: 2251.350 Peak Mbps: 2347.098 Rx PPS: 191181 Elapsed: 3120 Mbps: 2146.123 Peak Mbps: 2347.098 Rx PPS: 182245 Elapsed: 3120 Mbps: 2870.432 Peak Mbps: 3145.169 Tx PPS: 243752 Elapsed: 4120 Mbps: 2272.520 Peak Mbps: 2347.098 Rx PPS: 192978 Elapsed: 4120 Mbps: 3159.764 Peak Mbps: 3159.764 Tx PPS: 268322 Elapsed: 5120 Mbps: 2151.746 Peak Mbps: 2347.098 Rx PPS: 182723 Elapsed: 5120 Mbps: 3002.774 Peak Mbps: 3159.764 Tx PPS: 254991 --- 127.0.0.1 tcpbench statistics --- 2263319232 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2870.432/3036.770/3159.764/106.458 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1663209856 bytes received over 6.020 seconds bandwidth min/avg/max/std-dev = 2146.123/2233.768/2347.098/76.241 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s