START sys/netinet/bindconnect 2024-11-17T09:37:34Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || sysctl kern.maxfiles=110000 kern.maxfiles: 7030 -> 110000 ==== run-default ==== cc -O2 -pipe -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 535061, close 268168, bind 979564, connect 640477, delroute 0 10.01 real 1.39 user 28.62 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1377705, close 64227, bind 4219524, connect 0, delroute 0 10.01 real 2.96 user 36.96 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 2218902, close 26717, bind 0, connect 435538, delroute 0 10.01 real 1.02 user 38.92 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 2371197, close 30493, bind 300800, connect 122185, delroute 0 10.01 real 1.12 user 38.87 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 422462, close 8511, bind 53830, connect 33239, delroute 0 10.52 real 0.26 user 21.40 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2208210, close 17731, bind 90055, connect 56174, delroute 0 10.01 real 1.10 user 38.94 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 2379858, close 6951, bind 15835, connect 63243, delroute 0 10.01 real 1.17 user 38.82 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.61.26/24 count: socket 2128436, close 18523, bind 57976, connect 36645, delroute 0 10.01 real 0.85 user 39.16 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.61.26/24 count: socket 1882259, close 22315, bind 0, connect 134732, delroute 18830 10.01 real 1.10 user 38.04 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 653646, close 152215, bind 991197, connect 0, delroute 0 10.01 real 1.01 user 38.31 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 706893, close 33153, bind 0, connect 802946, delroute 0 10.01 real 1.19 user 37.34 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 716668, close 46176, bind 383827, connect 294275, delroute 0 10.01 real 1.12 user 37.27 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 158053, close 15712, bind 58529, connect 44005, delroute 0 11.06 real 0.21 user 17.07 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 661813, close 63736, bind 275910, connect 230282, delroute 0 10.01 real 0.99 user 37.49 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 652386, close 45177, bind 53855, connect 311552, delroute 0 10.01 real 1.05 user 38.25 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.61.26/24 count: socket 564964, close 96543, bind 212841, connect 214132, delroute 0 10.01 real 0.85 user 38.52 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.61.26/24 count: socket 691238, close 25413, bind 0, connect 317345, delroute 31309 10.01 real 1.05 user 37.32 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1552266, close 267511, bind 1392256, connect 0, delroute 0 10.01 real 1.53 user 38.50 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1884578, close 10162, bind 0, connect 85176, delroute 0 10.01 real 1.17 user 38.85 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1921672, close 28240, bind 58516, connect 33101, delroute 0 10.01 real 1.02 user 38.82 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1826397, close 29992, bind 96410, connect 64937, delroute 0 10.37 real 1.26 user 38.55 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1889191, close 11758, bind 58945, connect 36577, delroute 0 10.00 real 0.94 user 38.90 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.61.26/24 count: socket 1979989, close 8387, bind 11035, connect 45132, delroute 0 10.01 real 1.20 user 38.73 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.61.26/24 count: socket 1880723, close 25668, bind 56720, connect 33751, delroute 0 10.01 real 0.94 user 39.08 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.61.26/24 count: socket 2218114, close 18069, bind 0, connect 88122, delroute 21587 10.01 real 0.98 user 38.72 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1477451, close 76850, bind 2622439, connect 0, delroute 0 10.01 real 2.10 user 37.86 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1887507, close 7681, bind 0, connect 87286, delroute 0 10.01 real 1.18 user 38.83 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1977953, close 5498, bind 31201, connect 20972, delroute 0 10.01 real 0.98 user 39.17 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1151378, close 5888, bind 40104, connect 39276, delroute 0 10.45 real 0.65 user 31.46 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 2127508, close 8253, bind 57052, connect 41013, delroute 0 10.00 real 1.08 user 38.74 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 1582629, close 21743, bind 56871, connect 209153, delroute 0 0m10.01s real 0m00.92s user 0m38.84s 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:61::26/64 count: socket 1732294, close 32213, bind 155524, connect 105109, delroute 0 0m10.01s real 0m00.90s user 0m38.80s 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:61::26/64 count: socket 1094754, close 48106, bind 0, connect 274942, delroute 37622 0m10.01s real 0m01.11s user 0m35.90s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 671434, close 248278, bind 1592466, connect 0, delroute 0 10.01 real 1.14 user 38.03 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 642329, close 54808, bind 0, connect 1061251, delroute 0 10.01 real 1.35 user 36.63 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 597380, close 89004, bind 633151, connect 479696, delroute 0 10.01 real 0.93 user 36.39 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 108698, close 33129, bind 126912, connect 110167, delroute 0 11.00 real 0.22 user 16.70 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 544390, close 119142, bind 562480, connect 511628, delroute 0 10.00 real 0.94 user 36.34 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 673556, close 23985, bind 92499, connect 449392, delroute 0 0m10.01s real 0m00.98s user 0m38.14s 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:61::26/64 count: socket 646594, close 41369, bind 308065, connect 300013, delroute 0 0m10.01s real 0m01.07s user 0m37.99s 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:61::26/64 count: socket 667737, close 27675, bind 0, connect 343681, delroute 23485 0m10.01s real 0m00.98s user 0m36.63s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1119602, close 377047, bind 1022530, connect 0, delroute 0 10.01 real 1.04 user 38.85 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1400995, close 10758, bind 0, connect 103575, delroute 0 10.01 real 0.95 user 39.05 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1571243, close 12579, bind 50168, connect 36173, delroute 0 10.01 real 0.93 user 38.96 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 1365269, close 14378, bind 68387, connect 46427, delroute 0 10.44 real 0.90 user 39.33 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 1424232, close 14951, bind 62856, connect 32657, delroute 0 10.01 real 0.91 user 39.02 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:61::26/64 count: socket 1227281, close 30694, bind 62702, connect 228620, delroute 0 0m10.01s real 0m01.17s user 0m38.60s 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:61::26/64 count: socket 1272197, close 47875, bind 198896, connect 137568, delroute 0 0m10.01s real 0m00.92s user 0m38.62s 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:61::26/64 count: socket 1418426, close 27543, bind 0, connect 173395, delroute 25201 0m10.01s real 0m01.07s user 0m37.49s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.61.26/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 128569 1.00 real 0.07 user 0.92 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:61::26/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 65431 0m01.01s real 0m00.02s user 0m00.97s system PASS sys/netinet/bindconnect Duration 8m20.33s