START sys/netinet/bindconnect 2025-03-04T05:13:09Z ==== 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 908812, close 739918, bind 1158518, connect 1092197, delroute 0 10.01 real 2.92 user 27.31 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1157734, close 584591, bind 4099349, connect 0, delroute 0 10.01 real 3.90 user 71.13 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 312757, close 379797, bind 0, connect 1665613, delroute 0 10.01 real 1.64 user 35.06 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 515743, close 467799, bind 1007991, connect 1062022, delroute 0 10.01 real 2.02 user 44.39 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 239555, close 301797, bind 584022, connect 485250, delroute 0 10.18 real 0.91 user 44.47 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 448451, close 1545182, bind 2347798, connect 2211956, delroute 0 10.01 real 5.09 user 55.34 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 305862, close 400498, bind 230891, connect 1567102, delroute 0 10.01 real 1.69 user 37.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 409721, close 458972, bind 883876, connect 1121105, delroute 0 10.01 real 2.14 user 40.17 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 285289, close 627239, bind 0, connect 1512345, delroute 111372 10.01 real 1.87 user 45.06 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 377745, close 834146, bind 2395223, connect 0, delroute 0 10.01 real 2.34 user 54.83 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 330847, close 808269, bind 0, connect 1930594, delroute 0 10.01 real 2.01 user 43.44 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 327468, close 945221, bind 1088176, connect 954525, delroute 0 10.01 real 2.35 user 44.51 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 163209, close 225250, bind 534982, connect 511419, delroute 0 10.28 real 0.82 user 36.38 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 259048, close 2396681, bind 2726596, connect 2746489, delroute 0 10.01 real 5.77 user 53.18 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 307405, close 756331, bind 276048, connect 1567496, delroute 0 10.00 real 2.26 user 44.20 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 305445, close 621064, bind 859680, connect 820347, delroute 0 10.01 real 1.93 user 41.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 276113, close 806427, bind 0, connect 1767893, delroute 130579 10.01 real 2.09 user 52.43 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1256819, close 734672, bind 4342098, connect 0, delroute 0 10.01 real 4.13 user 73.46 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 359964, close 444227, bind 0, connect 1277084, delroute 0 10.01 real 1.53 user 45.70 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 447975, close 482473, bind 1034599, connect 826880, delroute 0 10.01 real 1.83 user 50.73 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 473755, close 236414, bind 1066280, connect 821665, delroute 0 10.33 real 2.06 user 51.35 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 387758, close 1557706, bind 2130560, connect 1928210, delroute 0 10.00 real 4.54 user 54.97 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 348854, close 525116, bind 271079, connect 1276628, delroute 0 10.01 real 1.86 user 47.97 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 445178, close 586611, bind 987214, connect 801425, delroute 0 10.01 real 1.79 user 50.25 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 303291, close 642072, bind 0, connect 1444892, delroute 196512 10.01 real 1.70 user 52.13 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1162771, close 614224, bind 3985616, connect 0, delroute 0 10.01 real 3.76 user 71.55 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 149780, close 264089, bind 0, connect 1334392, delroute 0 10.01 real 1.19 user 22.62 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 196956, close 262241, bind 426195, connect 1024514, delroute 0 10.01 real 1.39 user 25.10 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 218932, close 261180, bind 541553, connect 393383, delroute 0 10.18 real 1.02 user 51.26 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 338478, close 2033986, bind 2599272, connect 2637048, delroute 0 10.00 real 5.86 user 50.95 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 158187, close 252096, bind 116520, connect 1131603, delroute 0 0m10.01s real 0m01.39s user 0m23.31s 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 187719, close 236350, bind 396115, connect 899356, delroute 0 0m10.01s real 0m01.34s user 0m23.58s 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 171422, close 367159, bind 0, connect 1061262, delroute 53589 0m10.01s real 0m01.38s user 0m29.44s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 377590, close 792430, bind 2351313, connect 0, delroute 0 10.00 real 2.33 user 53.98 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 298533, close 797560, bind 0, connect 1823927, delroute 0 10.01 real 1.88 user 40.24 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 318002, close 779785, bind 1000576, connect 854584, delroute 0 10.01 real 1.92 user 42.21 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 196795, close 273132, bind 609327, connect 585651, delroute 0 10.28 real 1.28 user 39.79 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 246840, close 2499990, bind 2807994, connect 2854867, delroute 0 10.00 real 6.19 user 51.14 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 325323, close 696705, bind 303557, connect 1698049, delroute 0 0m10.00s real 0m02.42s user 0m48.41s 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 339527, close 646133, bind 936211, connect 804702, delroute 0 0m10.00s real 0m01.94s user 0m46.11s 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 255801, close 731737, bind 0, connect 1542709, delroute 102963 0m10.01s real 0m01.92s user 0m48.57s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1146605, close 725905, bind 4234625, connect 0, delroute 0 10.01 real 4.54 user 72.11 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 454533, close 448358, bind 0, connect 1223695, delroute 0 10.01 real 1.48 user 42.20 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 521102, close 478348, bind 1011785, connect 773402, delroute 0 10.01 real 1.85 user 47.16 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 652652, close 216098, bind 1019950, connect 725320, delroute 0 10.34 real 1.67 user 45.64 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 373862, close 1652382, bind 2379279, connect 2133245, delroute 0 10.01 real 4.81 user 55.65 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 469701, close 500903, bind 273002, connect 1271202, delroute 0 0m10.00s real 0m01.93s user 0m44.56s 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 587262, close 502917, bind 948593, connect 742543, delroute 0 0m10.01s real 0m01.94s user 0m45.58s 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 290718, close 606427, bind 0, connect 1260418, delroute 99682 0m10.00s real 0m01.65s user 0m46.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 336685 1.00 real 0.13 user 0.90 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 171521 0m01.00s real 0m00.10s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.64s