START sys/netinet/bindconnect 2025-04-03T04:17:54Z ==== 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 903347, close 739413, bind 1126020, connect 1117524, delroute 0 10.00 real 2.55 user 26.81 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1137676, close 600509, bind 4350972, connect 0, delroute 0 10.01 real 4.23 user 71.99 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348991, close 404911, bind 0, connect 1654248, delroute 0 10.01 real 1.55 user 34.68 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 517561, close 588102, bind 1020565, connect 1059798, delroute 0 10.01 real 2.04 user 43.27 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 256319, close 325638, bind 629753, connect 512140, delroute 0 10.17 real 1.04 user 48.28 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 445887, close 1628760, bind 2335525, connect 2201747, delroute 0 10.01 real 4.50 user 56.02 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 298667, close 442791, bind 222587, connect 1579681, delroute 0 10.01 real 2.21 user 34.15 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 416790, close 495040, bind 922937, connect 1120858, delroute 0 10.01 real 2.14 user 39.32 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 278540, close 654190, bind 0, connect 1522894, delroute 114272 10.01 real 1.99 user 43.18 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 406844, close 929174, bind 2688225, connect 0, delroute 0 10.01 real 2.50 user 57.55 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 349177, close 840991, bind 0, connect 1928165, delroute 0 10.01 real 2.14 user 42.81 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 344276, close 954059, bind 1191330, connect 992859, delroute 0 10.01 real 2.37 user 44.90 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 198265, close 286113, bind 592144, connect 567706, delroute 0 10.25 real 1.12 user 36.57 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 271080, close 2330891, bind 2721101, connect 2713287, delroute 0 10.01 real 6.01 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 330461, close 710765, bind 304374, connect 1718022, delroute 0 10.01 real 2.21 user 45.67 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 331349, close 625243, bind 911431, connect 838062, delroute 0 10.00 real 1.98 user 40.93 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 281126, close 869193, bind 0, connect 1852565, delroute 141403 10.01 real 2.28 user 52.48 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1198171, close 665620, bind 4702483, connect 0, delroute 0 10.00 real 4.33 user 73.40 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 371584, close 503109, bind 0, connect 1304972, delroute 0 10.01 real 1.68 user 43.90 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 470203, close 559730, bind 1064780, connect 845128, delroute 0 10.01 real 2.01 user 49.89 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 512336, close 293358, bind 1073890, connect 841373, delroute 0 10.32 real 1.92 user 50.16 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 403816, close 1580359, bind 2162523, connect 1966242, delroute 0 10.01 real 4.40 user 55.49 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 367373, close 512670, bind 272725, connect 1329973, delroute 0 10.01 real 2.00 user 46.72 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 460597, close 756063, bind 1033575, connect 832185, delroute 0 10.01 real 2.00 user 48.81 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 302816, close 865522, bind 0, connect 1800093, delroute 219889 10.01 real 2.60 user 51.58 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1161584, close 578686, bind 4044619, connect 0, delroute 0 10.01 real 3.60 user 71.91 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 162016, close 314765, bind 0, connect 1387985, delroute 0 10.01 real 1.35 user 22.83 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 202704, close 297629, bind 470858, connect 1040204, delroute 0 10.01 real 1.45 user 24.86 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 197112, close 224891, bind 501906, connect 376828, delroute 0 10.19 real 0.83 user 46.67 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 361292, close 2117021, bind 2578215, connect 2594611, delroute 0 10.01 real 5.58 user 51.50 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 165925, close 305493, bind 128765, connect 1163267, delroute 0 0m10.01s real 0m01.34s user 0m23.16s 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 191891, close 262430, bind 414608, connect 894805, delroute 0 0m10.01s real 0m01.24s user 0m23.81s 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 172391, close 477347, bind 0, connect 1060145, delroute 57160 0m10.01s real 0m01.17s user 0m28.29s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 406752, close 879142, bind 2590483, connect 0, delroute 0 10.01 real 2.48 user 56.67 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 324616, close 759254, bind 0, connect 1761319, delroute 0 10.01 real 1.98 user 39.39 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331276, close 859323, bind 1028717, connect 856527, delroute 0 10.01 real 1.78 user 42.77 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 209614, close 309171, bind 642283, connect 605624, delroute 0 10.28 real 1.21 user 39.57 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 252884, close 2521139, bind 2774660, connect 2882260, delroute 0 10.00 real 6.32 user 51.06 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 348146, close 766606, bind 328738, connect 1814022, delroute 0 0m10.00s real 0m02.65s user 0m48.14s 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 363565, close 775712, bind 1078521, connect 909992, delroute 0 0m10.01s real 0m02.21s user 0m46.49s 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 269631, close 714903, bind 0, connect 1452230, delroute 109906 0m10.01s real 0m02.00s user 0m46.95s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1121382, close 625914, bind 4493817, connect 0, delroute 0 10.01 real 4.76 user 73.94 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 415040, close 496266, bind 0, connect 1330987, delroute 0 10.01 real 1.44 user 41.89 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 493921, close 577932, bind 1122120, connect 852799, delroute 0 10.01 real 1.95 user 48.43 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 528366, close 249526, bind 1065902, connect 778420, delroute 0 10.36 real 1.93 user 48.58 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 388873, close 1637480, bind 2319222, connect 2068919, delroute 0 10.01 real 4.58 user 55.90 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 452759, close 630190, bind 297952, connect 1344313, delroute 0 0m10.01s real 0m01.86s user 0m44.13s 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 515190, close 673029, bind 1035970, connect 803583, delroute 0 0m10.00s real 0m01.90s user 0m47.14s 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 283781, close 750199, bind 0, connect 1435372, delroute 105738 0m10.01s real 0m01.95s user 0m45.14s 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 343651 1.00 real 0.14 user 0.88 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 170836 0m01.00s real 0m00.06s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.63s