START sys/netinet/bindconnect 2025-01-13T03:07:38Z ==== 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 1133613, close 1175449, bind 964314, connect 870351, delroute 0 10.00 real 2.36 user 30.07 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1101309, close 711993, bind 2917447, connect 0, delroute 0 10.01 real 3.24 user 74.32 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 735979, close 613190, bind 0, connect 1199084, delroute 0 10.01 real 1.49 user 39.97 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 841529, close 704527, bind 769216, connect 776898, delroute 0 10.01 real 1.85 user 47.59 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125951, close 119759, bind 239465, connect 241212, delroute 0 10.27 real 0.53 user 19.64 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 523652, close 1593093, bind 2121350, connect 2044426, delroute 0 10.00 real 4.52 user 57.21 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 650086, close 591690, bind 157744, connect 1152565, delroute 0 10.01 real 1.79 user 41.09 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 797352, close 662194, bind 712159, connect 786848, delroute 0 10.01 real 2.43 user 46.42 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 516579, close 489988, bind 0, connect 855910, delroute 111481 10.01 real 1.37 user 44.97 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 975659, close 731882, bind 390010, connect 0, delroute 0 10.01 real 1.06 user 39.66 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 889538, close 569048, bind 0, connect 331084, delroute 0 10.01 real 1.12 user 32.09 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 913886, close 591929, bind 166261, connect 176274, delroute 0 10.01 real 1.14 user 33.33 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 633182, close 345046, bind 239318, connect 267906, delroute 0 10.50 real 0.82 user 28.82 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 370313, close 2014746, bind 1706763, connect 1732608, delroute 0 10.00 real 4.23 user 47.59 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 804451, close 583773, bind 56172, connect 445998, delroute 0 10.00 real 1.06 user 34.39 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 876503, close 577761, bind 143607, connect 278646, delroute 0 10.01 real 0.88 user 31.64 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 748011, close 565484, bind 0, connect 337351, delroute 60964 10.01 real 0.97 user 38.73 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1163864, close 801064, bind 2891344, connect 0, delroute 0 10.01 real 3.44 user 75.42 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 767635, close 709599, bind 0, connect 905149, delroute 0 10.01 real 1.45 user 44.54 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 796357, close 743767, bind 694919, connect 602196, delroute 0 10.01 real 1.94 user 50.44 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 696345, close 510574, bind 858143, connect 695382, delroute 0 10.34 real 1.64 user 51.21 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 501182, close 1591058, bind 1946253, connect 1799349, delroute 0 10.01 real 4.32 user 55.71 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 679687, close 661663, bind 177571, connect 922087, delroute 0 10.01 real 1.79 user 47.52 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 797752, close 756408, bind 674052, connect 588886, delroute 0 10.01 real 1.60 user 50.64 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 568664, close 533905, bind 0, connect 727487, delroute 244033 10.01 real 1.55 user 53.39 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1151608, close 708064, bind 2644059, connect 0, delroute 0 10.01 real 2.88 user 74.93 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 324160, close 313653, bind 0, connect 1058842, delroute 0 10.01 real 1.06 user 21.19 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 443152, close 392850, bind 245188, connect 867992, delroute 0 10.01 real 1.10 user 24.24 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129244, close 141947, bind 239842, connect 282170, delroute 0 10.27 real 0.60 user 20.80 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 421283, close 1655166, bind 1841272, connect 2109215, delroute 0 10.00 real 4.10 user 43.45 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 296066, close 296354, bind 51330, connect 929913, delroute 0 0m10.01s real 0m01.17s user 0m20.91s 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 364201, close 331193, bind 212025, connect 793409, delroute 0 0m10.01s real 0m01.33s user 0m22.92s 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 247663, close 246910, bind 0, connect 790086, delroute 43322 0m10.01s real 0m00.93s user 0m25.70s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 982123, close 653085, bind 368343, connect 0, delroute 0 10.01 real 1.03 user 38.30 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 893053, close 460638, bind 0, connect 287185, delroute 0 10.01 real 0.69 user 29.80 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 933592, close 510087, bind 133340, connect 158927, delroute 0 10.01 real 0.97 user 31.21 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 719921, close 349157, bind 228956, connect 273754, delroute 0 10.49 real 0.86 user 28.74 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 360222, close 2048469, bind 1702166, connect 1811767, delroute 0 10.00 real 4.33 user 44.96 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 881430, close 520995, bind 50590, connect 343854, delroute 0 0m10.00s real 0m00.87s user 0m33.22s 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 919806, close 595900, bind 145988, connect 178009, delroute 0 0m10.01s real 0m01.03s user 0m33.48s 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 698709, close 517485, bind 0, connect 307203, delroute 57022 0m10.01s real 0m00.95s user 0m35.82s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1136729, close 791184, bind 2114283, connect 0, delroute 0 10.01 real 2.57 user 75.84 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 897085, close 914315, bind 0, connect 749024, delroute 0 10.01 real 1.41 user 40.12 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 961812, close 984872, bind 541676, connect 454683, delroute 0 10.01 real 1.71 user 45.05 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 702785, close 536152, bind 856731, connect 654685, delroute 0 10.34 real 1.76 user 48.51 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 470875, close 1679108, bind 1957429, connect 1814205, delroute 0 10.00 real 4.08 user 55.88 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 854346, close 880051, bind 136492, connect 715791, delroute 0 0m10.01s real 0m01.77s user 0m42.43s 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 965619, close 979456, bind 508826, connect 436562, delroute 0 0m10.01s real 0m01.51s user 0m44.13s 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 612553, close 620908, bind 0, connect 558945, delroute 97110 0m10.01s real 0m01.12s user 0m44.95s 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 345489 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 170657 0m01.00s real 0m00.03s user 0m00.98s system PASS sys/netinet/bindconnect Duration 8m17.24s