START sys/netinet/bindconnect 2025-01-03T18:21:13Z ==== 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 513769, close 757227, bind 1696654, connect 1379361, delroute 0 10.00 real 2.95 user 27.95 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1134307, close 441354, bind 7754112, connect 0, delroute 0 10.01 real 7.94 user 71.75 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 394646, close 17564, bind 0, connect 1918492, delroute 0 10.01 real 1.81 user 70.14 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 121766, close 100733, bind 2192964, connect 1101265, delroute 0 10.01 real 2.55 user 65.87 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74675, close 81830, bind 876373, connect 631334, delroute 0 10.13 real 1.14 user 39.79 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 114171, close 322137, bind 2563464, connect 1682406, delroute 0 10.01 real 3.70 user 65.70 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 25142, close 22400, bind 514884, connect 1912966, delroute 0 10.01 real 2.13 user 72.00 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 91281, close 77895, bind 2056823, connect 1133665, delroute 0 10.01 real 2.48 user 66.52 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 36790, close 38013, bind 0, connect 1629898, delroute 17911 10.01 real 1.96 user 70.71 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 576133, close 364102, bind 7229372, connect 0, delroute 0 10.01 real 6.62 user 71.83 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 365398, close 228083, bind 0, connect 3218197, delroute 0 10.01 real 3.27 user 62.72 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 354509, close 230976, bind 1858994, connect 1957576, delroute 0 10.01 real 3.59 user 64.84 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79650, close 84391, bind 637975, connect 598833, delroute 0 10.56 real 0.90 user 29.94 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 282049, close 376483, bind 2190306, connect 2284571, delroute 0 10.00 real 4.06 user 63.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 351390, close 167656, bind 652779, connect 3614035, delroute 0 10.01 real 4.42 user 72.52 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 164222, close 143035, bind 2671700, connect 1783728, delroute 0 10.01 real 3.86 user 72.41 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 355132, close 207747, bind 0, connect 2402804, delroute 182638 10.01 real 2.71 user 68.17 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 529845, close 364181, bind 8765032, connect 0, delroute 0 10.01 real 7.60 user 72.12 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7054, close 7678, bind 0, connect 1651037, delroute 0 10.01 real 1.33 user 68.25 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 72634, close 31562, bind 1812421, connect 894338, delroute 0 10.01 real 1.94 user 64.21 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 131951, close 106835, bind 2759931, connect 1442971, delroute 0 10.20 real 3.59 user 63.98 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 51394, close 158625, bind 2067252, connect 1204548, delroute 0 10.01 real 2.36 user 63.63 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 8209, close 9581, bind 419057, connect 1442667, delroute 0 10.00 real 1.53 user 70.43 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 39564, close 33036, bind 1806054, connect 892614, delroute 0 10.01 real 2.23 user 64.18 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 48982, close 14502, bind 0, connect 1241339, delroute 7886 10.01 real 1.31 user 69.82 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 919665, close 301622, bind 8738465, connect 0, delroute 0 10.01 real 7.59 user 72.38 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11220, close 12724, bind 0, connect 1772832, delroute 0 10.01 real 1.36 user 68.67 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 82320, close 57626, bind 1837166, connect 959505, delroute 0 10.01 real 1.89 user 67.16 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74333, close 90163, bind 1211918, connect 762571, delroute 0 10.13 real 1.50 user 44.57 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 89656, close 362377, bind 2423259, connect 1564811, delroute 0 10.00 real 3.36 user 65.38 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 12328, close 15438, bind 441786, connect 1571580, delroute 0 0m10.00s real 0m01.84s user 1m12.24s 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 63708, close 53858, bind 1739023, connect 890570, delroute 0 0m10.01s real 0m01.97s user 1m06.54s 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 23882, close 30503, bind 0, connect 1366748, delroute 11427 0m10.01s real 0m01.45s user 1m11.13s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 577927, close 360509, bind 7158106, connect 0, delroute 0 10.01 real 6.74 user 71.78 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 321697, close 207979, bind 0, connect 2914723, delroute 0 10.01 real 2.94 user 61.80 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 316900, close 212476, bind 1702580, connect 1797384, delroute 0 10.01 real 3.22 user 64.08 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79649, close 92442, bind 696363, connect 666647, delroute 0 10.60 real 1.12 user 29.91 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 243706, close 407207, bind 2069094, connect 2193609, delroute 0 10.01 real 3.99 user 62.76 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 499702, close 236943, bind 559134, connect 3460715, delroute 0 0m10.00s real 0m04.13s user 1m10.97s 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 462931, close 274940, bind 2233670, connect 2233251, delroute 0 0m10.01s real 0m04.42s user 1m09.88s 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 299284, close 183348, bind 0, connect 2158644, delroute 127875 0m10.01s real 0m02.49s user 1m05.20s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 571869, close 342399, bind 8750284, connect 0, delroute 0 10.01 real 7.81 user 72.04 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 7117, close 10311, bind 0, connect 1666478, delroute 0 10.01 real 1.30 user 67.59 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 40426, close 35271, bind 1804964, connect 873027, delroute 0 10.01 real 2.12 user 63.63 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128334, close 107556, bind 2757539, connect 1429982, delroute 0 10.21 real 2.77 user 64.00 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 59702, close 233736, bind 2215581, connect 1325148, delroute 0 10.00 real 2.94 user 62.58 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 9759, close 9066, bind 427476, connect 1417269, delroute 0 0m10.00s real 0m01.47s user 1m10.65s 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 40281, close 34757, bind 1792633, connect 877060, delroute 0 0m10.01s real 0m02.05s user 1m04.52s 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 16649, close 21215, bind 0, connect 1272925, delroute 7985 0m10.01s real 0m01.25s user 1m09.39s 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 338110 1.00 real 0.16 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 172836 0m01.00s real 0m00.06s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.88s