START sys/netinet/bindconnect 2025-03-17T16:58:21Z ==== 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 883830, close 706748, bind 1100630, connect 1096662, delroute 0 10.01 real 2.18 user 26.14 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1076368, close 570541, bind 4016469, connect 0, delroute 0 10.01 real 3.91 user 67.39 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 353403, close 382789, bind 0, connect 1702266, delroute 0 10.01 real 1.71 user 34.41 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 493202, close 529040, bind 1008978, connect 1082524, delroute 0 10.01 real 2.12 user 42.42 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 150540, close 143027, bind 358326, connect 301323, delroute 0 10.19 real 0.65 user 35.16 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 452519, close 1441160, bind 2345057, connect 2200710, delroute 0 10.01 real 5.07 user 54.81 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 323581, close 381326, bind 225131, connect 1570899, delroute 0 10.01 real 2.04 user 37.10 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 431399, close 445611, bind 903235, connect 1119510, delroute 0 10.01 real 2.17 user 39.98 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 315055, close 563339, bind 0, connect 1472132, delroute 117477 10.01 real 1.99 user 43.56 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 425625, close 702169, bind 2335047, connect 0, delroute 0 10.01 real 2.24 user 54.19 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 352112, close 812943, bind 0, connect 1984156, delroute 0 10.01 real 2.18 user 42.33 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 360532, close 771400, bind 1081076, connect 927333, delroute 0 10.01 real 2.20 user 43.86 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 215291, close 318628, bind 652442, connect 641893, delroute 0 10.27 real 1.18 user 40.06 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 281648, close 2382374, bind 2784061, connect 2748916, delroute 0 10.00 real 6.32 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 328973, close 665163, bind 292222, connect 1669243, delroute 0 10.01 real 2.53 user 44.51 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 315259, close 558011, bind 828479, connect 834379, delroute 0 10.01 real 1.65 user 39.49 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 291134, close 897881, bind 0, connect 1824348, delroute 138930 10.01 real 2.34 user 51.42 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1236867, close 669006, bind 4732646, connect 0, delroute 0 10.01 real 4.87 user 71.86 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 411699, close 467191, bind 0, connect 1429465, delroute 0 10.01 real 1.81 user 45.89 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 500182, close 587692, bind 1100838, connect 899562, delroute 0 10.01 real 2.12 user 50.69 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 548335, close 262548, bind 1130950, connect 903585, delroute 0 10.34 real 1.89 user 51.29 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 440218, close 1311862, bind 2097363, connect 1861102, delroute 0 10.00 real 4.43 user 56.05 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 404588, close 487869, bind 300515, connect 1415234, delroute 0 10.01 real 1.87 user 48.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 502474, close 579088, bind 1085427, connect 888721, delroute 0 10.01 real 2.14 user 50.41 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 331682, close 592787, bind 0, connect 1496863, delroute 220188 10.01 real 2.14 user 52.44 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1187467, close 613793, bind 4155392, connect 0, delroute 0 10.01 real 4.20 user 70.07 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 145880, close 237024, bind 0, connect 1315812, delroute 0 10.01 real 1.26 user 21.22 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 192763, close 247761, bind 406279, connect 1033360, delroute 0 10.01 real 1.18 user 23.93 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 257203, close 325935, bind 638805, connect 474135, delroute 0 10.17 real 0.99 user 54.01 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358538, close 2026109, bind 2648953, connect 2651550, delroute 0 10.00 real 5.71 user 50.23 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 158743, close 252476, bind 112739, connect 1140378, delroute 0 0m10.01s real 0m01.14s 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 184560, close 223999, bind 380790, connect 904629, delroute 0 0m10.01s real 0m01.16s user 0m22.19s 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 173365, close 468612, bind 0, connect 1094808, delroute 55833 0m10.01s real 0m01.46s user 0m28.13s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 402602, close 798217, bind 2423319, connect 0, delroute 0 10.01 real 2.39 user 54.04 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 318799, close 778884, bind 0, connect 1871165, delroute 0 10.01 real 2.04 user 39.50 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331763, close 830082, bind 1054407, connect 917662, delroute 0 10.01 real 2.16 user 42.33 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 243682, close 392721, bind 759571, connect 732721, delroute 0 10.23 real 1.59 user 40.60 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 265806, close 2493511, bind 2819997, connect 2869683, delroute 0 10.01 real 6.49 user 50.53 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 347964, close 733648, bind 307446, connect 1737410, delroute 0 0m10.01s real 0m02.62s user 0m47.83s 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 360107, close 678635, bind 986025, connect 851437, delroute 0 0m10.01s real 0m01.83s user 0m45.80s 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 273085, close 703386, bind 0, connect 1544217, delroute 111781 0m10.01s real 0m01.83s user 0m47.01s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1150957, close 665281, bind 4413038, connect 0, delroute 0 10.01 real 4.27 user 71.07 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 548097, close 450610, bind 0, connect 1331652, delroute 0 10.01 real 1.50 user 40.86 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 615087, close 478324, bind 1044448, connect 805728, delroute 0 10.01 real 2.09 user 45.90 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 745505, close 224081, bind 1053419, connect 771528, delroute 0 10.36 real 1.90 user 46.14 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 427345, close 1481122, bind 2324101, connect 2017611, delroute 0 10.00 real 4.78 user 54.92 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 553791, close 469160, bind 284763, connect 1291682, delroute 0 0m10.01s real 0m02.01s user 0m43.67s 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 674133, close 454938, bind 973581, connect 757346, delroute 0 0m10.01s real 0m02.11s user 0m45.19s 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 312764, close 623613, bind 0, connect 1335460, delroute 110963 0m10.01s real 0m01.72s user 0m46.59s 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 347971 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 175513 0m01.00s real 0m00.05s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.59s