START sys/netinet/bindconnect 2025-01-04T16:25:51Z ==== 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 1148296, close 1168908, bind 980679, connect 866553, delroute 0 10.00 real 2.31 user 30.33 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1045650, close 532321, bind 2993261, connect 0, delroute 0 10.01 real 3.17 user 75.54 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 694963, close 612576, bind 0, connect 1213679, delroute 0 10.01 real 1.40 user 41.36 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 771087, close 655637, bind 845764, connect 806857, delroute 0 10.01 real 1.95 user 49.68 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125569, close 118554, bind 235901, connect 235319, delroute 0 10.26 real 0.41 user 18.62 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 515040, close 1511958, bind 2092528, connect 1977557, delroute 0 10.01 real 4.32 user 57.19 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 615202, close 548798, bind 166327, connect 1151724, delroute 0 10.01 real 1.67 user 42.88 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 773582, close 642677, bind 736757, connect 788608, delroute 0 10.01 real 2.09 user 47.63 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 505652, close 465573, bind 0, connect 848265, delroute 109903 10.01 real 1.44 user 45.17 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 936881, close 613420, bind 388337, connect 0, delroute 0 10.01 real 0.85 user 38.80 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 881972, close 513577, bind 0, connect 315249, delroute 0 10.01 real 0.86 user 32.69 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 893111, close 552094, bind 153173, connect 165667, delroute 0 10.01 real 0.97 user 34.10 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 466960, close 299888, bind 224762, connect 248116, delroute 0 10.48 real 0.77 user 26.97 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 366580, close 1979407, bind 1697662, connect 1715985, delroute 0 10.00 real 4.23 user 48.51 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 772434, close 544463, bind 58929, connect 461877, delroute 0 10.01 real 1.07 user 33.28 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 831003, close 549696, bind 157183, connect 290188, delroute 0 10.01 real 1.06 user 31.99 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 717766, close 545449, bind 0, connect 349874, delroute 63382 10.01 real 0.99 user 39.94 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1131417, close 759415, bind 2850085, connect 0, delroute 0 10.01 real 3.05 user 76.21 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 730997, close 664040, bind 0, connect 914036, delroute 0 10.01 real 1.33 user 44.37 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 759846, close 705012, bind 696320, connect 590328, delroute 0 10.01 real 1.81 user 51.12 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 693414, close 506074, bind 867842, connect 698783, delroute 0 10.34 real 1.89 user 52.15 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 489056, close 1518756, bind 1880728, connect 1732722, delroute 0 10.00 real 3.95 user 56.61 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 650095, close 638556, bind 169101, connect 884644, delroute 0 10.01 real 1.45 user 47.68 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 747353, close 688703, bind 671533, connect 576971, delroute 0 10.01 real 1.91 user 51.21 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 549941, close 505572, bind 0, connect 710520, delroute 239203 10.01 real 1.42 user 53.48 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1117526, close 658674, bind 2561450, connect 0, delroute 0 10.01 real 2.73 user 75.61 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 349142, close 319709, bind 0, connect 1055760, delroute 0 10.01 real 0.94 user 22.20 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 447445, close 394215, bind 270025, connect 866878, delroute 0 10.01 real 1.25 user 25.90 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130211, close 142489, bind 236629, connect 274007, delroute 0 10.23 real 0.53 user 20.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 375071, close 1581987, bind 1814875, connect 2064021, delroute 0 10.00 real 4.00 user 44.68 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 313434, close 305796, bind 54248, connect 940841, delroute 0 0m10.01s real 0m01.31s user 0m21.04s 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 345702, close 316279, bind 225355, connect 806322, delroute 0 0m10.01s real 0m01.04s user 0m22.79s 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 247936, close 250010, bind 0, connect 800973, delroute 43738 0m10.01s real 0m01.10s user 0m26.37s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 965927, close 629741, bind 369272, connect 0, delroute 0 10.01 real 1.01 user 37.70 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 872948, close 444006, bind 0, connect 278376, delroute 0 10.01 real 0.78 user 29.71 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 894399, close 501321, bind 135042, connect 157831, delroute 0 10.01 real 0.83 user 31.11 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 526511, close 284314, bind 204483, connect 240039, delroute 0 10.47 real 0.77 user 27.13 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358297, close 1910724, bind 1585994, connect 1681022, delroute 0 10.00 real 4.53 user 43.92 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 820109, close 502129, bind 53090, connect 349314, delroute 0 0m10.01s real 0m01.00s user 0m34.34s 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 875361, close 562747, bind 145555, connect 178480, delroute 0 0m10.01s real 0m01.00s user 0m34.39s 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 683547, close 485461, bind 0, connect 298031, delroute 55903 0m10.01s real 0m01.04s user 0m35.68s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1122218, close 760470, bind 2033689, connect 0, delroute 0 10.01 real 2.47 user 75.77 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1085841, close 1102710, bind 0, connect 596204, delroute 0 10.01 real 1.49 user 36.52 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1081681, close 1088861, bind 458544, connect 383010, delroute 0 10.01 real 1.80 user 42.05 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 715313, close 541841, bind 797014, connect 613039, delroute 0 10.35 real 1.66 user 49.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 465567, close 1663196, bind 1925327, connect 1791413, delroute 0 10.00 real 4.41 user 55.95 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 973801, close 977760, bind 129431, connect 640975, delroute 0 0m10.00s real 0m01.63s user 0m40.02s 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 1125354, close 1116028, bind 424006, connect 362193, delroute 0 0m10.01s real 0m01.77s user 0m41.16s 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 690101, close 688219, bind 0, connect 530667, delroute 89943 0m10.01s real 0m01.14s user 0m43.45s 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 340408 1.00 real 0.21 user 0.77 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 173552 0m01.00s real 0m00.13s user 0m00.89s system PASS sys/netinet/bindconnect Duration 8m17.16s