START sys/netinet/bindconnect 2024-11-24T02:32:08Z ==== 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 270731, close 194280, bind 364338, connect 293642, delroute 0 10.03 real 1.13 user 25.48 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 652403, close 52036, bind 1796467, connect 0, delroute 0 10.04 real 2.10 user 37.89 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 834660, close 3457, bind 0, connect 99976, delroute 0 10.04 real 1.00 user 39.12 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 848031, close 8486, bind 81408, connect 60568, delroute 0 10.03 real 1.19 user 38.75 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72420, close 23007, bind 202935, connect 157186, delroute 0 11.04 real 0.56 user 22.73 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 840381, close 9191, bind 60197, connect 54463, delroute 0 10.03 real 0.98 user 38.50 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 889665, close 2110, bind 9544, connect 39320, delroute 0 10.03 real 1.04 user 39.12 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.51.25/24 count: socket 874096, close 4497, bind 44073, connect 38409, delroute 0 10.03 real 1.04 user 38.92 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.51.25/24 count: socket 783896, close 11554, bind 0, connect 86249, delroute 8776 10.05 real 1.03 user 38.61 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 481583, close 76219, bind 1055161, connect 0, delroute 0 10.03 real 1.23 user 38.17 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 421846, close 30717, bind 0, connect 608816, delroute 0 10.03 real 1.37 user 36.53 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 375467, close 52373, bind 487753, connect 247225, delroute 0 10.06 real 1.31 user 36.00 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 90898, close 94860, bind 322785, connect 342295, delroute 0 11.80 real 0.82 user 27.27 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 386467, close 91126, bind 376594, connect 270209, delroute 0 10.03 real 1.41 user 35.50 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 395342, close 37218, bind 85898, connect 350916, delroute 0 10.07 real 1.33 user 37.87 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.51.25/24 count: socket 337781, close 83716, bind 157610, connect 175424, delroute 0 10.07 real 1.16 user 37.96 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.51.25/24 count: socket 404631, close 30629, bind 0, connect 212406, delroute 21573 10.05 real 1.09 user 37.14 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 587084, close 129836, bind 1033256, connect 0, delroute 0 10.04 real 1.37 user 38.61 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 843772, close 4251, bind 0, connect 74725, delroute 0 10.03 real 1.07 user 39.07 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 816109, close 11939, bind 78694, connect 81844, delroute 0 10.04 real 0.95 user 39.00 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 596564, close 39755, bind 331624, connect 275325, delroute 0 11.58 real 1.35 user 37.33 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 801157, close 29556, bind 93570, connect 77647, delroute 0 10.07 real 0.91 user 38.21 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.51.25/24 count: socket 859850, close 3955, bind 9969, connect 53319, delroute 0 10.05 real 0.77 user 39.38 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.51.25/24 count: socket 820555, close 10799, bind 78013, connect 65828, delroute 0 10.09 real 1.07 user 39.04 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.51.25/24 count: socket 862677, close 13975, bind 0, connect 49920, delroute 18262 10.03 real 1.06 user 39.07 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 691101, close 20981, bind 1648741, connect 0, delroute 0 10.04 real 1.60 user 38.35 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 812911, close 2174, bind 0, connect 76877, delroute 0 10.07 real 1.02 user 38.98 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 815594, close 5008, bind 59168, connect 49253, delroute 0 10.04 real 1.10 user 38.92 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 70702, close 19903, bind 183916, connect 144467, delroute 0 10.96 real 0.56 user 23.88 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 807507, close 11998, bind 69410, connect 52826, delroute 0 10.03 real 1.10 user 38.33 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 368819, close 14546, bind 86388, connect 310799, delroute 0 0m10.04s real 0m01.34s user 0m37.99s 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:51::25/64 count: socket 356344, close 34610, bind 315212, connect 212586, delroute 0 0m10.03s real 0m01.11s user 0m36.24s 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:51::25/64 count: socket 205408, close 21636, bind 0, connect 307528, delroute 23939 0m10.03s real 0m00.92s user 0m36.52s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 446162, close 165234, bind 1439346, connect 0, delroute 0 10.03 real 1.64 user 37.40 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 248659, close 71203, bind 0, connect 680102, delroute 0 10.02 real 1.21 user 32.04 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 230063, close 94238, bind 433546, connect 308436, delroute 0 10.05 real 1.17 user 32.97 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 84242, close 137580, bind 498338, connect 486063, delroute 0 11.38 real 1.19 user 26.55 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 226597, close 195840, bind 515766, connect 393663, delroute 0 10.06 real 1.49 user 32.66 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 446914, close 17714, bind 258236, connect 647034, delroute 0 0m10.04s real 0m01.67s user 0m36.95s 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:51::25/64 count: socket 420073, close 33616, bind 550438, connect 297330, delroute 0 0m10.05s real 0m01.42s user 0m36.86s 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:51::25/64 count: socket 346445, close 35901, bind 0, connect 307085, delroute 18951 0m10.03s real 0m00.96s user 0m35.62s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 427003, close 34198, bind 1248805, connect 0, delroute 0 10.06 real 1.43 user 38.53 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 630273, close 3233, bind 0, connect 65639, delroute 0 10.03 real 0.92 user 39.08 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 614523, close 8979, bind 66565, connect 69453, delroute 0 10.08 real 0.81 user 39.38 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 403587, close 43745, bind 321232, connect 301063, delroute 0 11.71 real 1.20 user 37.42 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 572633, close 15877, bind 87317, connect 84024, delroute 0 10.03 real 0.88 user 38.35 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:51::25/64 count: socket 464325, close 18669, bind 64458, connect 294591, delroute 0 0m10.12s real 0m01.36s user 0m38.82s 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:51::25/64 count: socket 384027, close 39958, bind 325705, connect 313613, delroute 0 0m10.03s real 0m01.22s user 0m38.54s 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:51::25/64 count: socket 548293, close 10462, bind 0, connect 107512, delroute 13621 0m10.05s real 0m01.05s user 0m38.36s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.51.25/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 53486 1.03 real 0.09 user 0.95 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:51::25/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 25021 0m01.03s real 0m00.04s user 0m00.99s system PASS sys/netinet/bindconnect Duration 8m43.68s