START sys/netinet/bindconnect 2025-03-05T05:16: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 896155, close 717218, bind 1116910, connect 1104628, delroute 0 10.00 real 2.34 user 27.61 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1183633, close 601126, bind 4320416, connect 0, delroute 0 10.01 real 4.39 user 71.30 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 326056, close 352504, bind 0, connect 1762788, delroute 0 10.01 real 1.94 user 34.34 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 500584, close 479287, bind 1063189, connect 1146291, delroute 0 10.01 real 2.19 user 42.93 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 223412, close 295464, bind 557012, connect 466456, delroute 0 10.17 real 1.17 user 47.48 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 460081, close 1397721, bind 2307414, connect 2171902, delroute 0 10.01 real 4.46 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 304948, close 391752, bind 222335, connect 1625143, delroute 0 10.01 real 1.95 user 35.68 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 412540, close 427343, bind 859335, connect 1167035, delroute 0 10.01 real 1.94 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 307586, close 576369, bind 0, connect 1477848, delroute 113934 10.01 real 1.93 user 42.78 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 416246, close 694776, bind 2188409, connect 0, delroute 0 10.01 real 2.32 user 54.75 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348020, close 762286, bind 0, connect 1913082, delroute 0 10.01 real 2.30 user 42.90 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355701, close 781226, bind 1061358, connect 912086, delroute 0 10.01 real 2.01 user 44.14 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 205975, close 318396, bind 640731, connect 621718, delroute 0 10.24 real 1.27 user 40.13 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 283634, close 2236506, bind 2736647, connect 2682800, delroute 0 10.00 real 6.60 user 52.28 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 326260, close 633881, bind 278505, connect 1605273, delroute 0 10.01 real 1.99 user 44.33 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 319860, close 544142, bind 813404, connect 828596, delroute 0 10.01 real 2.02 user 39.25 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 302615, close 693104, bind 0, connect 1669803, delroute 139635 10.01 real 2.02 user 51.83 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1151558, close 604098, bind 5051762, connect 0, delroute 0 10.01 real 4.64 user 72.32 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 411278, close 448040, bind 0, connect 1414450, delroute 0 10.01 real 1.80 user 45.97 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 498418, close 487040, bind 1106586, connect 887732, delroute 0 10.01 real 2.22 user 50.39 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 535957, close 269386, bind 1135315, connect 897912, delroute 0 10.34 real 2.27 user 51.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 428940, close 1173272, bind 1991964, connect 1730373, delroute 0 10.00 real 4.21 user 55.38 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 394801, close 548519, bind 290675, connect 1373895, delroute 0 10.00 real 1.96 user 48.02 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 500210, close 480617, bind 1090913, connect 885675, delroute 0 10.01 real 1.93 user 51.23 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 445248, close 586996, bind 0, connect 1408521, delroute 211268 10.01 real 2.11 user 52.94 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1153153, close 581541, bind 4217787, connect 0, delroute 0 10.01 real 4.08 user 70.34 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 148391, close 242939, bind 0, connect 1312255, delroute 0 10.01 real 1.24 user 22.03 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 196652, close 244004, bind 417241, connect 1026498, delroute 0 10.01 real 1.45 user 24.49 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 252438, close 309953, bind 608027, connect 427457, delroute 0 10.19 real 0.98 user 49.48 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 354542, close 1980639, bind 2607450, connect 2612350, delroute 0 10.00 real 6.34 user 50.13 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 157348, close 251733, bind 114942, connect 1132870, delroute 0 0m10.01s real 0m01.42s user 0m23.51s 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 181851, close 220278, bind 370372, connect 894502, delroute 0 0m10.01s real 0m01.36s user 0m22.57s 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 179470, close 365691, bind 0, connect 1073901, delroute 56501 0m10.01s real 0m01.19s user 0m27.88s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 403793, close 727571, bind 2251066, connect 0, delroute 0 10.01 real 2.19 user 53.62 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 320928, close 745426, bind 0, connect 1807432, delroute 0 10.01 real 2.04 user 40.43 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 334155, close 758750, bind 1004351, connect 857505, delroute 0 10.01 real 1.91 user 41.64 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 222027, close 333473, bind 703735, connect 669877, delroute 0 10.28 real 1.27 user 39.28 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 265422, close 2411685, bind 2798845, connect 2849604, delroute 0 10.00 real 6.15 user 50.82 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 352817, close 626894, bind 301495, connect 1676713, delroute 0 0m10.01s real 0m02.07s user 0m49.23s 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 368000, close 616047, bind 949301, connect 819083, delroute 0 0m10.01s real 0m02.00s user 0m46.04s 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 272445, close 691742, bind 0, connect 1533615, delroute 110747 0m10.01s real 0m02.03s user 0m47.26s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1092814, close 569504, bind 4591444, connect 0, delroute 0 10.01 real 4.03 user 71.89 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 504748, close 450495, bind 0, connect 1287803, delroute 0 10.01 real 1.45 user 42.74 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 580136, close 473864, bind 1056817, connect 812440, delroute 0 10.01 real 2.10 user 48.74 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 695593, close 236855, bind 1066302, connect 786974, delroute 0 10.35 real 1.94 user 46.52 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 412086, close 1357792, bind 2213681, connect 1922877, delroute 0 10.01 real 4.35 user 55.17 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 512671, close 480268, bind 284282, connect 1310087, delroute 0 0m10.01s real 0m01.98s user 0m45.03s 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 628082, close 459837, bind 1007069, connect 779781, delroute 0 0m10.01s real 0m01.86s user 0m46.33s 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 309910, close 603798, bind 0, connect 1279858, delroute 109896 0m10.01s real 0m01.80s user 0m46.09s 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 344806 1.00 real 0.17 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 174936 0m01.00s real 0m00.06s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.60s