START sys/netinet/bindconnect 2025-03-28T05:16:33Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -MD -MP -c /usr/src/regress/sys/netinet/bindconnect/bindconnect.c cc -o bindconnect bindconnect.o -lpthread time ./bindconnect count: socket 926229, close 748991, bind 1199780, connect 1129264, delroute 0 10.01 real 2.35 user 28.03 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1185277, close 627266, bind 4392017, connect 0, delroute 0 10.01 real 4.26 user 70.33 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 333894, close 361325, bind 0, connect 1695795, delroute 0 10.01 real 1.77 user 34.61 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 467939, close 464474, bind 944650, connect 1135781, delroute 0 10.01 real 1.91 user 41.60 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 281315, close 387211, bind 674688, connect 566768, delroute 0 10.17 real 1.24 user 44.79 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 460253, close 1426749, bind 2318462, connect 2192267, delroute 0 10.01 real 5.01 user 54.76 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 315297, close 382788, bind 218583, connect 1575585, delroute 0 10.01 real 1.87 user 36.53 sys ==== run-inet-udp-localnet-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 417470, close 525386, bind 875782, connect 1137080, delroute 0 10.01 real 2.18 user 39.32 sys ==== run-inet-udp-localnet-connect-delete ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 309728, close 563700, bind 0, connect 1477959, delroute 114484 10.01 real 2.04 user 42.94 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 433501, close 673702, bind 2248952, connect 0, delroute 0 10.01 real 2.51 user 54.43 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 356090, close 721020, bind 0, connect 1891819, delroute 0 10.01 real 2.06 user 41.75 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 361476, close 765625, bind 1070771, connect 903817, delroute 0 10.01 real 2.32 user 43.78 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 200220, close 282752, bind 614903, connect 591427, delroute 0 10.27 real 1.19 user 41.24 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 280352, close 2345295, bind 2774005, connect 2772473, delroute 0 10.01 real 6.38 user 52.31 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 336764, close 650446, bind 282473, connect 1623447, delroute 0 10.01 real 2.34 user 44.32 sys ==== run-inet-tcp-localnet-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 310298, close 574631, bind 820761, connect 841262, delroute 0 10.01 real 2.07 user 39.30 sys ==== run-inet-tcp-localnet-connect-delete ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 291688, close 841289, bind 0, connect 1851928, delroute 138723 10.01 real 2.43 user 51.75 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1226477, close 654381, bind 4812577, connect 0, delroute 0 10.01 real 4.42 user 72.26 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 403495, close 461016, bind 0, connect 1413708, delroute 0 10.01 real 1.67 user 45.27 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 498282, close 538889, bind 1104615, connect 893484, delroute 0 10.01 real 2.11 user 50.83 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 573329, close 290911, bind 1159257, connect 920720, delroute 0 10.34 real 2.32 user 50.39 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 451579, close 1220108, bind 2009155, connect 1763107, delroute 0 10.00 real 3.73 user 56.10 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 393531, close 473263, bind 288283, connect 1384320, delroute 0 10.01 real 1.93 user 48.45 sys ==== run-inet-any-localnet-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N 10.188.81.21/24 count: socket 500965, close 489359, bind 1088856, connect 895229, delroute 0 10.01 real 2.22 user 51.93 sys ==== run-inet-any-localnet-connect-delete ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 10.188.81.21/24 count: socket 339301, close 692276, bind 0, connect 1558755, delroute 222591 10.01 real 1.88 user 52.48 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1210857, close 601944, bind 4240616, connect 0, delroute 0 10.01 real 4.09 user 71.09 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 143909, close 235481, bind 0, connect 1310273, delroute 0 10.01 real 1.22 user 20.77 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 187843, close 237234, bind 399361, connect 1032547, delroute 0 10.01 real 1.34 user 23.49 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 257157, close 311539, bind 585420, connect 418391, delroute 0 10.18 real 0.97 user 46.29 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 356721, close 1991207, bind 2601574, connect 2622889, delroute 0 10.00 real 5.95 user 49.88 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 162987, close 250879, bind 115759, connect 1134459, delroute 0 0m10.00s real 0m01.23s user 0m23.11s system ==== run-inet6-udp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 182535, close 222408, bind 378371, connect 911110, delroute 0 0m10.01s real 0m01.36s user 0m23.12s system ==== run-inet6-udp-localnet-connect-delete ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 176669, close 355565, bind 0, connect 1074714, delroute 56070 0m10.01s real 0m01.25s user 0m28.30s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 405912, close 722496, bind 2261172, connect 0, delroute 0 10.01 real 2.01 user 53.88 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 320833, close 749732, bind 0, connect 1804517, delroute 0 10.01 real 1.95 user 39.26 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331175, close 774530, bind 1013212, connect 878524, delroute 0 10.00 real 2.10 user 41.32 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 234190, close 358787, bind 736806, connect 701951, delroute 0 10.27 real 1.32 user 40.12 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 260724, close 2479211, bind 2776117, connect 2841887, delroute 0 10.00 real 6.08 user 50.58 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 351417, close 664564, bind 305304, connect 1715242, delroute 0 0m10.01s real 0m02.20s user 0m48.21s system ==== run-inet6-tcp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 357916, close 662224, bind 966809, connect 833998, delroute 0 0m10.00s real 0m01.94s user 0m45.86s system ==== run-inet6-tcp-localnet-connect-delete ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 275544, close 625502, bind 0, connect 1437499, delroute 110305 0m10.01s real 0m01.99s user 0m47.04s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182004, close 696215, bind 4486348, connect 0, delroute 0 10.00 real 4.72 user 72.05 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 490812, close 475763, bind 0, connect 1352383, delroute 0 10.01 real 1.74 user 42.35 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 582593, close 486396, bind 1067308, connect 824347, delroute 0 10.01 real 1.99 user 47.90 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 702381, close 236006, bind 1067348, connect 788069, delroute 0 10.35 real 2.10 user 46.27 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 422183, close 1423667, bind 2246933, connect 1967146, delroute 0 10.00 real 4.43 user 56.13 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 527118, close 489478, bind 290376, connect 1330467, delroute 0 0m10.01s real 0m01.87s user 0m44.95s system ==== run-inet6-any-localnet-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N fdd7:e83e:66bc:81::21/64 count: socket 645265, close 464606, bind 990932, connect 771667, delroute 0 0m10.01s real 0m01.77s user 0m46.28s system ==== run-inet6-any-localnet-connect-delete ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N fdd7:e83e:66bc:81::21/64 count: socket 317818, close 660695, bind 0, connect 1344405, delroute 110540 0m10.01s real 0m01.79s user 0m46.67s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.81.21/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 342718 1.00 real 0.11 user 0.88 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:81::21/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 173607 0m01.00s real 0m00.08s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.62s