==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || doas -n 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 /home/src/regress/sys/netinet/bindconnect/bindconnect.c cc -o bindconnect bindconnect.o -lpthread time ./bindconnect count: socket 1155982, close 987397, bind 332459, connect 355980, delroute 0 10.01 real 5.17 user 20.94 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1917542, close 524778, bind 880745, connect 0, delroute 0 10.01 real 4.98 user 24.00 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1431661, close 465323, bind 0, connect 610331, delroute 0 10.00 real 4.22 user 21.39 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1207364, close 409576, bind 569858, connect 393467, delroute 0 10.01 real 3.48 user 17.65 sys ==== run-inet-udp-100000 ==== doas -n time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 277692, close 91198, bind 62031, connect 56611, delroute 0 10.36 real 0.78 user 26.99 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1168391, close 661946, bind 428399, connect 434638, delroute 0 10.03 real 3.82 user 16.85 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 1332188, close 245823, bind 43871, connect 416747, delroute 0 10.02 real 3.72 user 18.02 sys ==== run-inet-udp-localnet-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 1496320, close 458403, bind 287735, connect 240876, delroute 0 10.00 real 4.28 user 17.55 sys ==== run-inet-udp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 1231033, close 258731, bind 0, connect 378715, delroute 156290 10.00 real 3.64 user 17.83 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 948372, close 246348, bind 690497, connect 0, delroute 0 10.01 real 3.30 user 15.57 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 905285, close 280559, bind 0, connect 542696, delroute 0 10.05 real 3.16 user 17.21 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 901128, close 406347, bind 411537, connect 281023, delroute 0 10.01 real 2.77 user 15.75 sys ==== run-inet-tcp-100000 ==== doas -n time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 258730, close 68393, bind 109372, connect 49623, delroute 0 10.64 real 0.88 user 23.43 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 679635, close 405991, bind 613648, connect 400466, delroute 0 10.01 real 2.96 user 13.39 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 805212, close 241886, bind 94105, connect 319555, delroute 0 10.01 real 2.83 user 14.98 sys ==== run-inet-tcp-localnet-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 806980, close 348235, bind 463109, connect 192396, delroute 0 10.02 real 2.75 user 14.38 sys ==== run-inet-tcp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 915469, close 381210, bind 0, connect 145544, delroute 190107 10.03 real 2.78 user 18.32 sys ==== run-inet-any-bind ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1581918, close 493502, bind 770138, connect 0, delroute 0 10.01 real 3.76 user 19.85 sys ==== run-inet-any-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1528443, close 689375, bind 0, connect 995937, delroute 0 10.01 real 4.32 user 21.45 sys ==== run-inet-any-bind-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1425142, close 696688, bind 454261, connect 748001, delroute 0 10.01 real 5.05 user 18.74 sys ==== run-inet-any-100000 ==== doas -n time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1263647, close 421804, bind 493536, connect 480321, delroute 0 10.50 real 3.99 user 19.30 sys ==== run-inet-any-reuseport ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1227990, close 457994, bind 324264, connect 500355, delroute 0 10.03 real 3.49 user 16.64 sys ==== run-inet-any-localnet-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 127.0.0.1/8 count: socket 1781514, close 307568, bind 132927, connect 451222, delroute 0 10.01 real 4.02 user 20.83 sys ==== run-inet-any-localnet-bind-connect ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N 127.0.0.1/8 count: socket 1403999, close 446224, bind 444871, connect 389278, delroute 0 10.00 real 3.88 user 16.49 sys ==== run-inet-any-localnet-connect-delete ==== doas -n time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N 127.0.0.1/8 count: socket 1263398, close 328162, bind 0, connect 818127, delroute 175981 10.01 real 4.14 user 17.08 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1727197, close 628972, bind 630593, connect 0, delroute 0 10.01 real 3.78 user 22.65 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1059493, close 312856, bind 0, connect 564824, delroute 0 10.01 real 2.84 user 14.25 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1252348, close 430824, bind 445224, connect 156447, delroute 0 10.01 real 3.02 user 15.65 sys ==== run-inet6-udp-100000 ==== doas -n time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 521662, close 184332, bind 205501, connect 82591, delroute 0 10.49 real 1.29 user 17.49 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1211771, close 620176, bind 427469, connect 227035, delroute 0 10.01 real 3.60 user 15.07 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 1147838, close 355196, bind 123389, connect 517556, delroute 0 0m10.02s real 0m03.30s user 0m14.58s system ==== run-inet6-udp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 1275802, close 366133, bind 408084, connect 168049, delroute 0 0m10.01s real 0m03.29s user 0m15.04s system ==== run-inet6-udp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 544649, close 604279, bind 0, connect 310975, delroute 48067 10.01 real 1.85 user 14.26 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 817902, close 239836, bind 1060084, connect 0, delroute 0 10.01 real 3.21 user 14.01 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 717819, close 270932, bind 0, connect 838398, delroute 0 10.01 real 2.99 user 12.51 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 679818, close 440869, bind 646482, connect 429976, delroute 0 10.01 real 3.21 user 12.16 sys ==== run-inet6-tcp-100000 ==== doas -n time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 171970, close 34338, bind 94569, connect 36586, delroute 0 10.60 real 0.71 user 25.92 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 809058, close 344828, bind 452792, connect 350867, delroute 0 10.02 real 3.76 user 17.19 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 868970, close 267460, bind 88022, connect 298891, delroute 0 0m10.01s real 0m03.01s user 0m17.46s system ==== run-inet6-tcp-localnet-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 954010, close 326937, bind 232984, connect 103978, delroute 0 0m10.01s real 0m02.87s user 0m17.41s system ==== run-inet6-tcp-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 134977, close 162318, bind 0, connect 53603, delroute 75863 10.01 real 0.72 user 14.50 sys ==== run-inet6-any-bind ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1296257, close 312227, bind 895695, connect 0, delroute 0 10.02 real 3.51 user 18.20 sys ==== run-inet6-any-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1154453, close 249452, bind 0, connect 698353, delroute 0 10.01 real 3.64 user 16.20 sys ==== run-inet6-any-bind-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1023358, close 353203, bind 479400, connect 463090, delroute 0 10.02 real 3.54 user 15.18 sys ==== run-inet6-any-100000 ==== doas -n time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1144279, close 222181, bind 257718, connect 275686, delroute 0 10.55 real 2.95 user 17.28 sys ==== run-inet6-any-reuseport ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1075983, close 588830, bind 336454, connect 352772, delroute 0 10.06 real 3.66 user 16.54 sys ==== run-inet6-any-localnet-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N ::1/128 count: socket 1199449, close 227239, bind 60204, connect 447911, delroute 0 10.07 real 2.94 user 17.77 sys ==== run-inet6-any-localnet-bind-connect ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -N ::1/128 count: socket 1063296, close 374937, bind 372782, connect 368150, delroute 0 10.01 real 3.30 user 15.83 sys ==== run-inet6-any-localnet-connect-delete ==== doas -n time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 -d 3 -N ::1/128 count: socket 310149, close 315513, bind 0, connect 628341, delroute 49084 10.02 real 1.83 user 12.73 sys ==== cleanup-inet-delete ==== doas -n time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 127.0.0.1/8 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 115425 1.01 real 0.12 user 0.76 sys ==== cleanup-inet6-delete ==== doas -n time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N ::1/128 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 7081 1.02 real 0.03 user 0.83 sys