START sys/kern/sosplice/perf 2025-03-22T02:12:23Z ==== 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 1800630646 14405.045 100.00% Conn: 1 Mbps: 14405.045 Peak Mbps: 14405.045 Avg Mbps: 14405.045 999 1800467066 14418.155 100.00% Conn: 1 Mbps: 14418.155 Peak Mbps: 14418.155 Avg Mbps: 14418.155 2000 1809991274 14494.425 100.00% Conn: 1 Mbps: 14494.425 Peak Mbps: 14494.425 Avg Mbps: 14494.425 2000 1810023990 14480.192 100.00% Conn: 1 Mbps: 14480.192 Peak Mbps: 14480.192 Avg Mbps: 14480.192 3000 1803303540 14426.428 100.00% Conn: 1 Mbps: 14426.428 Peak Mbps: 14494.425 Avg Mbps: 14426.428 3000 1803303864 14440.872 100.00% Conn: 1 Mbps: 14440.872 Peak Mbps: 14480.192 Avg Mbps: 14440.872 4000 1810026158 14480.209 100.00% Conn: 1 Mbps: 14480.209 Peak Mbps: 14494.425 Avg Mbps: 14480.209 4000 1809993234 14479.946 100.00% Conn: 1 Mbps: 14479.946 Peak Mbps: 14480.192 Avg Mbps: 14479.946 5000 1809599118 14476.793 100.00% Conn: 1 Mbps: 14476.793 Peak Mbps: 14494.425 Avg Mbps: 14476.793 5000 1809582748 14476.662 100.00% Conn: 1 Mbps: 14476.662 Peak Mbps: 14480.192 Avg Mbps: 14476.662 --- 127.0.0.1 tcpbench statistics --- 10839762988 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 14405.045/14456.580/14494.425/34.537 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 10839762988 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 14418.155/14459.165/14480.192/25.285 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 1985041042 15880.328 100.00% Conn: 1 Mbps: 15880.328 Peak Mbps: 15880.328 Avg Mbps: 15880.328 1000 1985041042 15880.328 100.00% Conn: 1 Mbps: 15880.328 Peak Mbps: 15880.328 Avg Mbps: 15880.328 2000 1999586624 15996.693 100.00% Conn: 1 Mbps: 15996.693 Peak Mbps: 15996.693 Avg Mbps: 15996.693 2000 1999586624 15996.693 100.00% Conn: 1 Mbps: 15996.693 Peak Mbps: 15996.693 Avg Mbps: 15996.693 3000 1997610578 15980.885 100.00% Conn: 1 Mbps: 15980.885 Peak Mbps: 15996.693 Avg Mbps: 15980.885 3000 1997577862 15996.620 100.00% Conn: 1 Mbps: 15996.620 Peak Mbps: 15996.693 Avg Mbps: 15996.620 4000 1990148694 15921.190 100.00% Conn: 1 Mbps: 15921.190 Peak Mbps: 15996.693 Avg Mbps: 15921.190 4000 1990312274 15922.498 100.00% Conn: 1 Mbps: 15922.498 Peak Mbps: 15996.693 Avg Mbps: 15922.498 5000 1997640562 15981.124 100.00% Conn: 1 Mbps: 15981.124 Peak Mbps: 15996.693 Avg Mbps: 15981.124 5000 1997640562 15997.122 100.00% Conn: 1 Mbps: 15997.122 Peak Mbps: 15997.122 Avg Mbps: 15997.122 --- 127.0.0.1 tcpbench statistics --- 11968831460 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 15880.328/15955.505/15997.122/46.505 Mbps tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 11968831460 bytes received over 6.002 seconds bandwidth min/avg/max/std-dev = 15880.328/15955.191/15996.693/46.630 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: 3253.038 Peak Mbps: 3253.038 Tx PPS: 276243 Elapsed: 1000 Mbps: 3108.617 Peak Mbps: 3108.617 Rx PPS: 263979 Elapsed: 2000 Mbps: 3231.386 Peak Mbps: 3253.038 Tx PPS: 274404 Elapsed: 1999 Mbps: 2967.599 Peak Mbps: 3108.617 Rx PPS: 252004 Elapsed: 3000 Mbps: 3297.080 Peak Mbps: 3297.080 Tx PPS: 279983 Elapsed: 2999 Mbps: 2948.404 Peak Mbps: 3108.617 Rx PPS: 250374 Elapsed: 4000 Mbps: 3305.806 Peak Mbps: 3305.806 Tx PPS: 280724 Elapsed: 4000 Mbps: 2970.767 Peak Mbps: 3108.617 Rx PPS: 252273 Elapsed: 5000 Mbps: 3344.761 Peak Mbps: 3344.761 Tx PPS: 284032 Elapsed: 5000 Mbps: 2880.004 Peak Mbps: 3108.617 Rx PPS: 244565 --- 127.0.0.1 tcpbench statistics --- 2468517504 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3231.386/3286.414/3344.761/40.090 Mbps Elapsed: 6000 Mbps: 2897.673 Peak Mbps: 3108.617 Rx PPS: 246066 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2226941696 bytes received over 6.016 seconds bandwidth min/avg/max/std-dev = 2880.004/2962.177/3108.617/73.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: 1000 Mbps: 3525.970 Peak Mbps: 3525.970 Tx PPS: 299420 Elapsed: 1000 Mbps: 2696.916 Peak Mbps: 2696.916 Rx PPS: 229018 Elapsed: 2000 Mbps: 3372.722 Peak Mbps: 3525.970 Tx PPS: 286406 Elapsed: 1999 Mbps: 2648.586 Peak Mbps: 2696.916 Rx PPS: 224913 Elapsed: 3000 Mbps: 3363.414 Peak Mbps: 3525.970 Tx PPS: 285616 Elapsed: 2999 Mbps: 2636.258 Peak Mbps: 2696.916 Rx PPS: 223867 Elapsed: 4000 Mbps: 3320.573 Peak Mbps: 3525.970 Tx PPS: 281978 Elapsed: 3999 Mbps: 2677.615 Peak Mbps: 2696.916 Rx PPS: 227379 Elapsed: 5000 Mbps: 3341.193 Peak Mbps: 3525.970 Tx PPS: 283729 Elapsed: 4999 Mbps: 2691.706 Peak Mbps: 2696.916 Rx PPS: 228575 --- 127.0.0.1 tcpbench statistics --- 2528910720 bytes sent over 5.999 seconds bandwidth min/avg/max/std-dev = 3320.573/3384.774/3525.970/72.882 Mbps Elapsed: 5999 Mbps: 2753.323 Peak Mbps: 2753.323 Rx PPS: 233808 tcpbench: Terminated by signal 15 --- tcpbench server statistics --- 2018475584 bytes received over 6.017 seconds bandwidth min/avg/max/std-dev = 2636.258/2684.067/2753.323/37.873 Mbps sleep 1 PASS sys/kern/sosplice/perf Duration 0m32.65s