START sys/netinet/bindconnect 2025-03-11T05:15:04Z ==== 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 883428, close 716743, bind 1116415, connect 1129647, delroute 0 10.00 real 2.63 user 26.56 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1176202, close 596325, bind 4265028, connect 0, delroute 0 10.01 real 4.53 user 70.57 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 333961, close 375349, bind 0, connect 1700389, delroute 0 10.01 real 1.79 user 34.13 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 501573, close 461881, bind 1025695, connect 1117176, delroute 0 10.01 real 2.19 user 43.04 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 198461, close 232804, bind 479286, connect 415232, delroute 0 10.18 real 0.80 user 41.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 452221, close 1389943, bind 2302425, connect 2173834, delroute 0 10.00 real 4.59 user 55.42 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 309733, close 383395, bind 227509, connect 1584972, delroute 0 10.01 real 1.84 user 35.55 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 422108, close 457064, bind 869208, connect 1139123, delroute 0 10.01 real 2.24 user 38.58 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 305565, close 584563, bind 0, connect 1491307, delroute 114932 10.01 real 1.75 user 43.11 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 408007, close 725454, bind 2235777, connect 0, delroute 0 10.01 real 2.24 user 54.62 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 343919, close 825798, bind 0, connect 1938979, delroute 0 10.01 real 2.16 user 41.73 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 363372, close 743274, bind 1027017, connect 874782, delroute 0 10.01 real 2.24 user 43.11 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 238264, close 367154, bind 718799, connect 699146, delroute 0 10.25 real 1.29 user 41.48 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 283484, close 2281508, bind 2740985, connect 2719487, delroute 0 10.00 real 6.43 user 52.05 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 326329, close 649525, bind 279719, connect 1624104, delroute 0 10.01 real 1.94 user 44.41 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 320843, close 564299, bind 816257, connect 823711, delroute 0 10.01 real 1.68 user 40.52 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 296292, close 792549, bind 0, connect 1756575, delroute 139009 10.01 real 2.06 user 51.43 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1146296, close 605320, bind 5007975, connect 0, delroute 0 10.01 real 4.72 user 72.15 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 404633, close 460909, bind 0, connect 1406538, delroute 0 10.01 real 1.56 user 45.34 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 491903, close 490445, bind 1097283, connect 893268, delroute 0 10.01 real 2.14 user 50.14 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 533042, close 266569, bind 1129160, connect 900330, delroute 0 10.32 real 1.83 user 51.14 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 424607, close 1234981, bind 2025999, connect 1793784, delroute 0 10.01 real 3.99 user 56.10 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 396031, close 484276, bind 294303, connect 1395670, delroute 0 10.01 real 2.22 user 48.13 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 489497, close 491142, bind 1062659, connect 868113, delroute 0 10.01 real 2.20 user 50.97 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 333923, close 648359, bind 0, connect 1519848, delroute 221711 10.01 real 2.06 user 52.62 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1164886, close 595150, bind 4258098, connect 0, delroute 0 10.01 real 4.14 user 70.56 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 142984, close 232989, bind 0, connect 1315725, delroute 0 10.01 real 1.01 user 21.46 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 189178, close 272433, bind 405247, connect 1035737, delroute 0 10.01 real 1.46 user 24.48 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 264862, close 351755, bind 663743, connect 489795, delroute 0 10.18 real 1.16 user 49.25 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 356406, close 1984161, bind 2596530, connect 2641249, delroute 0 10.01 real 6.41 user 49.62 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 159762, close 260127, bind 112971, connect 1143548, delroute 0 0m10.01s real 0m01.37s user 0m23.39s 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 183955, close 225673, bind 380545, connect 908700, delroute 0 0m10.01s real 0m01.24s user 0m23.29s 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 176338, close 377775, bind 0, connect 1091879, delroute 55732 0m10.01s real 0m01.28s 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 395651, close 751815, bind 2271940, connect 0, delroute 0 10.01 real 2.26 user 54.54 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 321361, close 765120, bind 0, connect 1817385, delroute 0 10.01 real 1.78 user 39.83 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 334819, close 774917, bind 999217, connect 863378, delroute 0 10.01 real 2.16 user 40.86 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 189133, close 274124, bind 600737, connect 563130, delroute 0 10.29 real 1.12 user 38.83 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266702, close 2439448, bind 2779656, connect 2845956, delroute 0 10.00 real 6.20 user 50.35 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 358072, close 629810, bind 299793, connect 1681799, delroute 0 0m10.01s real 0m02.67s user 0m47.72s 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 367391, close 630835, bind 946544, connect 819282, delroute 0 0m10.00s real 0m02.04s user 0m45.38s 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 277890, close 655650, bind 0, connect 1462137, delroute 111473 0m10.00s real 0m01.92s user 0m47.15s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1078900, close 579049, bind 4607705, connect 0, delroute 0 10.01 real 4.34 user 71.18 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 531380, close 465839, bind 0, connect 1351481, delroute 0 10.01 real 1.66 user 41.67 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 599895, close 472082, bind 1028632, connect 794606, delroute 0 10.01 real 1.71 user 46.72 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 743611, close 221278, bind 1023425, connect 758262, delroute 0 10.36 real 1.95 user 44.62 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 415303, close 1422494, bind 2214967, connect 1927013, delroute 0 10.00 real 4.67 user 55.67 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 563965, close 469156, bind 281711, connect 1295099, delroute 0 0m10.01s real 0m01.71s user 0m43.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 664202, close 454010, bind 961663, connect 755107, delroute 0 0m10.00s real 0m01.89s user 0m44.30s 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 325575, close 601512, bind 0, connect 1297271, delroute 110644 0m10.00s real 0m01.88s user 0m45.92s 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 344279 1.00 real 0.14 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 172548 0m01.00s real 0m00.04s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.61s