START sys/kern/sosplice/perf 2025-03-23T02:24:41Z ==== 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 999 1820066678 14575.109 100.00% 1000 1820262974 14562.104 100.00% Conn: 1 Mbps: 14575.109 Peak Mbps: 14575.109 Avg Mbps: 14575.109 Conn: 1 Mbps: 14562.104 Peak Mbps: 14562.104 Avg Mbps: 14562.104 2000 1831203304 14664.291 100.00% Conn: 1 Mbps: 14664.291 Peak Mbps: 14664.291 Avg Mbps: 14664.291 2000 1831334168 14650.673 100.00% Conn: 1 Mbps: 14650.673 Peak Mbps: 14650.673 Avg Mbps: 14650.673 3000 1828885424 14631.083 100.00% Conn: 1 Mbps: 14631.083 Peak Mbps: 14664.291 Avg Mbps: 14631.083 3000 1828885528 14631.084 100.00% Conn: 1 Mbps: 14631.084 Peak Mbps: 14650.673 Avg Mbps: 14631.084 4000 1832089720 14671.389 100.00% Conn: 1 Mbps: 14671.389 Peak Mbps: 14671.389 Avg Mbps: 14671.389 4000 1832122436 14656.979 100.00% Conn: 1 Mbps: 14656.979 Peak Mbps: 14656.979 Avg Mbps: 14656.979 5000 1838681714 14709.454 100.00% Conn: 1 Mbps: 14709.454 Peak Mbps: 14709.454 Avg Mbps: 14709.454 5000 1838681610 14709.453 100.00% Conn: 1 Mbps: 14709.453 Peak Mbps: 14709.453 Avg Mbps: 14709.453 --- 127.0.0.1 tcpbench statistics --- 10983426070 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14562.104/14647.664/14709.454/49.503 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10983426070 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14575.109/14644.660/14709.453/43.377 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 2000480426 16003.843 100.00% Conn: 1 Mbps: 16003.843 Peak Mbps: 16003.843 Avg Mbps: 16003.843 999 2000382278 16019.077 100.00% Conn: 1 Mbps: 16019.077 Peak Mbps: 16019.077 Avg Mbps: 16019.077 2000 2014390410 16131.255 100.00% Conn: 1 Mbps: 16131.255 Peak Mbps: 16131.255 Avg Mbps: 16131.255 2000 2014521274 16116.170 100.00% Conn: 1 Mbps: 16116.170 Peak Mbps: 16116.170 Avg Mbps: 16116.170 3000 2014291234 16114.330 100.00% Conn: 1 Mbps: 16114.330 Peak Mbps: 16131.255 Avg Mbps: 16114.330 3000 2014323950 16114.592 100.00% Conn: 1 Mbps: 16114.592 Peak Mbps: 16116.170 Avg Mbps: 16114.592 4000 2014732432 16117.859 100.00% Conn: 1 Mbps: 16117.859 Peak Mbps: 16131.255 Avg Mbps: 16117.859 4000 2014699716 16117.598 100.00% Conn: 1 Mbps: 16117.598 Peak Mbps: 16117.598 Avg Mbps: 16117.598 5000 2014863408 16118.907 100.00% Conn: 1 Mbps: 16118.907 Peak Mbps: 16131.255 Avg Mbps: 16118.907 5000 2014797976 16118.384 100.00% Conn: 1 Mbps: 16118.384 Peak Mbps: 16118.384 Avg Mbps: 16118.384 --- 127.0.0.1 tcpbench statistics --- 12075172448 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 16003.843/16097.239/16131.255/47.046 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12075172448 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 16019.077/16097.164/16118.384/39.065 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: 3325.695 Peak Mbps: 3325.695 Tx PPS: 282413 Elapsed: 1000 Mbps: 2977.138 Peak Mbps: 2977.138 Rx PPS: 252814 Elapsed: 2000 Mbps: 3318.121 Peak Mbps: 3325.695 Tx PPS: 281769 Elapsed: 1999 Mbps: 3087.198 Peak Mbps: 3087.198 Rx PPS: 262160 Elapsed: 2999 Mbps: 2976.985 Peak Mbps: 3087.198 Rx PPS: 252801 Elapsed: 3009 Mbps: 3286.659 Peak Mbps: 3325.695 Tx PPS: 279098 Elapsed: 3999 Mbps: 2908.272 Peak Mbps: 3087.198 Rx PPS: 246966 Elapsed: 4009 Mbps: 3308.620 Peak Mbps: 3325.695 Tx PPS: 280963 Elapsed: 4999 Mbps: 3027.657 Peak Mbps: 3087.198 Rx PPS: 257104 Elapsed: 5009 Mbps: 3225.258 Peak Mbps: 3325.695 Tx PPS: 273884 --- 127.0.0.1 tcpbench statistics --- 2464353216 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3225.258/3292.871/3325.695/36.258 Mbps Elapsed: 6000 Mbps: 3196.489 Peak Mbps: 3196.489 Rx PPS: 271441 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2274048640 bytes received over 6.008 seconds bandwidth min/avg/max/std-dev = 2908.272/3028.956/3196.489/92.567 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: 3439.993 Peak Mbps: 3439.993 Tx PPS: 292119 Elapsed: 1000 Mbps: 2722.517 Peak Mbps: 2722.517 Rx PPS: 231192 Elapsed: 2000 Mbps: 3379.193 Peak Mbps: 3439.993 Tx PPS: 286955 Elapsed: 1999 Mbps: 2687.981 Peak Mbps: 2722.517 Rx PPS: 228259 Elapsed: 2999 Mbps: 2743.361 Peak Mbps: 2743.361 Rx PPS: 232962 Elapsed: 3008 Mbps: 3430.975 Peak Mbps: 3439.993 Tx PPS: 291353 Elapsed: 4000 Mbps: 2706.655 Peak Mbps: 2743.361 Rx PPS: 229845 Elapsed: 4008 Mbps: 3428.902 Peak Mbps: 3439.993 Tx PPS: 291177 Elapsed: 5000 Mbps: 2794.468 Peak Mbps: 2794.468 Rx PPS: 237302 Elapsed: 5008 Mbps: 3390.475 Peak Mbps: 3439.993 Tx PPS: 287914 --- 127.0.0.1 tcpbench statistics --- 2563295168 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3379.193/3413.908/3439.993/24.293 Mbps Elapsed: 6000 Mbps: 2791.454 Peak Mbps: 2794.468 Rx PPS: 237046 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2061253376 bytes received over 6.015 seconds bandwidth min/avg/max/std-dev = 2687.981/2741.073/2794.468/40.295 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s