==== 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 1197013, close 566781, bind 254619, connect 255070, delroute 0 10.01 real 5.55 user 21.53 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1522053, close 437798, bind 1122325, connect 0, delroute 0 10.01 real 4.41 user 23.84 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1351387, close 440857, bind 0, connect 615995, delroute 0 10.01 real 3.88 user 24.09 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1097475, close 398008, bind 730909, connect 368537, delroute 0 10.01 real 3.55 user 17.50 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 394019, close 77819, bind 94232, connect 114645, delroute 0 10.46 real 1.17 user 25.28 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1158155, close 529477, bind 399342, connect 294680, delroute 0 10.01 real 3.41 user 17.23 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 1127378, close 253816, bind 60366, connect 520152, delroute 0 10.01 real 2.79 user 16.37 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 1334118, close 461484, bind 393000, connect 247388, delroute 0 10.00 real 3.35 user 16.94 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 1131476, close 177213, bind 0, connect 403454, delroute 158362 10.02 real 3.60 user 16.27 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 874133, close 191476, bind 1777580, connect 0, delroute 0 10.01 real 3.30 user 15.41 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 762021, close 206342, bind 0, connect 1366476, delroute 0 10.00 real 3.87 user 14.45 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 807449, close 159328, bind 835233, connect 744919, delroute 0 10.01 real 3.58 user 14.62 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 146570, close 64893, bind 137103, connect 71820, delroute 0 10.82 real 1.10 user 11.23 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 683057, close 249695, bind 508902, connect 297198, delroute 0 10.00 real 3.45 user 13.44 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 595745, close 186299, bind 128224, connect 525790, delroute 0 10.00 real 3.36 user 13.02 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 732950, close 111529, bind 581952, connect 197486, delroute 0 10.01 real 3.48 user 13.77 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 597483, close 152557, bind 0, connect 414849, delroute 106587 10.00 real 2.92 user 13.56 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 1369469, close 782356, bind 530489, connect 0, delroute 0 10.01 real 3.31 user 16.25 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 1345607, close 532833, bind 0, connect 672535, delroute 0 10.01 real 3.37 user 18.55 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 1404669, close 506497, bind 281811, connect 345687, delroute 0 10.01 real 3.54 user 17.47 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 1315434, close 331612, bind 299415, connect 323590, delroute 0 10.60 real 3.48 user 20.97 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 962322, close 596467, bind 660948, connect 819082, delroute 0 10.01 real 4.52 user 16.09 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 1254150, close 277638, bind 124083, connect 807225, delroute 0 10.01 real 3.67 user 18.04 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 1099349, close 634651, bind 673785, connect 595834, delroute 0 10.01 real 4.39 user 15.74 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 946760, close 282820, bind 0, connect 771568, delroute 218822 10.13 real 3.23 user 13.83 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1227936, close 267413, bind 984628, connect 0, delroute 0 10.00 real 3.69 user 15.67 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 975392, close 306149, bind 0, connect 554870, delroute 0 10.01 real 2.77 user 14.21 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1233133, close 239839, bind 396813, connect 203712, delroute 0 10.02 real 3.45 user 15.11 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 475015, close 139423, bind 100863, connect 85738, delroute 0 10.52 real 1.17 user 18.95 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1164061, close 438156, bind 375472, connect 299239, delroute 0 10.01 real 3.81 user 14.61 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 1081678, close 282899, bind 67625, connect 431138, delroute 0 0m10.01s real 0m03.21s user 0m15.15s 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 1217288, close 320148, bind 361028, connect 134002, delroute 0 0m10.01s real 0m03.19s user 0m14.72s 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 617773, close 575153, bind 0, connect 389954, delroute 36576 10.11 real 2.02 user 14.88 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 824567, close 286934, bind 1798409, connect 0, delroute 0 10.01 real 3.81 user 15.26 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 692174, close 199360, bind 0, connect 1478408, delroute 0 10.02 real 3.67 user 13.07 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 708070, close 248770, bind 838583, connect 688013, delroute 0 10.01 real 3.62 user 13.50 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 138021, close 40189, bind 145928, connect 61293, delroute 0 10.73 real 0.60 user 10.90 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 646355, close 243985, bind 630815, connect 269811, delroute 0 10.00 real 3.17 user 13.83 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 548825, close 208961, bind 207435, connect 1026572, delroute 0 0m10.01s real 0m03.41s user 0m13.16s 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 655325, close 216543, bind 739629, connect 387827, delroute 0 0m10.02s real 0m03.04s user 0m13.91s 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 237171, close 111366, bind 0, connect 708220, delroute 29883 10.00 real 2.09 user 14.32 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 1121511, close 244549, bind 810737, connect 0, delroute 0 10.01 real 3.33 user 17.35 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 1098195, close 167042, bind 0, connect 627513, delroute 0 10.08 real 3.13 user 16.93 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 1115944, close 247941, bind 360042, connect 311817, delroute 0 10.01 real 3.58 user 17.01 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 1015211, close 75200, bind 266355, connect 237461, delroute 0 10.50 real 2.42 user 16.31 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 947611, close 369873, bind 419916, connect 435193, delroute 0 10.01 real 3.45 user 16.19 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 930003, close 173339, bind 154522, connect 651700, delroute 0 10.01 real 3.22 user 15.62 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 1025270, close 196868, bind 383225, connect 354636, delroute 0 10.02 real 3.00 user 17.19 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 380934, close 393160, bind 0, connect 689979, delroute 50133 10.01 real 2.33 user 13.13 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 127054 1.01 real 0.10 user 0.89 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 8000 1.01 real 0.00 user 0.96 sys