START sys/netinet/bindconnect 2024-10-25T17:04:29Z ==== 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 436114, close 388248, bind 1274353, connect 1048726, delroute 0 10.01 real 2.16 user 28.40 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 828526, close 417568, bind 7940593, connect 0, delroute 0 10.00 real 7.86 user 71.81 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 31911, close 14134, bind 0, connect 2034656, delroute 0 10.01 real 1.71 user 69.90 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 85068, close 58798, bind 2121363, connect 1200330, delroute 0 10.01 real 2.94 user 67.48 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71305, close 74330, bind 878470, connect 593001, delroute 0 10.12 real 1.28 user 38.72 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 82449, close 152491, bind 2317096, connect 1423493, delroute 0 10.01 real 3.09 user 65.84 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 21198, close 16625, bind 522820, connect 1922264, delroute 0 10.01 real 2.24 user 72.54 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 86724, close 59136, bind 2084428, connect 1153776, delroute 0 10.01 real 2.65 user 67.13 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 32688, close 24517, bind 0, connect 1583969, delroute 17085 10.01 real 1.60 user 71.87 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 662675, close 480383, bind 2700950, connect 0, delroute 0 10.01 real 2.30 user 67.72 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 363238, close 407829, bind 0, connect 1973725, delroute 0 10.01 real 2.21 user 62.12 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 377002, close 430317, bind 1001156, connect 1011666, delroute 0 10.01 real 1.99 user 61.77 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103071, close 127084, bind 404641, connect 433119, delroute 0 10.53 real 0.80 user 23.43 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 316072, close 1029046, bind 1836476, connect 1893967, delroute 0 10.00 real 3.87 user 62.38 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 361391, close 555124, bind 325074, connect 2046892, delroute 0 10.01 real 2.73 user 71.20 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 360723, close 664173, bind 1089664, connect 1183196, delroute 0 10.01 real 2.22 user 68.15 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 357622, close 298016, bind 0, connect 1771378, delroute 146260 10.01 real 2.00 user 67.65 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 442004, close 269736, bind 8868258, connect 0, delroute 0 10.01 real 7.70 user 72.13 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6813, close 4484, bind 0, connect 1608214, delroute 0 10.01 real 1.25 user 68.23 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 55942, close 23056, bind 1765724, connect 851307, delroute 0 10.01 real 1.78 user 64.44 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128084, close 89848, bind 2724991, connect 1408777, delroute 0 10.20 real 3.08 user 64.42 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 36757, close 73601, bind 1892132, connect 1021246, delroute 0 10.00 real 2.22 user 63.40 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 7218, close 5564, bind 417447, connect 1399878, delroute 0 10.01 real 1.71 user 70.02 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 37468, close 23773, bind 1766250, connect 861918, delroute 0 10.00 real 1.89 user 64.94 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 15658, close 10408, bind 0, connect 1210891, delroute 8148 10.01 real 1.11 user 70.16 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 763659, close 279550, bind 8920880, connect 0, delroute 0 10.01 real 8.15 user 71.56 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 9910, close 7884, bind 0, connect 1708443, delroute 0 10.01 real 1.35 user 69.76 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 85425, close 38603, bind 1793216, connect 921052, delroute 0 10.01 real 2.14 user 66.88 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71976, close 86084, bind 1192839, connect 751840, delroute 0 10.13 real 1.28 user 44.79 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 61293, close 175117, bind 2093143, connect 1245652, delroute 0 10.00 real 2.57 user 66.01 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 10080, close 8732, bind 428286, connect 1515497, delroute 0 0m10.01s real 0m01.78s user 1m12.04s 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 52093, close 37167, bind 1703810, connect 865294, delroute 0 0m10.01s real 0m02.04s user 1m06.75s 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 20941, close 17006, bind 0, connect 1294667, delroute 10468 0m10.01s real 0m01.39s user 1m11.56s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 647459, close 475097, bind 2717015, connect 0, delroute 0 10.01 real 2.51 user 67.22 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 305330, close 348672, bind 0, connect 1810972, delroute 0 10.01 real 2.13 user 60.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 325586, close 370403, bind 903435, connect 943522, delroute 0 10.01 real 1.84 user 61.56 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101639, close 133115, bind 458397, connect 493496, delroute 0 10.55 real 0.84 user 25.88 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 266558, close 1090836, bind 1794591, connect 1919808, delroute 0 10.01 real 3.76 user 61.05 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 395535, close 431668, bind 344063, connect 2110199, delroute 0 0m10.01s real 0m02.63s user 1m08.37s 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 426369, close 488768, bind 1129909, connect 1171521, delroute 0 0m10.01s real 0m02.14s user 1m05.72s 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 299214, close 252805, bind 0, connect 1630980, delroute 102189 0m10.00s real 0m02.09s user 1m04.45s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 498082, close 253500, bind 8851716, connect 0, delroute 0 10.00 real 8.07 user 71.92 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5828, close 3814, bind 0, connect 1574480, delroute 0 10.01 real 1.41 user 68.67 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36186, close 23779, bind 1765694, connect 831861, delroute 0 10.01 real 2.12 user 63.48 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126764, close 100303, bind 2727651, connect 1427468, delroute 0 10.21 real 3.32 user 63.58 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 36822, close 85476, bind 1905672, connect 1018429, delroute 0 10.00 real 2.37 user 62.69 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 6407, close 4828, bind 415376, connect 1380299, delroute 0 0m10.00s real 0m01.50s user 1m10.43s 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 34029, close 22373, bind 1757622, connect 845744, delroute 0 0m10.00s real 0m01.89s user 1m04.92s 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 13457, close 9114, bind 0, connect 1175794, delroute 7026 0m10.00s real 0m01.12s user 1m09.99s 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 348022 1.00 real 0.20 user 0.83 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 175821 0m01.00s real 0m00.05s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.76s