START sys/netinet/bindconnect 2025-03-12T05:12: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 947096, close 772746, bind 1227885, connect 1114444, delroute 0 10.00 real 2.64 user 27.53 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1155460, close 601190, bind 4618316, connect 0, delroute 0 10.01 real 4.44 user 70.90 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 317896, close 436422, bind 0, connect 1766522, delroute 0 10.01 real 1.80 user 33.63 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 476949, close 483876, bind 1060568, connect 1194748, delroute 0 10.01 real 2.28 user 42.84 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 229041, close 308269, bind 550445, connect 463116, delroute 0 10.15 real 1.07 user 47.84 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 458914, close 1390817, bind 2340518, connect 2206650, delroute 0 10.00 real 4.93 user 55.25 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 306417, close 411048, bind 224792, connect 1676453, delroute 0 10.01 real 2.07 user 36.72 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 419533, close 437921, bind 885969, connect 1190430, delroute 0 10.01 real 1.91 user 39.03 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 310637, close 620133, bind 0, connect 1518799, delroute 116874 10.01 real 1.94 user 43.35 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 410329, close 748034, bind 2309457, connect 0, delroute 0 10.01 real 2.48 user 53.40 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 345898, close 855539, bind 0, connect 2026436, delroute 0 10.01 real 2.38 user 42.78 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 353775, close 866317, bind 1130874, connect 981002, delroute 0 10.01 real 2.10 user 44.79 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 211958, close 362618, bind 673840, connect 648554, delroute 0 10.28 real 1.38 user 39.54 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 281958, close 2309835, bind 2791775, connect 2750893, delroute 0 10.01 real 6.12 user 52.38 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 329803, close 632994, bind 285026, connect 1618026, delroute 0 10.00 real 2.17 user 43.93 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 318353, close 573012, bind 841831, connect 836533, delroute 0 10.01 real 2.04 user 39.65 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 299512, close 745641, bind 0, connect 1708061, delroute 141716 10.01 real 2.23 user 50.96 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1128792, close 591361, bind 5051802, connect 0, delroute 0 10.01 real 4.89 user 71.76 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 406882, close 467844, bind 0, connect 1431558, delroute 0 10.01 real 1.74 user 46.03 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 500048, close 534318, bind 1109425, connect 896686, delroute 0 10.01 real 2.01 user 50.04 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 524741, close 269359, bind 1152327, connect 905234, delroute 0 10.33 real 2.40 user 51.70 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 430457, close 1183626, bind 2013595, connect 1785164, delroute 0 10.00 real 4.40 user 55.32 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 405128, close 494609, bind 297845, connect 1423569, delroute 0 10.01 real 1.93 user 49.06 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 502213, close 502783, bind 1097668, connect 897828, delroute 0 10.01 real 2.10 user 50.28 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 340028, close 662436, bind 0, connect 1536195, delroute 223445 10.01 real 2.09 user 52.52 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1147477, close 585935, bind 4200157, connect 0, delroute 0 10.01 real 3.80 user 69.45 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 146273, close 249970, bind 0, connect 1327548, delroute 0 10.01 real 1.21 user 21.08 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 198982, close 250150, bind 422629, connect 1034358, delroute 0 10.01 real 1.25 user 23.53 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 238978, close 289739, bind 547971, connect 394185, delroute 0 10.18 real 0.90 user 47.18 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 360328, close 2018720, bind 2637945, connect 2664634, delroute 0 10.00 real 5.49 user 51.41 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 154765, close 240493, bind 112330, connect 1129141, delroute 0 0m10.01s real 0m01.47s user 0m22.74s 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 183683, close 219087, bind 375954, connect 903348, delroute 0 0m10.01s real 0m01.40s user 0m22.57s 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 174326, close 342938, bind 0, connect 1042093, delroute 54719 0m10.01s real 0m01.30s user 0m28.33s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 403261, close 749425, bind 2316694, connect 0, delroute 0 10.01 real 2.61 user 53.30 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 322959, close 765441, bind 0, connect 1825246, delroute 0 10.01 real 1.97 user 39.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 331384, close 822231, bind 1050576, connect 912266, delroute 0 10.01 real 2.14 user 41.28 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 199766, close 279991, bind 608685, connect 594801, delroute 0 10.28 real 1.53 user 38.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 262818, close 2528882, bind 2848637, connect 2881582, delroute 0 10.00 real 5.75 user 51.36 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 352984, close 671682, bind 303540, connect 1722809, delroute 0 0m10.01s real 0m02.48s user 0m48.46s 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 365966, close 654090, bind 976631, connect 841112, delroute 0 0m10.01s real 0m02.29s user 0m45.31s 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 273608, close 735033, bind 0, connect 1579568, delroute 112023 0m10.01s real 0m01.92s user 0m46.26s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1081051, close 575110, bind 4648471, connect 0, delroute 0 10.01 real 4.48 user 71.37 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 492546, close 505786, bind 0, connect 1347617, delroute 0 10.01 real 1.76 user 41.97 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 576580, close 497172, bind 1083755, connect 825343, delroute 0 10.01 real 2.08 user 47.83 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 724384, close 246478, bind 1070591, connect 783386, delroute 0 10.35 real 2.08 user 46.52 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 415625, close 1419851, bind 2293213, connect 2006213, delroute 0 10.00 real 4.76 user 55.18 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 530158, close 557356, bind 286634, connect 1323196, delroute 0 0m10.01s real 0m01.91s user 0m44.20s 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 621080, close 471038, bind 1011040, connect 783637, delroute 0 0m10.00s real 0m02.07s user 0m45.49s 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 314632, close 671463, bind 0, connect 1340372, delroute 112268 0m10.01s real 0m01.72s user 0m47.52s 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 353089 1.00 real 0.09 user 0.92 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 174649 0m01.00s real 0m00.08s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.59s