START sys/netinet/bindconnect 2025-03-19T05:15:57Z ==== 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 959715, close 791386, bind 1223727, connect 1125243, delroute 0 10.00 real 2.42 user 27.86 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1229764, close 624276, bind 4378343, connect 0, delroute 0 10.01 real 4.03 user 71.80 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 344427, close 334937, bind 0, connect 1766022, delroute 0 10.01 real 1.46 user 36.22 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 497725, close 481136, bind 1032687, connect 1152717, delroute 0 10.01 real 2.11 user 43.36 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 218132, close 263469, bind 544386, connect 472877, delroute 0 10.20 real 1.13 user 46.19 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457187, close 1388685, bind 2308686, connect 2180446, delroute 0 10.00 real 4.60 user 55.23 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 302490, close 391893, bind 224149, connect 1648987, delroute 0 10.00 real 1.91 user 35.97 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 414895, close 435957, bind 877902, connect 1183696, delroute 0 10.01 real 2.28 user 38.97 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 303750, close 629901, bind 0, connect 1565978, delroute 116672 10.01 real 2.16 user 42.69 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 413886, close 752064, bind 2327357, connect 0, delroute 0 10.01 real 2.22 user 54.79 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 343496, close 841438, bind 0, connect 2015713, delroute 0 10.01 real 2.48 user 42.08 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 358515, close 806313, bind 1081407, connect 935575, delroute 0 10.01 real 2.37 user 43.91 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 226143, close 348985, bind 697393, connect 672873, delroute 0 10.25 real 1.23 user 39.26 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 284669, close 2290519, bind 2747705, connect 2746299, delroute 0 10.01 real 6.01 user 52.06 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 326736, close 653862, bind 288624, connect 1652773, delroute 0 10.01 real 2.21 user 44.62 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 314256, close 611670, bind 854063, connect 862219, delroute 0 10.01 real 1.97 user 39.47 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 294245, close 841465, bind 0, connect 1875222, delroute 140155 10.01 real 2.60 user 51.93 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1279673, close 670884, bind 4808496, connect 0, delroute 0 10.01 real 4.80 user 72.72 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 407535, close 469356, bind 0, connect 1431380, delroute 0 10.01 real 1.67 user 45.72 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 507037, close 500540, bind 1118979, connect 914546, delroute 0 10.01 real 1.96 user 51.05 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 527104, close 274631, bind 1147431, connect 919511, delroute 0 10.34 real 1.91 user 51.98 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 443142, close 1235881, bind 2046561, connect 1804364, delroute 0 10.00 real 4.11 user 55.90 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 396754, close 486617, bind 291758, connect 1406483, delroute 0 10.01 real 2.02 user 49.04 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 507699, close 494668, bind 1090606, connect 902223, delroute 0 10.01 real 2.13 user 50.95 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 338124, close 697916, bind 0, connect 1569885, delroute 225380 10.01 real 2.12 user 52.50 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1208656, close 622700, bind 4254733, connect 0, delroute 0 10.01 real 4.29 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 148628, close 245404, bind 0, connect 1330862, delroute 0 10.01 real 1.38 user 21.47 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 189130, close 244523, bind 400453, connect 1042165, delroute 0 10.01 real 1.34 user 23.91 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 250772, close 325867, bind 597586, connect 439887, delroute 0 10.15 real 0.98 user 50.37 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358421, close 2022551, bind 2642108, connect 2695529, delroute 0 10.01 real 5.81 user 49.98 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 156734, close 244806, bind 113786, connect 1136348, delroute 0 0m10.01s real 0m01.47s user 0m22.69s 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 181308, close 320068, bind 377405, connect 906734, delroute 0 0m10.01s real 0m01.26s user 0m22.84s 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 173730, close 373138, bind 0, connect 1092672, delroute 54941 0m10.01s real 0m01.15s user 0m27.64s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 411989, close 776460, bind 2367114, connect 0, delroute 0 10.01 real 2.43 user 53.80 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 319914, close 824016, bind 0, connect 1917093, delroute 0 10.01 real 2.24 user 40.08 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 334119, close 818292, bind 1045518, connect 914719, delroute 0 10.01 real 1.96 user 41.62 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 200292, close 283016, bind 626485, connect 603627, delroute 0 10.29 real 1.02 user 40.62 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 267060, close 2479207, bind 2847390, connect 2909779, delroute 0 10.00 real 6.48 user 50.33 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 354106, close 661421, bind 304761, connect 1722966, delroute 0 0m10.01s real 0m02.76s user 0m47.18s 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 362993, close 667424, bind 984800, connect 853060, delroute 0 0m10.01s real 0m01.88s user 0m46.26s 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 270720, close 783880, bind 0, connect 1573377, delroute 111085 0m10.01s real 0m02.04s user 0m47.13s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1168553, close 675697, bind 4448801, connect 0, delroute 0 10.01 real 4.61 user 71.07 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 489938, close 476918, bind 0, connect 1376227, delroute 0 10.01 real 1.55 user 42.86 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 589816, close 489332, bind 1073865, connect 834644, delroute 0 10.01 real 1.90 user 47.64 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 715183, close 231163, bind 1066923, connect 795457, delroute 0 10.34 real 2.58 user 45.88 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 420092, close 1494535, bind 2287356, connect 1996248, delroute 0 10.00 real 4.59 user 55.67 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 520440, close 503097, bind 284772, connect 1340512, delroute 0 0m10.01s real 0m02.07s user 0m44.24s 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 652470, close 473629, bind 993523, connect 785385, delroute 0 0m10.00s real 0m02.10s user 0m45.64s 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 329879, close 644186, bind 0, connect 1296099, delroute 110555 0m10.01s real 0m01.82s user 0m46.26s 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 331000 1.00 real 0.16 user 0.84 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 170748 0m01.00s real 0m00.06s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.62s