START sys/kern/sosplice/perf 2024-12-29T02:21:37Z ==== 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 2140235232 17121.882 100.00% Conn: 1 Mbps: 17121.882 Peak Mbps: 17121.882 Avg Mbps: 17121.882 999 2140104472 17137.974 100.00% Conn: 1 Mbps: 17137.974 Peak Mbps: 17137.974 Avg Mbps: 17137.974 2000 2166752126 17351.368 100.00% Conn: 1 Mbps: 17351.368 Peak Mbps: 17351.368 Avg Mbps: 17351.368 2000 2166817454 17334.540 100.00% Conn: 1 Mbps: 17334.540 Peak Mbps: 17334.540 Avg Mbps: 17334.540 3000 2158541214 17285.615 100.00% Conn: 1 Mbps: 17285.615 Peak Mbps: 17351.368 Avg Mbps: 17285.615 3000 2158573942 17268.592 100.00% Conn: 1 Mbps: 17268.592 Peak Mbps: 17334.540 Avg Mbps: 17268.592 4000 2151752428 17214.019 100.00% Conn: 1 Mbps: 17214.019 Peak Mbps: 17351.368 Avg Mbps: 17214.019 4000 2151785132 17214.281 100.00% Conn: 1 Mbps: 17214.281 Peak Mbps: 17334.540 Avg Mbps: 17214.281 5000 2158851152 17270.809 100.00% Conn: 1 Mbps: 17270.809 Peak Mbps: 17351.368 Avg Mbps: 17270.809 5000 2158851152 17270.809 100.00% Conn: 1 Mbps: 17270.809 Peak Mbps: 17334.540 Avg Mbps: 17270.809 --- 127.0.0.1 tcpbench statistics --- 12931991122 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17121.882/17248.739/17351.368/77.043 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12931991122 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 17137.974/17245.239/17334.540/65.785 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 1980145436 15841.163 100.00% Conn: 1 Mbps: 15841.163 Peak Mbps: 15841.163 Avg Mbps: 15841.163 999 1980178152 15857.282 100.00% Conn: 1 Mbps: 15857.282 Peak Mbps: 15857.282 Avg Mbps: 15857.282 2000 1994213680 15969.679 100.00% Conn: 1 Mbps: 15969.679 Peak Mbps: 15969.679 Avg Mbps: 15969.679 1999 1994311816 15954.495 100.00% Conn: 1 Mbps: 15954.495 Peak Mbps: 15954.495 Avg Mbps: 15954.495 3000 1992345968 15938.768 100.00% Conn: 1 Mbps: 15938.768 Peak Mbps: 15969.679 Avg Mbps: 15938.768 3000 1992280548 15938.244 100.00% Conn: 1 Mbps: 15938.244 Peak Mbps: 15954.495 Avg Mbps: 15938.244 4000 1988439166 15907.513 100.00% Conn: 1 Mbps: 15907.513 Peak Mbps: 15969.679 Avg Mbps: 15907.513 4000 1988406450 15907.252 100.00% Conn: 1 Mbps: 15907.252 Peak Mbps: 15954.495 Avg Mbps: 15907.252 5000 1987800500 15902.404 100.00% Conn: 1 Mbps: 15902.404 Peak Mbps: 15969.679 Avg Mbps: 15902.404 5000 1987767772 15902.142 100.00% Conn: 1 Mbps: 15902.142 Peak Mbps: 15954.495 Avg Mbps: 15902.142 --- 127.0.0.1 tcpbench statistics --- 11933361970 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15841.163/15911.906/15969.679/42.833 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11933361970 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15857.282/15911.883/15954.495/33.491 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: 3104.731 Peak Mbps: 3104.731 Tx PPS: 263649 Elapsed: 1000 Mbps: 2566.238 Peak Mbps: 2566.238 Rx PPS: 217921 Elapsed: 2000 Mbps: 2952.688 Peak Mbps: 3104.731 Tx PPS: 250737 Elapsed: 2000 Mbps: 2393.333 Peak Mbps: 2566.238 Rx PPS: 203238 Elapsed: 3000 Mbps: 2967.022 Peak Mbps: 3104.731 Tx PPS: 251955 Elapsed: 3000 Mbps: 2441.129 Peak Mbps: 2566.238 Rx PPS: 207297 Elapsed: 4000 Mbps: 3080.967 Peak Mbps: 3104.731 Tx PPS: 261631 Elapsed: 4000 Mbps: 2403.199 Peak Mbps: 2566.238 Rx PPS: 204076 Elapsed: 5007 Mbps: 2420.418 Peak Mbps: 2566.238 Rx PPS: 205538 Elapsed: 5007 Mbps: 2966.219 Peak Mbps: 3104.731 Tx PPS: 251886 --- 127.0.0.1 tcpbench statistics --- 2264221568 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2952.688/3014.325/3104.731/64.754 Mbps Elapsed: 6028 Mbps: 2399.709 Peak Mbps: 2566.238 Rx PPS: 203779 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1836252288 bytes received over 6.032 seconds bandwidth min/avg/max/std-dev = 2393.333/2437.338/2566.238/59.768 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: 1014 Mbps: 3027.791 Peak Mbps: 3027.791 Tx PPS: 257115 Elapsed: 1014 Mbps: 2284.021 Peak Mbps: 2284.021 Rx PPS: 193955 Elapsed: 2014 Mbps: 2326.084 Peak Mbps: 2326.084 Rx PPS: 197527 Elapsed: 2014 Mbps: 3202.589 Peak Mbps: 3202.589 Tx PPS: 271958 Elapsed: 3014 Mbps: 2229.197 Peak Mbps: 2326.084 Rx PPS: 189300 Elapsed: 3014 Mbps: 2977.609 Peak Mbps: 3202.589 Tx PPS: 252854 Elapsed: 4014 Mbps: 3027.704 Peak Mbps: 3202.589 Tx PPS: 257108 Elapsed: 4014 Mbps: 2155.326 Peak Mbps: 2326.084 Rx PPS: 183027 Elapsed: 5014 Mbps: 2185.684 Peak Mbps: 2326.084 Rx PPS: 185605 Elapsed: 5014 Mbps: 2933.955 Peak Mbps: 3202.589 Tx PPS: 249147 --- 127.0.0.1 tcpbench statistics --- 2265141568 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2933.955/3033.929/3202.589/91.312 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1674820992 bytes received over 6.009 seconds bandwidth min/avg/max/std-dev = 2155.326/2236.063/2326.084/62.462 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s