START sys/kern/sosplice/perf 2024-12-26T02:23:44Z ==== 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 1579290780 12634.326 100.00% Conn: 1 Mbps: 12634.326 Peak Mbps: 12634.326 Avg Mbps: 12634.326 999 1579144182 12645.799 100.00% Conn: 1 Mbps: 12645.799 Peak Mbps: 12645.799 Avg Mbps: 12645.799 2000 1588318084 12719.264 100.00% Conn: 1 Mbps: 12719.264 Peak Mbps: 12719.264 Avg Mbps: 12719.264 2000 1588366638 12706.933 100.00% Conn: 1 Mbps: 12706.933 Peak Mbps: 12706.933 Avg Mbps: 12706.933 3000 1589430948 12715.448 100.00% Conn: 1 Mbps: 12715.448 Peak Mbps: 12719.264 Avg Mbps: 12715.448 3000 1589480866 12715.847 100.00% Conn: 1 Mbps: 12715.847 Peak Mbps: 12715.847 Avg Mbps: 12715.847 4000 1588152284 12705.218 100.00% Conn: 1 Mbps: 12705.218 Peak Mbps: 12719.264 Avg Mbps: 12705.218 4000 1588053188 12704.426 100.00% Conn: 1 Mbps: 12704.426 Peak Mbps: 12715.847 Avg Mbps: 12704.426 5000 1587369024 12698.952 100.00% Conn: 1 Mbps: 12698.952 Peak Mbps: 12719.264 Avg Mbps: 12698.952 5000 1587418098 12699.345 100.00% Conn: 1 Mbps: 12699.345 Peak Mbps: 12715.847 Avg Mbps: 12699.345 --- 127.0.0.1 tcpbench statistics --- 9518950828 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 12634.326/12694.642/12719.264/31.008 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 9518950828 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 12645.799/12694.470/12715.847/24.916 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 1714604638 13716.837 100.00% Conn: 1 Mbps: 13716.837 Peak Mbps: 13716.837 Avg Mbps: 13716.837 1000 1714490132 13715.921 100.00% Conn: 1 Mbps: 13715.921 Peak Mbps: 13715.921 Avg Mbps: 13715.921 2000 1717573872 13754.345 100.00% Conn: 1 Mbps: 13754.345 Peak Mbps: 13754.345 Avg Mbps: 13754.345 2000 1717704736 13741.638 100.00% Conn: 1 Mbps: 13741.638 Peak Mbps: 13741.638 Avg Mbps: 13741.638 3000 1715219458 13721.756 100.00% Conn: 1 Mbps: 13721.756 Peak Mbps: 13754.345 Avg Mbps: 13721.756 3000 1715170372 13735.098 100.00% Conn: 1 Mbps: 13735.098 Peak Mbps: 13741.638 Avg Mbps: 13735.098 4000 1718617176 13748.937 100.00% Conn: 1 Mbps: 13748.937 Peak Mbps: 13754.345 Avg Mbps: 13748.937 4000 1718551756 13748.414 100.00% Conn: 1 Mbps: 13748.414 Peak Mbps: 13748.414 Avg Mbps: 13748.414 5000 1720413452 13777.085 100.00% Conn: 1 Mbps: 13777.085 Peak Mbps: 13777.085 Avg Mbps: 13777.085 5000 1720511600 13777.871 100.00% Conn: 1 Mbps: 13777.871 Peak Mbps: 13777.871 Avg Mbps: 13777.871 --- 127.0.0.1 tcpbench statistics --- 10303792990 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 13716.837/13743.792/13777.085/22.174 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10303792990 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 13715.921/13743.788/13777.871/20.198 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: 3137.915 Peak Mbps: 3137.915 Tx PPS: 266467 Elapsed: 1000 Mbps: 2431.191 Peak Mbps: 2431.191 Rx PPS: 206453 Elapsed: 2000 Mbps: 2952.747 Peak Mbps: 3137.915 Tx PPS: 250742 Elapsed: 2029 Mbps: 2281.797 Peak Mbps: 2431.191 Rx PPS: 193766 Elapsed: 3000 Mbps: 2952.031 Peak Mbps: 3137.915 Tx PPS: 250682 Elapsed: 3029 Mbps: 2333.096 Peak Mbps: 2431.191 Rx PPS: 198123 Elapsed: 4000 Mbps: 3001.738 Peak Mbps: 3137.915 Tx PPS: 254903 Elapsed: 4029 Mbps: 2298.004 Peak Mbps: 2431.191 Rx PPS: 195143 Elapsed: 5000 Mbps: 2965.609 Peak Mbps: 3137.915 Tx PPS: 251835 Elapsed: 5029 Mbps: 2291.150 Peak Mbps: 2431.191 Rx PPS: 194561 --- 127.0.0.1 tcpbench statistics --- 2251973056 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2952.031/3002.008/3137.915/70.314 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1753596544 bytes received over 6.028 seconds bandwidth min/avg/max/std-dev = 2281.797/2327.048/2431.191/54.885 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: 3063.267 Peak Mbps: 3063.267 Tx PPS: 260128 Elapsed: 1000 Mbps: 2211.321 Peak Mbps: 2211.321 Rx PPS: 187782 Elapsed: 2000 Mbps: 2972.538 Peak Mbps: 3063.267 Tx PPS: 252423 Elapsed: 2004 Mbps: 2106.672 Peak Mbps: 2211.321 Rx PPS: 178895 Elapsed: 3000 Mbps: 2958.626 Peak Mbps: 3063.267 Tx PPS: 251242 Elapsed: 3014 Mbps: 2122.726 Peak Mbps: 2211.321 Rx PPS: 180258 Elapsed: 4000 Mbps: 2911.510 Peak Mbps: 3063.267 Tx PPS: 247241 Elapsed: 4014 Mbps: 2241.491 Peak Mbps: 2241.491 Rx PPS: 190344 Elapsed: 5030 Mbps: 2151.531 Peak Mbps: 2241.491 Rx PPS: 182704 Elapsed: 5031 Mbps: 2982.907 Peak Mbps: 3063.267 Tx PPS: 253303 --- 127.0.0.1 tcpbench statistics --- 2251535872 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2911.510/2977.770/3063.267/49.235 Mbps Elapsed: 6035 Mbps: 2227.834 Peak Mbps: 2241.491 Rx PPS: 189184 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1641648000 bytes received over 6.044 seconds bandwidth min/avg/max/std-dev = 2106.672/2176.929/2241.491/52.379 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.69s