START sys/kern/sosplice/perf 2025-01-05T02:29:08Z ==== 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 2149880832 17199.047 100.00% Conn: 1 Mbps: 17199.047 Peak Mbps: 17199.047 Avg Mbps: 17199.047 999 2149946264 17216.787 100.00% Conn: 1 Mbps: 17216.787 Peak Mbps: 17216.787 Avg Mbps: 17216.787 2000 2158556056 17285.734 100.00% Conn: 1 Mbps: 17285.734 Peak Mbps: 17285.734 Avg Mbps: 17285.734 1999 2158490624 17267.925 100.00% Conn: 1 Mbps: 17267.925 Peak Mbps: 17267.925 Avg Mbps: 17267.925 3000 2162858006 17320.184 100.00% Conn: 1 Mbps: 17320.184 Peak Mbps: 17320.184 Avg Mbps: 17320.184 3000 2162956130 17303.649 100.00% Conn: 1 Mbps: 17303.649 Peak Mbps: 17303.649 Avg Mbps: 17303.649 4000 2163478470 17307.828 100.00% Conn: 1 Mbps: 17307.828 Peak Mbps: 17320.184 Avg Mbps: 17307.828 4000 2163478470 17307.828 100.00% Conn: 1 Mbps: 17307.828 Peak Mbps: 17307.828 Avg Mbps: 17307.828 5000 2162858234 17302.866 100.00% Conn: 1 Mbps: 17302.866 Peak Mbps: 17320.184 Avg Mbps: 17302.866 5000 2162760110 17302.081 100.00% Conn: 1 Mbps: 17302.081 Peak Mbps: 17307.828 Avg Mbps: 17302.081 --- 127.0.0.1 tcpbench statistics --- 12959345768 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 17199.047/17283.132/17320.184/43.472 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 12959345768 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 17216.787/17279.654/17307.828/34.532 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 1875085102 15000.681 100.00% Conn: 1 Mbps: 15000.681 Peak Mbps: 15000.681 Avg Mbps: 15000.681 999 1875019670 15015.173 100.00% Conn: 1 Mbps: 15015.173 Peak Mbps: 15015.173 Avg Mbps: 15015.173 2000 1890935524 15142.627 100.00% Conn: 1 Mbps: 15142.627 Peak Mbps: 15142.627 Avg Mbps: 15142.627 1999 1891000956 15128.008 100.00% Conn: 1 Mbps: 15128.008 Peak Mbps: 15128.008 Avg Mbps: 15128.008 3000 1887419790 15099.358 100.00% Conn: 1 Mbps: 15099.358 Peak Mbps: 15142.627 Avg Mbps: 15099.358 2999 1887354358 15113.949 100.00% Conn: 1 Mbps: 15113.949 Peak Mbps: 15128.008 Avg Mbps: 15113.949 4000 1882987688 15063.902 100.00% Conn: 1 Mbps: 15063.902 Peak Mbps: 15142.627 Avg Mbps: 15063.902 4000 1882987688 15063.902 100.00% Conn: 1 Mbps: 15063.902 Peak Mbps: 15128.008 Avg Mbps: 15063.902 5000 1887075656 15096.605 100.00% Conn: 1 Mbps: 15096.605 Peak Mbps: 15128.008 Avg Mbps: 15096.605 5000 1887157446 15097.260 100.00% Conn: 1 Mbps: 15097.260 Peak Mbps: 15142.627 Avg Mbps: 15097.260 --- 127.0.0.1 tcpbench statistics --- 11308845836 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15000.681/15080.765/15142.627/47.207 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11308845836 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15015.173/15083.527/15128.008/40.330 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: 3147.960 Peak Mbps: 3147.960 Tx PPS: 267320 Elapsed: 1000 Mbps: 2561.692 Peak Mbps: 2561.692 Rx PPS: 217535 Elapsed: 2000 Mbps: 3004.860 Peak Mbps: 3147.960 Tx PPS: 255168 Elapsed: 2000 Mbps: 2378.080 Peak Mbps: 2561.692 Rx PPS: 201942 Elapsed: 3000 Mbps: 2949.464 Peak Mbps: 3147.960 Tx PPS: 250464 Elapsed: 3000 Mbps: 2426.845 Peak Mbps: 2561.692 Rx PPS: 206084 Elapsed: 4000 Mbps: 2981.907 Peak Mbps: 3147.960 Tx PPS: 253219 Elapsed: 4000 Mbps: 2386.654 Peak Mbps: 2561.692 Rx PPS: 202671 Elapsed: 5000 Mbps: 2972.333 Peak Mbps: 3147.960 Tx PPS: 252406 Elapsed: 5000 Mbps: 2373.123 Peak Mbps: 2561.692 Rx PPS: 201522 --- 127.0.0.1 tcpbench statistics --- 2253576064 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2949.464/3011.305/3147.960/70.603 Mbps Elapsed: 6000 Mbps: 2364.409 Peak Mbps: 2561.692 Rx PPS: 200782 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1811226816 bytes received over 6.010 seconds bandwidth min/avg/max/std-dev = 2364.409/2415.134/2561.692/68.482 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: 3107.286 Peak Mbps: 3107.286 Tx PPS: 263866 Elapsed: 1000 Mbps: 2213.087 Peak Mbps: 2213.087 Rx PPS: 187932 Elapsed: 2000 Mbps: 2934.876 Peak Mbps: 3107.286 Tx PPS: 249225 Elapsed: 1999 Mbps: 2292.760 Peak Mbps: 2292.760 Rx PPS: 194697 Elapsed: 3031 Mbps: 2236.835 Peak Mbps: 2292.760 Rx PPS: 189948 Elapsed: 3031 Mbps: 2936.119 Peak Mbps: 3107.286 Tx PPS: 249330 Elapsed: 4031 Mbps: 2348.923 Peak Mbps: 2348.923 Rx PPS: 199467 Elapsed: 4031 Mbps: 3059.744 Peak Mbps: 3107.286 Tx PPS: 259828 Elapsed: 5031 Mbps: 2976.169 Peak Mbps: 3107.286 Tx PPS: 252731 Elapsed: 5031 Mbps: 2256.658 Peak Mbps: 2348.923 Rx PPS: 191632 --- 127.0.0.1 tcpbench statistics --- 2238925248 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 2934.876/3002.839/3107.286/69.180 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 1696984896 bytes received over 6.027 seconds bandwidth min/avg/max/std-dev = 2213.087/2269.653/2348.923/47.462 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.66s