START sys/netinet/bindconnect 2025-04-02T04:06:17Z ==== 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 907494, close 727769, bind 1129603, connect 1127698, delroute 0 10.01 real 2.75 user 26.79 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1182345, close 667559, bind 4409449, connect 0, delroute 0 10.01 real 4.42 user 69.98 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 359289, close 494130, bind 0, connect 1731412, delroute 0 10.01 real 1.87 user 32.96 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 504411, close 670486, bind 1049759, connect 1121663, delroute 0 10.01 real 2.30 user 41.12 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 152456, close 156183, bind 381583, connect 338780, delroute 0 10.21 real 0.62 user 34.10 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 475525, close 1543023, bind 2333040, connect 2205989, delroute 0 10.00 real 4.92 user 53.95 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 307980, close 484273, bind 221161, connect 1599933, delroute 0 10.01 real 1.76 user 32.48 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 427986, close 484464, bind 919067, connect 1170236, delroute 0 10.01 real 2.15 user 37.30 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 294562, close 672549, bind 0, connect 1554853, delroute 117968 10.01 real 2.05 user 40.91 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 453508, close 880404, bind 2578050, connect 0, delroute 0 10.01 real 2.85 user 54.76 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 369649, close 853999, bind 0, connect 2090322, delroute 0 10.01 real 2.47 user 41.60 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 384977, close 869964, bind 1135808, connect 975512, delroute 0 10.01 real 2.28 user 43.42 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 212370, close 308331, bind 648869, connect 639319, delroute 0 10.27 real 1.28 user 41.40 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 292184, close 2306773, bind 2768406, connect 2696453, delroute 0 10.00 real 5.96 user 52.02 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 343861, close 683392, bind 294256, connect 1712328, delroute 0 10.01 real 2.43 user 43.44 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 333846, close 642390, bind 856897, connect 874593, delroute 0 10.00 real 1.93 user 39.05 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 296503, close 928989, bind 0, connect 1773351, delroute 150801 10.01 real 2.39 user 51.00 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1293907, close 697120, bind 4773527, connect 0, delroute 0 10.01 real 4.96 user 72.04 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 429665, close 530974, bind 0, connect 1501050, delroute 0 10.01 real 1.80 user 43.46 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 535372, close 550344, bind 1159648, connect 960250, delroute 0 10.01 real 2.29 user 50.54 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 553595, close 296716, bind 1178182, connect 966832, delroute 0 10.34 real 2.20 user 50.54 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 460335, close 1337353, bind 2100490, connect 1868436, delroute 0 10.01 real 4.40 user 55.79 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 421363, close 543133, bind 316559, connect 1524001, delroute 0 10.01 real 1.86 user 47.24 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 532122, close 566014, bind 1127604, connect 944028, delroute 0 10.01 real 2.09 user 49.92 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 343007, close 772406, bind 0, connect 1720143, delroute 240851 10.01 real 2.48 user 51.19 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1158436, close 671204, bind 4090837, connect 0, delroute 0 10.01 real 4.35 user 68.73 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 162546, close 301552, bind 0, connect 1382213, delroute 0 10.01 real 1.12 user 22.17 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 200765, close 278431, bind 457963, connect 1052128, delroute 0 10.01 real 1.43 user 24.38 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 218799, close 263753, bind 572064, connect 401624, delroute 0 10.18 real 1.04 user 47.71 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366468, close 2104768, bind 2617847, connect 2641331, delroute 0 10.00 real 5.81 user 50.13 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 167004, close 285137, bind 127583, connect 1166030, delroute 0 0m10.00s real 0m01.36s user 0m22.50s 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 193497, close 245051, bind 403457, connect 912845, delroute 0 0m10.01s real 0m01.22s user 0m22.43s 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 181469, close 393888, bind 0, connect 1121429, delroute 60252 0m10.01s real 0m01.46s user 0m27.97s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 445854, close 876282, bind 2573947, connect 0, delroute 0 10.01 real 2.44 user 55.24 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 336069, close 880330, bind 0, connect 1914295, delroute 0 10.01 real 2.31 user 38.09 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 350245, close 886660, bind 1030146, connect 879923, delroute 0 10.01 real 2.01 user 40.81 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 236759, close 367202, bind 732731, connect 718492, delroute 0 10.25 real 1.40 user 40.14 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 275613, close 2481164, bind 2835032, connect 2847273, delroute 0 10.00 real 6.34 user 49.98 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 375089, close 717016, bind 336648, connect 1805507, delroute 0 0m10.00s real 0m02.56s user 0m48.11s 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 389843, close 733631, bind 1058041, connect 912656, delroute 0 0m10.00s real 0m02.13s user 0m45.37s 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 276272, close 753931, bind 0, connect 1632912, delroute 116961 0m10.00s real 0m02.27s user 0m46.53s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1180519, close 709931, bind 4424401, connect 0, delroute 0 10.01 real 4.35 user 71.78 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 477504, close 595363, bind 0, connect 1463798, delroute 0 10.01 real 1.70 user 41.09 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 563292, close 673555, bind 1140761, connect 895653, delroute 0 10.01 real 2.21 user 47.78 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 639144, close 264080, bind 1105059, connect 847482, delroute 0 10.37 real 1.95 user 47.88 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 463874, close 1577986, bind 2348775, connect 2069549, delroute 0 10.01 real 4.70 user 55.16 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 480232, close 601431, bind 325009, connect 1509762, delroute 0 0m10.01s real 0m02.23s user 0m44.41s 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 602418, close 576245, bind 1099288, connect 878781, delroute 0 0m10.00s real 0m02.07s user 0m45.96s 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 311014, close 809678, bind 0, connect 1589265, delroute 115174 0m10.01s real 0m01.89s user 0m46.27s 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 343933 1.00 real 0.14 user 0.86 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 171079 0m01.00s real 0m00.10s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.67s