==== 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 1457790, close 1612276, bind 639005, connect 428795, delroute 0 10.01 real 4.30 user 22.30 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1167327, close 628535, bind 3575061, connect 0, delroute 0 10.00 real 8.73 user 31.16 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 968151, close 158615, bind 0, connect 1193895, delroute 0 10.00 real 5.98 user 33.15 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1912842, close 51273, bind 149321, connect 113136, delroute 0 10.00 real 8.85 user 31.20 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 94160, close 16976, bind 74514, connect 62267, delroute 0 10.46 real 0.68 user 30.93 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1945809, close 44770, bind 85483, connect 63772, delroute 0 10.01 real 9.23 user 30.69 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 1771961, close 84125, bind 75662, connect 299181, delroute 0 10.00 real 8.74 user 30.80 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 1983248, close 33612, bind 79841, connect 55131, delroute 0 10.00 real 9.31 user 30.78 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 1953590, close 78988, bind 0, connect 75033, delroute 42475 10.01 real 8.86 user 30.87 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1178214, close 147516, bind 294627, connect 0, delroute 0 10.00 real 6.67 user 31.74 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 901835, close 408562, bind 0, connect 357560, delroute 0 10.00 real 2.64 user 26.33 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 996613, close 369060, bind 204458, connect 152621, delroute 0 10.00 real 3.85 user 26.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 142657, close 104605, bind 185025, connect 150460, delroute 0 10.46 real 0.91 user 30.46 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1009094, close 207657, bind 303723, connect 243888, delroute 0 10.00 real 7.33 user 29.45 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 731672, close 346925, bind 119015, connect 463731, delroute 0 10.00 real 3.68 user 30.06 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 893390, close 311540, bind 349130, connect 214581, delroute 0 10.00 real 4.51 user 30.37 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 845363, close 352282, bind 0, connect 233512, delroute 240575 10.01 real 4.00 user 32.42 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 1960495, close 956019, bind 804641, connect 0, delroute 0 10.01 real 5.31 user 34.66 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 1956324, close 215394, bind 0, connect 235500, delroute 0 10.01 real 8.28 user 31.92 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 1939853, close 602287, bind 299586, connect 233986, delroute 0 10.01 real 6.53 user 33.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 1839520, close 526168, bind 306425, connect 296402, delroute 0 10.40 real 6.30 user 33.11 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 1575709, close 1081798, bind 451352, connect 392340, delroute 0 10.00 real 6.79 user 33.17 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 1967893, close 220735, bind 49790, connect 219069, delroute 0 10.01 real 7.93 user 32.18 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 1838257, close 466765, bind 361974, connect 285577, delroute 0 10.01 real 6.34 user 33.56 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 1942561, close 91450, bind 0, connect 104393, delroute 111845 10.01 real 8.65 user 31.18 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1900289, close 114121, bind 473235, connect 0, delroute 0 10.00 real 7.64 user 32.48 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1344471, close 158053, bind 0, connect 523505, delroute 0 10.00 real 6.56 user 31.24 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1791598, close 56255, bind 110631, connect 79256, delroute 0 10.00 real 8.48 user 31.24 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 82267, close 17310, bind 89731, connect 68117, delroute 0 10.34 real 0.49 user 32.93 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1807790, close 34396, bind 80154, connect 55761, delroute 0 10.01 real 9.38 user 30.46 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 1388615, close 145732, bind 92134, connect 481779, delroute 0 0m10.00s real 0m06.81s user 0m31.73s 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 1784576, close 61241, bind 127844, connect 89472, delroute 0 0m10.00s real 0m08.70s user 0m30.81s 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 246811, close 147909, bind 0, connect 23238, delroute 115695 10.00 real 0.96 user 19.52 sys ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1149525, close 148047, bind 296878, connect 0, delroute 0 10.01 real 7.12 user 31.23 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 965239, close 309259, bind 0, connect 268468, delroute 0 10.00 real 2.22 user 23.68 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 962597, close 384459, bind 211635, connect 150295, delroute 0 10.00 real 2.27 user 24.70 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 153273, close 117753, bind 216186, connect 167216, delroute 0 10.50 real 1.03 user 29.87 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 916657, close 277213, bind 353442, connect 294851, delroute 0 10.00 real 7.50 user 28.71 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 925974, close 326282, bind 60105, connect 276319, delroute 0 0m10.01s real 0m02.44s user 0m24.03s 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 1014554, close 322489, bind 180618, connect 127087, delroute 0 0m10.01s real 0m02.43s user 0m24.36s 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 177472, close 107873, bind 0, connect 1725, delroute 120351 10.00 real 0.80 user 17.62 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 1527418, close 381267, bind 698230, connect 0, delroute 0 10.01 real 5.27 user 34.80 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 1594343, close 34193, bind 0, connect 93105, delroute 0 10.01 real 8.69 user 31.21 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 1627522, close 60248, bind 68988, connect 58704, delroute 0 10.01 real 8.49 user 31.45 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 1572070, close 97760, bind 148165, connect 122834, delroute 0 10.35 real 8.24 user 31.15 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 1562783, close 112474, bind 108517, connect 89846, delroute 0 10.00 real 8.69 user 31.20 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 1537967, close 33133, bind 17734, connect 83917, delroute 0 10.00 real 8.11 user 31.83 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 1617878, close 71107, bind 85275, connect 66815, delroute 0 10.00 real 8.40 user 31.56 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 195363, close 133776, bind 0, connect 3489, delroute 121118 10.00 real 0.94 user 18.46 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 222692 1.01 real 0.20 user 0.83 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 16435 1.00 real 0.01 user 0.99 sys