START sys/netinet/bindconnect 2025-03-13T05:15:54Z ==== 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 936555, close 774441, bind 1180656, connect 1100307, delroute 0 10.01 real 2.30 user 28.29 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1163722, close 588755, bind 4247388, connect 0, delroute 0 10.01 real 4.28 user 71.62 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 306213, close 344838, bind 0, connect 1692398, delroute 0 10.01 real 1.69 user 35.00 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 462669, close 455280, bind 1015015, connect 1111093, delroute 0 10.01 real 1.88 user 43.93 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 163256, close 167721, bind 398454, connect 326541, delroute 0 10.19 real 0.74 user 45.26 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 426118, close 1490699, bind 2320935, connect 2191916, delroute 0 10.00 real 5.05 user 54.32 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 293410, close 371579, bind 215950, connect 1572186, delroute 0 10.01 real 1.90 user 37.37 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 406160, close 439318, bind 909101, connect 1126254, delroute 0 10.01 real 2.05 user 41.14 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 287566, close 520289, bind 0, connect 1389429, delroute 107147 10.01 real 1.72 user 43.06 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 380391, close 727578, bind 2239143, connect 0, delroute 0 10.00 real 2.24 user 55.13 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 324695, close 796538, bind 0, connect 1935302, delroute 0 10.01 real 2.25 user 43.81 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 338153, close 755006, bind 1026457, connect 862757, delroute 0 10.01 real 2.03 user 44.99 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 181580, close 256619, bind 579083, connect 547742, delroute 0 10.27 real 1.05 user 37.93 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 261740, close 2362796, bind 2734668, connect 2748119, delroute 0 10.01 real 5.98 user 53.81 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 312924, close 656370, bind 283628, connect 1625412, delroute 0 10.01 real 2.14 user 46.84 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 306559, close 590945, bind 833483, connect 804072, delroute 0 10.01 real 1.45 user 40.76 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 279856, close 790499, bind 0, connect 1743455, delroute 130247 10.01 real 2.24 user 52.13 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1097287, close 604304, bind 4854094, connect 0, delroute 0 10.01 real 4.46 user 72.43 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 360829, close 422593, bind 0, connect 1263246, delroute 0 10.01 real 1.50 user 45.92 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 445111, close 472889, bind 1036553, connect 811867, delroute 0 10.01 real 1.76 user 50.87 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 476410, close 243296, bind 1066621, connect 807338, delroute 0 10.33 real 1.94 user 51.94 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 380820, close 1418636, bind 2107405, connect 1901884, delroute 0 10.00 real 3.94 user 56.25 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 352773, close 437577, bind 265468, connect 1237319, delroute 0 10.01 real 1.76 user 47.83 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 443686, close 470345, bind 1003582, connect 795239, delroute 0 10.01 real 1.91 user 50.70 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 306165, close 630012, bind 0, connect 1403870, delroute 195760 10.01 real 1.94 user 52.97 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1152386, close 580694, bind 4051804, connect 0, delroute 0 10.01 real 3.87 user 71.11 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 141179, close 231346, bind 0, connect 1295098, delroute 0 10.01 real 1.06 user 21.28 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 186070, close 236801, bind 400840, connect 1018559, delroute 0 10.01 real 1.09 user 24.80 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 218527, close 249764, bind 516928, connect 397714, delroute 0 10.20 real 0.91 user 51.30 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 335718, close 2016638, bind 2598947, connect 2631009, delroute 0 10.00 real 5.44 user 51.75 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 153704, close 237418, bind 107266, connect 1103294, delroute 0 0m10.01s real 0m01.39s user 0m23.61s 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 181108, close 219510, bind 371403, connect 890395, delroute 0 0m10.01s real 0m01.26s user 0m23.51s 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 164668, close 313758, bind 0, connect 1012336, delroute 50749 0m10.01s real 0m01.38s user 0m27.07s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 377455, close 760761, bind 2272055, connect 0, delroute 0 10.00 real 2.33 user 53.59 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 301961, close 768868, bind 0, connect 1780041, delroute 0 10.01 real 2.05 user 39.72 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 316175, close 752066, bind 974682, connect 839776, delroute 0 10.01 real 2.09 user 41.10 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 199640, close 286412, bind 629436, connect 601348, delroute 0 10.27 real 1.23 user 39.70 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 245634, close 2510530, bind 2825526, connect 2884120, delroute 0 10.01 real 6.45 user 51.97 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 327395, close 677901, bind 295425, connect 1674217, delroute 0 0m10.00s real 0m02.41s user 0m48.00s 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 341721, close 649931, bind 937284, connect 808822, delroute 0 0m10.01s real 0m01.80s user 0m46.20s 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 261457, close 678155, bind 0, connect 1478643, delroute 103598 0m10.01s real 0m02.05s user 0m47.78s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1028122, close 577991, bind 4472996, connect 0, delroute 0 10.00 real 3.99 user 71.70 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 445046, close 519641, bind 0, connect 1230802, delroute 0 10.01 real 1.59 user 43.07 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 532065, close 476753, bind 1005824, connect 759456, delroute 0 10.01 real 1.89 user 48.11 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 618994, close 219665, bind 1022367, connect 722039, delroute 0 10.34 real 1.90 user 46.83 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366191, close 1555319, bind 2309745, connect 2070740, delroute 0 10.00 real 4.81 user 55.85 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 488506, close 459503, bind 265148, connect 1215076, delroute 0 0m10.00s real 0m01.66s user 0m45.05s 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 567581, close 454781, bind 955302, connect 730706, delroute 0 0m10.01s real 0m01.79s user 0m46.25s 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 287401, close 563738, bind 0, connect 1191971, delroute 99964 0m10.01s real 0m01.84s user 0m45.96s 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 345259 1.00 real 0.15 user 0.85 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 177273 0m01.00s real 0m00.09s user 0m00.91s system PASS sys/netinet/bindconnect Duration 8m16.65s