START sys/kern/sosplice/perf 2025-01-17T00:59:48Z ==== 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 1903560828 15228.487 100.00% Conn: 1 Mbps: 15228.487 Peak Mbps: 15228.487 Avg Mbps: 15228.487 1000 1903528112 15228.225 100.00% Conn: 1 Mbps: 15228.225 Peak Mbps: 15228.225 Avg Mbps: 15228.225 2000 1916812380 15349.849 100.00% Conn: 1 Mbps: 15349.849 Peak Mbps: 15349.849 Avg Mbps: 15349.849 2000 1916861454 15334.892 100.00% Conn: 1 Mbps: 15334.892 Peak Mbps: 15334.892 Avg Mbps: 15334.892 3000 1912134124 15297.073 100.00% Conn: 1 Mbps: 15297.073 Peak Mbps: 15349.849 Avg Mbps: 15297.073 3000 1912052334 15296.419 100.00% Conn: 1 Mbps: 15296.419 Peak Mbps: 15334.892 Avg Mbps: 15296.419 4000 1915226338 15337.148 100.00% Conn: 1 Mbps: 15337.148 Peak Mbps: 15349.849 Avg Mbps: 15337.148 4000 1915357178 15322.857 100.00% Conn: 1 Mbps: 15322.857 Peak Mbps: 15334.892 Avg Mbps: 15322.857 5000 1921259668 15370.077 100.00% Conn: 1 Mbps: 15370.077 Peak Mbps: 15370.077 Avg Mbps: 15370.077 5000 1921259784 15370.078 100.00% Conn: 1 Mbps: 15370.078 Peak Mbps: 15370.078 Avg Mbps: 15370.078 --- 127.0.0.1 tcpbench statistics --- 11485412886 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15228.487/15316.527/15370.077/50.066 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11485412886 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15228.225/15310.494/15370.078/47.465 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 1986178508 15889.428 100.00% Conn: 1 Mbps: 15889.428 Peak Mbps: 15889.428 Avg Mbps: 15889.428 1000 1986178508 15889.428 100.00% Conn: 1 Mbps: 15889.428 Peak Mbps: 15889.428 Avg Mbps: 15889.428 2000 2007361738 16058.894 100.00% Conn: 1 Mbps: 16058.894 Peak Mbps: 16058.894 Avg Mbps: 16058.894 2000 2007361726 16058.894 100.00% Conn: 1 Mbps: 16058.894 Peak Mbps: 16058.894 Avg Mbps: 16058.894 3000 2006315446 16050.524 100.00% Conn: 1 Mbps: 16050.524 Peak Mbps: 16058.894 Avg Mbps: 16050.524 3000 2006348174 16050.785 100.00% Conn: 1 Mbps: 16050.785 Peak Mbps: 16058.894 Avg Mbps: 16050.785 4000 2002191754 16017.534 100.00% Conn: 1 Mbps: 16017.534 Peak Mbps: 16058.894 Avg Mbps: 16017.534 4000 2002257186 16018.057 100.00% Conn: 1 Mbps: 16018.057 Peak Mbps: 16058.894 Avg Mbps: 16018.057 5000 2007952102 16063.617 100.00% Conn: 1 Mbps: 16063.617 Peak Mbps: 16063.617 Avg Mbps: 16063.617 5000 2007853954 16062.832 100.00% Conn: 1 Mbps: 16062.832 Peak Mbps: 16062.832 Avg Mbps: 16062.832 --- 127.0.0.1 tcpbench statistics --- 12013844280 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15889.428/16015.999/16063.617/65.302 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12013844280 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15889.428/16015.999/16062.832/65.219 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: 3281.700 Peak Mbps: 3281.700 Tx PPS: 278677 Elapsed: 1000 Mbps: 2723.094 Peak Mbps: 2723.094 Rx PPS: 231241 Elapsed: 2000 Mbps: 3125.556 Peak Mbps: 3281.700 Tx PPS: 265417 Elapsed: 1999 Mbps: 2478.076 Peak Mbps: 2723.094 Rx PPS: 210434 Elapsed: 3000 Mbps: 3015.092 Peak Mbps: 3281.700 Tx PPS: 256037 Elapsed: 3000 Mbps: 2586.481 Peak Mbps: 2723.094 Rx PPS: 219640 Elapsed: 4000 Mbps: 2973.899 Peak Mbps: 3281.700 Tx PPS: 252539 Elapsed: 4000 Mbps: 2483.205 Peak Mbps: 2723.094 Rx PPS: 210870 Elapsed: 5000 Mbps: 3016.330 Peak Mbps: 3281.700 Tx PPS: 256142 Elapsed: 5000 Mbps: 2581.358 Peak Mbps: 2723.094 Rx PPS: 219205 --- 127.0.0.1 tcpbench statistics --- 2303216320 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2973.899/3082.515/3281.700/111.580 Mbps Elapsed: 6007 Mbps: 2564.513 Peak Mbps: 2723.094 Rx PPS: 217774 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1929163456 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 2478.076/2569.455/2723.094/81.497 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: 3070.533 Peak Mbps: 3070.533 Tx PPS: 260745 Elapsed: 1000 Mbps: 2255.434 Peak Mbps: 2255.434 Rx PPS: 191528 Elapsed: 2000 Mbps: 2978.302 Peak Mbps: 3070.533 Tx PPS: 252912 Elapsed: 1999 Mbps: 2259.707 Peak Mbps: 2259.707 Rx PPS: 191890 Elapsed: 3000 Mbps: 2976.525 Peak Mbps: 3070.533 Tx PPS: 252762 Elapsed: 2999 Mbps: 2253.043 Peak Mbps: 2259.707 Rx PPS: 191325 Elapsed: 4031 Mbps: 2194.379 Peak Mbps: 2259.707 Rx PPS: 186343 Elapsed: 4032 Mbps: 3010.582 Peak Mbps: 3070.533 Tx PPS: 255654 Elapsed: 5031 Mbps: 2324.434 Peak Mbps: 2324.434 Rx PPS: 197387 Elapsed: 5032 Mbps: 3246.396 Peak Mbps: 3246.396 Tx PPS: 275679 --- 127.0.0.1 tcpbench statistics --- 2293730752 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2976.525/3056.468/3246.396/100.873 Mbps Elapsed: 6038 Mbps: 2051.082 Peak Mbps: 2324.434 Rx PPS: 174174 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1677096704 bytes received over 6.042 seconds bandwidth min/avg/max/std-dev = 2051.082/2223.013/2324.434/85.601 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s