START sys/netinet/bindconnect 2025-03-06T05:20:32Z ==== 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 919688, close 743907, bind 1142284, connect 1109251, delroute 0 10.00 real 2.56 user 26.80 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1169415, close 636485, bind 4379074, connect 0, delroute 0 10.01 real 4.41 user 69.71 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 357143, close 443947, bind 0, connect 1743753, delroute 0 10.01 real 1.72 user 33.35 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 531367, close 607076, bind 1045283, connect 1100362, delroute 0 10.01 real 2.22 user 42.23 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 256568, close 339761, bind 622382, connect 586630, delroute 0 10.18 real 1.07 user 46.17 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 476116, close 1459088, bind 2252860, connect 2117439, delroute 0 10.01 real 4.72 user 52.76 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 314119, close 395019, bind 213971, connect 1586232, delroute 0 10.01 real 1.70 user 33.98 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 417826, close 483508, bind 892715, connect 1171003, delroute 0 10.01 real 2.44 user 37.11 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 304101, close 593113, bind 0, connect 1526210, delroute 117038 10.01 real 2.29 user 40.47 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 451656, close 811240, bind 2457562, connect 0, delroute 0 10.01 real 2.59 user 53.82 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 371201, close 818924, bind 0, connect 1996516, delroute 0 10.01 real 2.31 user 42.02 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 372021, close 904632, bind 1156384, connect 992474, delroute 0 10.01 real 2.42 user 44.33 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 195192, close 283573, bind 592994, connect 572754, delroute 0 10.24 real 1.29 user 40.29 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 293591, close 2457012, bind 2876975, connect 2835435, delroute 0 10.00 real 6.65 user 52.21 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 345117, close 645082, bind 291022, connect 1648137, delroute 0 10.01 real 2.28 user 43.45 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 335514, close 575443, bind 863829, connect 862885, delroute 0 10.01 real 1.91 user 38.57 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 299288, close 864408, bind 0, connect 1882836, delroute 148462 10.01 real 2.48 user 51.68 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1152293, close 620181, bind 5065509, connect 0, delroute 0 10.01 real 4.75 user 72.07 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 427999, close 592590, bind 0, connect 1455059, delroute 0 10.01 real 1.76 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 529368, close 556536, bind 1154456, connect 948702, delroute 0 10.01 real 2.13 user 50.78 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 546725, close 305212, bind 1162102, connect 971424, delroute 0 10.32 real 2.13 user 50.72 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 451862, close 1385097, bind 2064974, connect 1830528, delroute 0 10.00 real 4.30 user 54.69 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 422068, close 538443, bind 304437, connect 1482517, delroute 0 10.00 real 1.74 user 47.78 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 524715, close 621613, bind 1132347, connect 934074, delroute 0 10.01 real 2.06 user 50.91 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 335419, close 780768, bind 0, connect 1756601, delroute 238993 10.01 real 2.22 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 1196020, close 602463, bind 4255178, connect 0, delroute 0 10.01 real 4.10 user 70.54 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 156034, close 272218, bind 0, connect 1348566, delroute 0 10.01 real 1.16 user 21.27 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 197697, close 262185, bind 430554, connect 1037080, delroute 0 10.01 real 1.29 user 24.09 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 243038, close 314296, bind 658915, connect 434667, delroute 0 10.17 real 1.09 user 50.30 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 367841, close 2153218, bind 2656368, connect 2689873, delroute 0 10.00 real 5.77 user 50.19 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 165024, close 286922, bind 128838, connect 1173522, delroute 0 0m10.01s real 0m01.55s user 0m23.37s 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 186412, close 237115, bind 402476, connect 909527, delroute 0 0m10.01s real 0m01.16s user 0m23.32s 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 176451, close 488333, bind 0, connect 1100719, delroute 57799 0m10.01s real 0m01.37s user 0m27.57s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 435156, close 860999, bind 2560262, connect 0, delroute 0 10.01 real 2.70 user 55.67 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 337044, close 810681, bind 0, connect 1882596, delroute 0 10.01 real 2.45 user 38.18 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 350366, close 862170, bind 1084719, connect 923761, delroute 0 10.01 real 2.36 user 40.83 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 213537, close 302540, bind 648746, connect 622755, delroute 0 10.29 real 1.13 user 39.26 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 277406, close 2613233, bind 2955556, connect 2977243, delroute 0 10.00 real 6.78 user 49.75 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 373647, close 734756, bind 328628, connect 1808036, delroute 0 0m10.01s real 0m02.32s user 0m48.02s 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 384710, close 863569, bind 1014442, connect 873197, delroute 0 0m10.01s real 0m01.89s user 0m45.68s 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 285311, close 742689, bind 0, connect 1501751, delroute 114943 0m10.01s real 0m02.17s user 0m46.02s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1091861, close 605578, bind 4723788, connect 0, delroute 0 10.00 real 4.25 user 71.77 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 462326, close 625150, bind 0, connect 1467756, delroute 0 10.00 real 1.81 user 40.47 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 553570, close 637638, bind 1147910, connect 895707, delroute 0 10.01 real 2.12 user 47.09 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 626231, close 286057, bind 1152124, connect 896827, delroute 0 10.36 real 2.22 user 46.25 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 437279, close 1518569, bind 2360046, connect 2064446, delroute 0 10.01 real 4.83 user 55.09 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 496186, close 550215, bind 315287, connect 1456146, delroute 0 0m10.00s real 0m02.10s user 0m43.98s 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 615522, close 602721, bind 1077271, connect 854199, delroute 0 0m10.01s real 0m01.98s user 0m46.36s 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 307336, close 804716, bind 0, connect 1426841, delroute 114857 0m10.01s real 0m01.76s user 0m45.70s 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 345901 1.00 real 0.15 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 173842 0m01.00s real 0m00.12s user 0m00.88s system PASS sys/netinet/bindconnect Duration 8m16.61s