START sys/netinet/bindconnect 2024-12-28T05:50:09Z ==== setup-maxfiles ==== [[ $(sysctl -n kern.maxfiles) -ge 110000 ]] || 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 /usr/src/regress/sys/netinet/bindconnect/bindconnect.c cc -o bindconnect bindconnect.o -lpthread time ./bindconnect count: socket 435669, close 391914, bind 1243606, connect 1036375, delroute 0 10.01 real 2.11 user 28.33 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1057359, close 386092, bind 7175885, connect 0, delroute 0 10.00 real 7.11 user 72.33 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 21357, close 17363, bind 0, connect 2011351, delroute 0 10.01 real 1.94 user 68.96 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 220973, close 58986, bind 1830926, connect 1081631, delroute 0 10.01 real 2.47 user 66.40 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71453, close 73980, bind 850188, connect 570989, delroute 0 10.13 real 1.16 user 38.68 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 88442, close 169978, bind 2334948, connect 1437833, delroute 0 10.00 real 3.36 user 66.06 sys ==== run-inet-udp-localnet-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 92019, close 15014, bind 483844, connect 1806435, delroute 0 10.00 real 2.14 user 72.41 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.81.21/24 count: socket 82481, close 57331, bind 2017122, connect 1100492, delroute 0 10.01 real 2.68 user 66.55 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.81.21/24 count: socket 151432, close 25610, bind 0, connect 1506939, delroute 17657 10.01 real 1.63 user 71.90 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 573547, close 388197, bind 7145595, connect 0, delroute 0 10.01 real 6.36 user 71.90 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 381594, close 225751, bind 0, connect 3221429, delroute 0 10.00 real 3.05 user 63.16 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 356429, close 231556, bind 1862036, connect 1947645, delroute 0 10.01 real 3.66 user 64.16 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79789, close 90768, bind 643237, connect 591864, delroute 0 10.54 real 1.15 user 29.20 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 286845, close 387331, bind 2180644, connect 2272498, delroute 0 10.00 real 4.53 user 63.02 sys ==== run-inet-tcp-localnet-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 326597, close 153320, bind 664211, connect 3525093, delroute 0 10.01 real 4.45 user 73.00 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.81.21/24 count: socket 171838, close 155401, bind 2702968, connect 1784439, delroute 0 10.01 real 3.86 user 72.46 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.81.21/24 count: socket 372042, close 206567, bind 0, connect 2481138, delroute 191382 10.01 real 2.60 user 68.13 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 481241, close 263035, bind 8738582, connect 0, delroute 0 10.01 real 7.42 user 72.31 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6612, close 4309, bind 0, connect 1572289, delroute 0 10.01 real 1.36 user 67.96 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 39206, close 24639, bind 1770472, connect 843032, delroute 0 10.01 real 2.11 user 63.79 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130275, close 92837, bind 2674293, connect 1374647, delroute 0 10.20 real 3.46 user 63.72 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 37931, close 70084, bind 1885902, connect 997691, delroute 0 10.00 real 2.23 user 63.70 sys ==== run-inet-any-localnet-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -c 6 -N 10.188.81.21/24 count: socket 11460, close 4657, bind 404029, connect 1358980, delroute 0 10.00 real 1.75 user 70.30 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.81.21/24 count: socket 37840, close 25109, bind 1736385, connect 841795, delroute 0 10.01 real 2.22 user 64.52 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.81.21/24 count: socket 16105, close 10115, bind 0, connect 1209427, delroute 8135 10.01 real 1.24 user 69.47 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 814985, close 267268, bind 8672769, connect 0, delroute 0 10.01 real 7.42 user 72.30 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10711, close 9954, bind 0, connect 1721537, delroute 0 10.01 real 1.48 user 69.10 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 57612, close 41929, bind 1787945, connect 929437, delroute 0 10.01 real 2.30 user 66.99 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72078, close 83184, bind 1151353, connect 723034, delroute 0 10.15 real 1.48 user 43.65 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 64336, close 175036, bind 2056028, connect 1219970, delroute 0 10.00 real 2.77 user 65.82 sys ==== run-inet6-udp-localnet-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 11175, close 9652, bind 432056, connect 1522992, delroute 0 0m10.00s real 0m01.75s user 1m12.55s 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:81::21/64 count: socket 55191, close 38851, bind 1699845, connect 861308, delroute 0 0m10.01s real 0m02.09s user 1m06.47s 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:81::21/64 count: socket 21209, close 17578, bind 0, connect 1285503, delroute 10753 0m10.01s real 0m01.25s user 1m11.52s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 558822, close 382514, bind 7105049, connect 0, delroute 0 10.00 real 6.36 user 71.99 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 339012, close 207978, bind 0, connect 2966256, delroute 0 10.01 real 2.74 user 61.97 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 313923, close 215274, bind 1702857, connect 1813354, delroute 0 10.01 real 3.36 user 64.02 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79490, close 93046, bind 688630, connect 647390, delroute 0 10.60 real 1.21 user 31.15 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 247932, close 419714, bind 2098841, connect 2218139, delroute 0 10.01 real 4.28 user 62.56 sys ==== run-inet6-tcp-localnet-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 532119, close 227020, bind 575459, connect 3536985, delroute 0 0m10.00s real 0m04.21s user 1m11.58s 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:81::21/64 count: socket 466918, close 274001, bind 2242649, connect 2278326, delroute 0 0m10.00s real 0m04.50s user 1m09.93s 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:81::21/64 count: socket 300602, close 190558, bind 0, connect 2197511, delroute 132395 0m10.01s real 0m02.50s user 1m05.15s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 505325, close 243447, bind 8743207, connect 0, delroute 0 10.01 real 7.75 user 72.21 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6114, close 4482, bind 0, connect 1566349, delroute 0 10.01 real 1.24 user 68.60 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36754, close 25075, bind 1757362, connect 834389, delroute 0 10.01 real 1.95 user 63.68 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127765, close 103626, bind 2701034, connect 1405208, delroute 0 10.21 real 3.21 user 63.57 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 37761, close 84893, bind 1905529, connect 1008491, delroute 0 10.00 real 2.25 user 63.11 sys ==== run-inet6-any-localnet-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -c 6 -N fdd7:e83e:66bc:81::21/64 count: socket 9550, close 4841, bind 408029, connect 1359057, delroute 0 0m10.00s real 0m01.73s user 1m09.75s 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:81::21/64 count: socket 36659, close 24565, bind 1719945, connect 820680, delroute 0 0m10.00s real 0m01.82s user 1m04.73s 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:81::21/64 count: socket 14263, close 10276, bind 0, connect 1191049, delroute 7514 0m10.01s real 0m01.25s user 1m09.48s system ==== cleanup-inet-delete ==== time ./bindconnect -f inet -s 0 -o 0 -b 0 -c 0 -d 1 -N 10.188.81.21/24 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 340238 1.00 real 0.09 user 0.88 sys ==== cleanup-inet6-delete ==== time ./bindconnect -f inet6 -s 0 -o 0 -b 0 -c 0 -d 1 -N fdd7:e83e:66bc:81::21/64 -t 1 count: socket 0, close 0, bind 0, connect 0, delroute 171153 0m01.00s real 0m00.10s user 0m00.90s system PASS sys/netinet/bindconnect Duration 8m16.87s