START sys/netinet/bindconnect 2025-03-15T05:17:36Z ==== 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 922029, close 744185, bind 1142899, connect 1120173, delroute 0 10.00 real 2.43 user 27.11 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1199678, close 633262, bind 4238880, connect 0, delroute 0 10.01 real 4.36 user 70.93 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 354279, close 384960, bind 0, connect 1712911, delroute 0 10.01 real 1.69 user 34.59 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 485372, close 532794, bind 1033756, connect 1128952, delroute 0 10.01 real 2.39 user 41.12 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 258646, close 338451, bind 589187, connect 524579, delroute 0 10.19 real 1.12 user 44.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 473915, close 1641973, bind 2409418, connect 2279167, delroute 0 10.01 real 5.00 user 54.89 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 307406, close 424358, bind 224778, connect 1573369, delroute 0 10.01 real 2.21 user 34.14 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 424501, close 492267, bind 917092, connect 1138811, delroute 0 10.01 real 2.32 user 38.11 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 294767, close 578306, bind 0, connect 1457751, delroute 115086 10.01 real 1.91 user 41.33 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 441507, close 955685, bind 2589500, connect 0, delroute 0 10.01 real 2.60 user 55.02 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 357428, close 878556, bind 0, connect 2069679, delroute 0 10.01 real 2.31 user 42.59 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 362850, close 918322, bind 1157902, connect 1005368, delroute 0 10.01 real 2.28 user 44.38 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 185734, close 277568, bind 565445, connect 548519, delroute 0 10.22 real 1.10 user 37.99 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 286202, close 2463464, bind 2793915, connect 2744070, delroute 0 10.00 real 6.31 user 51.75 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 341868, close 672533, bind 290739, connect 1676151, delroute 0 10.01 real 2.50 user 43.77 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 326632, close 579997, bind 832364, connect 861529, delroute 0 10.01 real 1.77 user 37.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 296680, close 820003, bind 0, connect 1846590, delroute 148043 10.01 real 2.58 user 52.38 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1353347, close 731210, bind 4741288, connect 0, delroute 0 10.01 real 4.61 user 73.43 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 424779, close 490458, bind 0, connect 1464483, delroute 0 10.01 real 1.70 user 43.86 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 532510, close 533120, bind 1133070, connect 919585, delroute 0 10.01 real 2.14 user 50.45 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 544232, close 307851, bind 1135730, connect 931548, delroute 0 10.34 real 2.36 user 51.31 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457228, close 1474382, bind 2118524, connect 1869629, delroute 0 10.00 real 4.52 user 54.80 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 414115, close 511554, bind 306418, connect 1459467, delroute 0 10.00 real 1.87 user 47.54 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 522320, close 534737, bind 1120924, connect 918178, delroute 0 10.01 real 2.06 user 50.27 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 331722, close 727814, bind 0, connect 1643125, delroute 236950 10.01 real 2.14 user 51.12 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1181243, close 586892, bind 4081066, connect 0, delroute 0 10.01 real 4.15 user 69.87 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 155565, close 264766, bind 0, connect 1331192, delroute 0 10.01 real 1.07 user 21.49 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 197409, close 282938, bind 437254, connect 1029995, delroute 0 10.01 real 1.27 user 24.12 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 270314, close 350915, bind 684863, connect 456823, delroute 0 10.17 real 1.24 user 52.34 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 372026, close 2166480, bind 2628552, connect 2650151, delroute 0 10.01 real 5.46 user 50.40 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 163725, close 284958, bind 124442, connect 1162065, delroute 0 0m10.01s real 0m01.47s user 0m22.81s 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 197276, close 238108, bind 398416, connect 903330, delroute 0 0m10.01s real 0m01.25s user 0m22.34s 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 179399, close 395162, bind 0, connect 1117328, delroute 60545 0m10.01s real 0m01.12s user 0m29.15s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 435260, close 865861, bind 2584690, connect 0, delroute 0 10.01 real 2.75 user 55.27 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 333464, close 796568, bind 0, connect 1863170, delroute 0 10.01 real 2.01 user 39.68 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 341626, close 942841, bind 1086467, connect 921810, delroute 0 10.01 real 2.33 user 40.68 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 187583, close 260052, bind 586303, connect 559572, delroute 0 10.29 real 0.98 user 38.64 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 272817, close 2547455, bind 2827445, connect 2867817, delroute 0 10.00 real 6.06 user 50.87 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 381212, close 640677, bind 328248, connect 1723142, delroute 0 0m10.01s real 0m02.31s user 0m48.87s 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 384346, close 762347, bind 1057542, connect 897272, delroute 0 0m10.01s real 0m02.20s user 0m46.28s 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 275025, close 713572, bind 0, connect 1578682, delroute 116938 0m10.01s real 0m02.25s user 0m46.59s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1189703, close 741298, bind 4419326, connect 0, delroute 0 10.01 real 4.43 user 72.75 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 454780, close 517193, bind 0, connect 1479299, delroute 0 10.01 real 1.79 user 42.01 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 553742, close 557635, bind 1156497, connect 892405, delroute 0 10.01 real 2.15 user 47.82 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 639171, close 291052, bind 1123417, connect 851167, delroute 0 10.36 real 2.07 user 46.89 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 440492, close 1681782, bind 2436051, connect 2157289, delroute 0 10.00 real 5.04 user 55.85 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 480493, close 546110, bind 306506, connect 1435336, delroute 0 0m10.00s real 0m01.93s user 0m45.22s 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 580011, close 559584, bind 1092799, connect 861056, delroute 0 0m10.01s real 0m02.05s user 0m46.67s 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 310958, close 710610, bind 0, connect 1442982, delroute 114850 0m10.01s real 0m02.03s user 0m45.68s 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 345566 1.00 real 0.17 user 0.82 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 172914 0m01.00s real 0m00.09s user 0m00.91s system PASS sys/netinet/bindconnect Duration 8m16.59s