START sys/netinet/bindconnect 2024-12-24T17:38:48Z ==== 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 519165, close 787204, bind 1742842, connect 1404509, delroute 0 10.00 real 2.92 user 28.93 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1033690, close 483370, bind 7717136, connect 0, delroute 0 10.01 real 7.53 user 72.49 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 28657, close 22521, bind 0, connect 2050179, delroute 0 10.01 real 1.74 user 69.00 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 99350, close 82556, bind 2081425, connect 1139307, delroute 0 10.01 real 2.55 user 66.14 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 74838, close 83985, bind 874428, connect 574687, delroute 0 10.13 real 1.20 user 40.52 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 147765, close 301709, bind 2543276, connect 1637290, delroute 0 10.00 real 3.65 user 66.19 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 118934, close 19945, bind 484938, connect 1794615, delroute 0 10.01 real 2.05 user 72.25 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 88580, close 77009, bind 2076041, connect 1145780, delroute 0 10.01 real 2.57 user 67.07 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 52296, close 37072, bind 0, connect 1542020, delroute 18451 10.01 real 1.50 user 70.87 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 646835, close 465740, bind 2706982, connect 0, delroute 0 10.01 real 2.71 user 67.29 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 357128, close 410860, bind 0, connect 1983172, delroute 0 10.01 real 1.96 user 62.93 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 372093, close 409665, bind 981554, connect 989451, delroute 0 10.01 real 1.78 user 63.38 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103621, close 124901, bind 407627, connect 421673, delroute 0 10.51 real 0.75 user 23.84 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 310826, close 1015876, bind 1813623, connect 1842937, delroute 0 10.00 real 3.89 user 62.25 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 357435, close 549553, bind 331928, connect 2037202, delroute 0 10.01 real 2.81 user 71.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 375480, close 605040, bind 1012873, connect 1078435, delroute 0 10.01 real 2.27 user 68.10 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 337737, close 240623, bind 0, connect 1659654, delroute 132626 10.01 real 1.94 user 64.47 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 515013, close 356389, bind 8944169, connect 0, delroute 0 10.01 real 7.56 user 72.11 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6293, close 5943, bind 0, connect 1580415, delroute 0 10.01 real 1.26 user 68.14 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36026, close 28971, bind 1818630, connect 872243, delroute 0 10.01 real 2.03 user 64.49 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127877, close 105079, bind 2814479, connect 1454793, delroute 0 10.20 real 3.11 user 63.69 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 47138, close 141160, bind 2063929, connect 1176184, delroute 0 10.00 real 2.27 user 62.99 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 24034, close 6150, bind 431874, connect 1398653, delroute 0 10.01 real 1.63 user 70.03 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 38371, close 29695, bind 1818677, connect 880942, delroute 0 10.01 real 2.22 user 64.60 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 16571, close 13651, bind 0, connect 1228195, delroute 7750 10.01 real 1.31 user 69.48 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 804863, close 306382, bind 9018817, connect 0, delroute 0 10.01 real 8.22 user 71.76 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10662, close 11801, bind 0, connect 1786780, delroute 0 10.01 real 1.20 user 69.60 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 78516, close 52554, bind 1890828, connect 978620, delroute 0 10.01 real 2.13 user 67.19 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 76021, close 97423, bind 1336223, connect 821063, delroute 0 10.15 real 1.58 user 46.04 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 84533, close 342501, bind 2444544, connect 1554876, delroute 0 10.00 real 3.14 user 66.25 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 11741, close 15395, bind 454310, connect 1606840, delroute 0 0m10.01s real 0m01.85s 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 56893, close 50781, bind 1801846, connect 909587, delroute 0 0m10.00s real 0m02.08s user 1m06.37s 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 26806, close 33641, bind 0, connect 1363685, delroute 12493 0m10.01s real 0m01.23s user 1m10.68s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 439197, close 493430, bind 2431503, connect 0, delroute 0 10.01 real 2.04 user 68.38 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 245340, close 346386, bind 0, connect 1675327, delroute 0 10.01 real 1.56 user 60.92 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 250086, close 407248, bind 858549, connect 899114, delroute 0 10.01 real 1.59 user 61.73 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103742, close 160243, bind 529361, connect 562334, delroute 0 10.61 real 0.85 user 29.99 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 217295, close 1306761, bind 1861303, connect 2055047, delroute 0 10.01 real 3.96 user 61.16 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 315223, close 433905, bind 319733, connect 1993110, delroute 0 0m10.00s real 0m02.59s user 1m09.01s 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 324149, close 501141, bind 1076410, connect 1101364, delroute 0 0m10.01s real 0m02.11s user 1m05.55s 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 242078, close 234211, bind 0, connect 1467667, delroute 82903 0m10.01s real 0m01.63s user 1m02.37s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 558394, close 345470, bind 8844090, connect 0, delroute 0 10.01 real 7.43 user 72.45 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6669, close 7645, bind 0, connect 1645739, delroute 0 10.01 real 1.34 user 68.40 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 40097, close 34194, bind 1844740, connect 875322, delroute 0 10.01 real 1.73 user 64.36 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127390, close 120351, bind 2839464, connect 1463052, delroute 0 10.20 real 3.42 user 64.21 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 56855, close 236751, bind 2189557, connect 1321269, delroute 0 10.00 real 2.65 user 63.29 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 20285, close 10033, bind 427426, connect 1427163, delroute 0 0m10.00s real 0m01.54s user 1m10.68s 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 37003, close 31175, bind 1810630, connect 867754, delroute 0 0m10.01s real 0m01.99s user 1m03.77s 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 16306, close 20420, bind 0, connect 1246643, delroute 7785 0m10.01s real 0m01.26s user 1m09.27s 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 265806 1.00 real 0.15 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 126077 0m01.00s real 0m00.09s user 0m00.93s system PASS sys/netinet/bindconnect Duration 8m16.82s