START sys/netinet/bindconnect 2025-01-03T05:18:54Z ==== 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 522075, close 756085, bind 1707194, connect 1382407, delroute 0 10.00 real 2.72 user 28.03 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1017518, close 547200, bind 7684505, connect 0, delroute 0 10.01 real 7.84 user 71.99 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 92708, close 19888, bind 0, connect 2036603, delroute 0 10.01 real 1.72 user 69.97 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 161559, close 87174, bind 2067369, connect 1124901, delroute 0 10.01 real 2.69 user 66.27 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75364, close 85352, bind 879536, connect 623582, delroute 0 10.13 real 1.25 user 39.53 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 111983, close 332624, bind 2606223, connect 1691132, delroute 0 10.00 real 3.67 user 65.72 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 21547, close 23762, bind 528020, connect 1930483, delroute 0 10.01 real 2.08 user 72.18 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 94689, close 78511, bind 2079306, connect 1149543, delroute 0 10.01 real 2.58 user 66.64 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 37296, close 39981, bind 0, connect 1652289, delroute 18268 10.01 real 1.54 user 72.01 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 575205, close 372111, bind 7259247, connect 0, delroute 0 10.01 real 6.33 user 72.15 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 383462, close 222020, bind 0, connect 3251393, delroute 0 10.01 real 3.25 user 63.26 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 352519, close 224175, bind 1898333, connect 1998446, delroute 0 10.01 real 3.60 user 64.21 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 78724, close 84978, bind 636030, connect 585880, delroute 0 10.55 real 1.04 user 29.66 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 285744, close 366386, bind 2174336, connect 2266386, delroute 0 10.00 real 4.18 user 63.77 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 364787, close 153432, bind 669731, connect 3588326, delroute 0 10.01 real 4.34 user 72.92 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 161568, close 144027, bind 2681935, connect 1775094, delroute 0 10.01 real 3.89 user 72.07 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 368673, close 202636, bind 0, connect 2476600, delroute 186161 10.01 real 2.68 user 68.57 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 554300, close 366022, bind 8864573, connect 0, delroute 0 10.01 real 8.11 user 71.79 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6411, close 5670, bind 0, connect 1624697, delroute 0 10.01 real 1.38 user 67.82 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38296, close 30284, bind 1800866, connect 879125, delroute 0 10.01 real 2.10 user 64.16 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128678, close 103225, bind 2714949, connect 1402610, delroute 0 10.19 real 3.08 user 64.46 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 52417, close 168081, bind 2090692, connect 1238759, delroute 0 10.00 real 2.62 user 63.53 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 7916, close 7747, bind 425334, connect 1435172, delroute 0 10.00 real 1.74 user 69.93 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 38772, close 30208, bind 1799570, connect 888028, delroute 0 10.01 real 1.92 user 64.68 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 16790, close 15436, bind 0, connect 1259798, delroute 8292 10.01 real 1.26 user 70.64 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 889750, close 333011, bind 8806424, connect 0, delroute 0 10.01 real 8.08 user 71.90 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 11069, close 13402, bind 0, connect 1819312, delroute 0 10.01 real 1.75 user 68.79 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 61949, close 55298, bind 1870082, connect 980451, delroute 0 10.01 real 2.16 user 66.96 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75204, close 92543, bind 1260371, connect 780906, delroute 0 10.14 real 1.62 user 45.36 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 86049, close 340818, bind 2410925, connect 1538994, delroute 0 10.00 real 3.13 user 65.44 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 18787, close 15132, bind 449868, connect 1600523, delroute 0 0m10.00s real 0m01.86s user 1m12.09s 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 65931, close 53999, bind 1782699, connect 910620, delroute 0 0m10.01s real 0m02.03s user 1m06.77s 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 25423, close 23907, bind 0, connect 1346645, delroute 10363 0m10.01s real 0m01.47s user 1m11.38s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 557161, close 374612, bind 7238182, connect 0, delroute 0 10.01 real 6.44 user 72.04 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 339329, close 202111, bind 0, connect 3052374, delroute 0 10.01 real 3.00 user 61.85 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 314620, close 210782, bind 1758247, connect 1870887, delroute 0 10.01 real 3.18 user 63.03 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 80242, close 93678, bind 707846, connect 659842, delroute 0 10.58 real 1.07 user 31.41 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 249903, close 395794, bind 2081527, connect 2206461, delroute 0 10.00 real 4.00 user 62.46 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 530342, close 222344, bind 577342, connect 3582560, delroute 0 0m10.00s real 0m04.48s user 1m11.05s 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 468525, close 270904, bind 2227956, connect 2293938, delroute 0 0m10.01s real 0m04.22s user 1m10.50s 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 306358, close 185998, bind 0, connect 2236074, delroute 132749 0m10.00s real 0m02.42s user 1m04.69s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 593531, close 335869, bind 8715696, connect 0, delroute 0 10.01 real 8.10 user 71.93 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6106, close 6327, bind 0, connect 1620407, delroute 0 10.01 real 1.21 user 68.12 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38284, close 32338, bind 1803631, connect 853224, delroute 0 10.01 real 2.07 user 63.92 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130684, close 119558, bind 2785811, connect 1460084, delroute 0 10.22 real 3.11 user 63.99 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 55285, close 212576, bind 2161377, connect 1284361, delroute 0 10.00 real 2.75 user 63.13 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 7045, close 8808, bind 411895, connect 1416138, delroute 0 0m10.00s real 0m01.52s user 1m09.61s 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 37167, close 32120, bind 1788993, connect 859670, delroute 0 0m10.01s real 0m02.06s user 1m04.25s 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 14728, close 19012, bind 0, connect 1262113, delroute 7187 0m10.01s real 0m01.35s user 1m09.43s 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 346826 1.00 real 0.14 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 174402 0m01.00s real 0m00.17s user 0m00.84s system PASS sys/netinet/bindconnect Duration 8m16.83s