START sys/netinet/bindconnect 2024-12-17T05:11:10Z ==== 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 402675, close 364318, bind 1218137, connect 1017888, delroute 0 10.00 real 2.27 user 27.73 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1009015, close 371013, bind 7729950, connect 0, delroute 0 10.01 real 7.08 user 72.64 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 19962, close 14334, bind 0, connect 1979522, delroute 0 10.01 real 1.41 user 69.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 85276, close 58300, bind 1959902, connect 1166921, delroute 0 10.01 real 2.48 user 66.39 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 63484, close 49826, bind 453778, connect 314964, delroute 0 10.10 real 0.68 user 33.49 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 83281, close 155968, bind 2238784, connect 1348137, delroute 0 10.00 real 3.05 user 66.17 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 51392, close 14329, bind 488418, connect 1764977, delroute 0 10.01 real 1.89 user 72.03 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 83674, close 57678, bind 1997334, connect 1087906, delroute 0 10.01 real 2.51 user 66.65 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 58079, close 27520, bind 0, connect 1484660, delroute 17104 10.01 real 1.37 user 72.17 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 650243, close 461006, bind 2677119, connect 0, delroute 0 10.01 real 2.49 user 66.85 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 358860, close 365806, bind 0, connect 1873359, delroute 0 10.01 real 1.77 user 61.52 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 375138, close 424826, bind 1000319, connect 990517, delroute 0 10.01 real 1.79 user 62.94 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103369, close 126671, bind 418783, connect 424546, delroute 0 10.54 real 0.73 user 24.40 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 309485, close 993813, bind 1796255, connect 1823918, delroute 0 10.00 real 3.83 user 62.65 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 361644, close 574587, bind 337946, connect 2103342, delroute 0 10.01 real 2.64 user 70.68 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 372175, close 659482, bind 1117251, connect 1178115, delroute 0 10.01 real 2.53 user 68.24 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 349231, close 290509, bind 0, connect 1753629, delroute 148479 10.01 real 1.91 user 67.97 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 458729, close 246138, bind 8719883, connect 0, delroute 0 10.01 real 7.66 user 72.16 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6069, close 3715, bind 0, connect 1456247, delroute 0 10.01 real 1.24 user 68.34 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 33998, close 20808, bind 1753242, connect 834766, delroute 0 10.01 real 1.83 user 64.13 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125516, close 93227, bind 2671246, connect 1383473, delroute 0 10.20 real 3.17 user 64.27 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 35553, close 71416, bind 1863654, connect 979265, delroute 0 10.01 real 2.12 user 62.78 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 6513, close 5085, bind 398037, connect 1320865, delroute 0 10.00 real 1.45 user 70.41 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 36721, close 22851, bind 1758110, connect 857155, delroute 0 10.01 real 2.08 user 64.92 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 14878, close 8828, bind 0, connect 1142962, delroute 7671 10.01 real 1.14 user 70.40 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 845536, close 241120, bind 8851972, connect 0, delroute 0 10.01 real 7.59 user 72.32 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10628, close 8553, bind 0, connect 1661041, delroute 0 10.01 real 1.47 user 70.01 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 58433, close 40229, bind 1793826, connect 912224, delroute 0 10.01 real 2.19 user 66.87 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72294, close 84822, bind 1170176, connect 723828, delroute 0 10.13 real 1.52 user 42.62 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 65362, close 167728, bind 2068599, connect 1208678, delroute 0 10.01 real 2.68 user 66.21 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 10193, close 9038, bind 440835, connect 1515927, delroute 0 0m10.01s real 0m01.68s user 1m13.11s 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 76198, close 37965, bind 1716369, connect 861196, delroute 0 0m10.01s real 0m02.08s user 1m06.73s 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 31560, close 17380, bind 0, connect 1256380, delroute 10018 0m10.00s real 0m01.27s user 1m11.67s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 643780, close 472979, bind 2658480, connect 0, delroute 0 10.01 real 2.20 user 67.70 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 299659, close 346795, bind 0, connect 1779762, delroute 0 10.01 real 1.98 user 59.86 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 326026, close 380505, bind 926937, connect 934752, delroute 0 10.01 real 1.74 user 61.61 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100991, close 131677, bind 458547, connect 477315, delroute 0 10.58 real 0.75 user 25.92 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 265484, close 1099177, bind 1801213, connect 1929121, delroute 0 10.00 real 4.07 user 60.62 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 392589, close 440677, bind 355865, connect 2124384, delroute 0 0m10.00s real 0m02.55s user 1m08.71s 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 425406, close 489174, bind 1150240, connect 1147691, delroute 0 0m10.01s real 0m02.39s user 1m04.10s 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 296621, close 268186, bind 0, connect 1657292, delroute 100742 0m10.01s real 0m01.97s user 1m05.17s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 518715, close 235609, bind 8694262, connect 0, delroute 0 10.01 real 7.16 user 72.66 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 29230, close 4026, bind 0, connect 1450699, delroute 0 10.01 real 1.23 user 68.65 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36517, close 25874, bind 1745675, connect 825639, delroute 0 10.01 real 1.88 user 63.85 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 125252, close 102015, bind 2677192, connect 1402577, delroute 0 10.21 real 3.12 user 63.19 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 59815, close 94081, bind 1884658, connect 1012503, delroute 0 10.00 real 2.14 user 62.79 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 6436, close 5328, bind 402353, connect 1311127, delroute 0 0m10.00s real 0m01.47s user 1m10.26s 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 43392, close 22722, bind 1725198, connect 825089, delroute 0 0m10.01s real 0m01.93s user 1m04.29s 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 12500, close 9320, bind 0, connect 1138387, delroute 6554 0m10.01s real 0m00.99s user 1m10.00s 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 347517 1.00 real 0.16 user 0.84 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 177661 0m01.00s real 0m00.13s user 0m00.88s system PASS sys/netinet/bindconnect Duration 8m16.79s