START sys/netinet/bindconnect 2025-01-16T01:52:29Z ==== 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 1092591, close 1135083, bind 945444, connect 870976, delroute 0 10.00 real 2.30 user 29.47 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 934918, close 645218, bind 3423931, connect 0, delroute 0 10.01 real 3.51 user 74.77 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 660019, close 582555, bind 0, connect 1175262, delroute 0 10.01 real 1.55 user 42.78 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 741753, close 625918, bind 813588, connect 782416, delroute 0 10.01 real 2.13 user 47.63 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126560, close 123861, bind 252528, connect 254006, delroute 0 10.26 real 0.51 user 20.46 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 541263, close 1510294, bind 1995832, connect 1912492, delroute 0 10.00 real 4.09 user 57.63 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 588105, close 525353, bind 159606, connect 1100014, delroute 0 10.01 real 1.54 user 42.60 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 737574, close 622843, bind 695637, connect 753160, delroute 0 10.01 real 1.71 user 47.84 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 473640, close 449647, bind 0, connect 808612, delroute 107809 10.01 real 1.00 user 46.22 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 853023, close 655482, bind 387560, connect 0, delroute 0 10.01 real 0.97 user 40.92 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 770531, close 528393, bind 0, connect 344664, delroute 0 10.01 real 0.98 user 33.90 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 789430, close 549898, bind 167240, connect 180792, delroute 0 10.01 real 0.94 user 35.54 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 339799, close 239772, bind 217847, connect 230965, delroute 0 10.45 real 0.57 user 23.41 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 350087, close 2033368, bind 1754398, connect 1766573, delroute 0 10.01 real 3.98 user 48.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 689635, close 545560, bind 59668, connect 481009, delroute 0 10.01 real 0.91 user 35.14 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 751564, close 565558, bind 161359, connect 291849, delroute 0 10.01 real 0.81 user 34.19 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 658125, close 518838, bind 0, connect 351666, delroute 64176 10.01 real 0.89 user 40.42 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1107357, close 766584, bind 2822994, connect 0, delroute 0 10.01 real 2.94 user 76.10 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 660269, close 618792, bind 0, connect 855779, delroute 0 10.01 real 1.34 user 44.94 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 730753, close 678190, bind 631274, connect 542111, delroute 0 10.01 real 1.76 user 49.78 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 642852, close 468907, bind 823351, connect 662929, delroute 0 10.34 real 1.63 user 50.84 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 452161, close 1560484, bind 1862797, connect 1756509, delroute 0 10.00 real 4.27 user 55.99 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 607374, close 598245, bind 166187, connect 859954, delroute 0 10.01 real 1.69 user 46.81 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 724970, close 674857, bind 639472, connect 556645, delroute 0 10.01 real 1.76 user 50.82 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 538083, close 485993, bind 0, connect 675217, delroute 226884 10.01 real 1.46 user 53.79 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1113466, close 649262, bind 2528124, connect 0, delroute 0 10.01 real 3.15 user 75.16 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 282128, close 287364, bind 0, connect 1061366, delroute 0 10.01 real 0.82 user 21.37 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 401932, close 368283, bind 282959, connect 869655, delroute 0 10.01 real 1.24 user 26.61 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127746, close 141689, bind 240500, connect 281821, delroute 0 10.29 real 0.50 user 23.54 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 370780, close 1586053, bind 1795186, connect 2029523, delroute 0 10.00 real 4.34 user 44.91 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 276534, close 284139, bind 54665, connect 942789, delroute 0 0m10.01s real 0m00.95s user 0m21.54s 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 401970, close 341853, bind 219900, connect 782368, delroute 0 0m10.01s real 0m01.09s user 0m23.66s 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 266127, close 255065, bind 0, connect 776159, delroute 42969 0m10.01s real 0m01.09s user 0m26.71s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 908474, close 634049, bind 400724, connect 0, delroute 0 10.01 real 0.93 user 39.41 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 811218, close 436520, bind 0, connect 294116, delroute 0 10.01 real 1.03 user 30.02 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 810576, close 471653, bind 137940, connect 164512, delroute 0 10.01 real 0.74 user 31.90 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 375954, close 236244, bind 206499, connect 230236, delroute 0 10.49 real 0.46 user 22.88 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 326231, close 2023408, bind 1712415, connect 1812127, delroute 0 10.01 real 4.00 user 45.99 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 782207, close 470076, bind 49973, connect 338798, delroute 0 0m10.01s real 0m00.96s user 0m34.44s 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 841001, close 511567, bind 149380, connect 182017, delroute 0 0m10.01s real 0m00.84s user 0m33.71s 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 636347, close 435369, bind 0, connect 300634, delroute 58694 0m10.00s real 0m00.84s user 0m36.43s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1046893, close 708030, bind 1729112, connect 0, delroute 0 10.00 real 2.02 user 74.72 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 977430, close 988824, bind 0, connect 555394, delroute 0 10.01 real 1.47 user 36.49 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 987627, close 995089, bind 438271, connect 364580, delroute 0 10.01 real 1.55 user 42.18 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 679198, close 540208, bind 733891, connect 570595, delroute 0 10.36 real 1.54 user 48.01 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 414145, close 1721265, bind 1921651, connect 1811271, delroute 0 10.00 real 4.11 user 55.72 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 903579, close 921783, bind 108046, connect 564822, delroute 0 0m10.01s real 0m01.45s user 0m38.64s 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 1050898, close 1064774, bind 388836, connect 331261, delroute 0 0m10.01s real 0m01.76s user 0m40.38s 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 644048, close 648328, bind 0, connect 471681, delroute 82256 0m10.00s real 0m01.22s user 0m41.77s 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 346191 1.00 real 0.12 user 0.90 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 173183 0m01.00s real 0m00.07s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m17.22s