START sys/netinet/bindconnect 2025-03-25T05:12:46Z ==== 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 907432, close 739711, bind 1148534, connect 1132625, delroute 0 10.00 real 2.65 user 26.35 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1189733, close 576916, bind 4277965, connect 0, delroute 0 10.01 real 4.37 user 69.39 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 330967, close 425160, bind 0, connect 1681141, delroute 0 10.01 real 1.82 user 34.63 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 505764, close 513107, bind 998967, connect 1091716, delroute 0 10.01 real 2.43 user 43.88 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 168972, close 184134, bind 423217, connect 390569, delroute 0 10.17 real 0.78 user 32.83 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457370, close 1441479, bind 2331480, connect 2198972, delroute 0 10.00 real 5.02 user 54.69 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 363095, close 391579, bind 220998, connect 1558206, delroute 0 10.01 real 1.73 user 36.36 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 419914, close 433476, bind 845035, connect 1146332, delroute 0 10.01 real 2.16 user 38.94 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 310470, close 594416, bind 0, connect 1491111, delroute 117175 10.01 real 2.33 user 43.30 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 421753, close 744115, bind 2295533, connect 0, delroute 0 10.01 real 2.35 user 54.34 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348450, close 781450, bind 0, connect 1958289, delroute 0 10.01 real 2.33 user 42.66 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 355885, close 831929, bind 1081342, connect 957092, delroute 0 10.01 real 2.25 user 43.99 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 172573, close 226949, bind 530365, connect 514035, delroute 0 10.28 real 1.15 user 35.83 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 284029, close 2335154, bind 2782625, connect 2779901, delroute 0 10.00 real 6.30 user 52.90 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 329494, close 636817, bind 277976, connect 1629069, delroute 0 10.01 real 2.27 user 44.67 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 317563, close 578988, bind 837792, connect 851439, delroute 0 10.00 real 1.62 user 39.70 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 293020, close 802426, bind 0, connect 1846676, delroute 138754 10.00 real 2.46 user 51.82 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1241248, close 655110, bind 5007093, connect 0, delroute 0 10.01 real 4.66 user 72.15 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 413200, close 460845, bind 0, connect 1426743, delroute 0 10.00 real 1.47 user 46.00 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 509002, close 495597, bind 1132996, connect 914159, delroute 0 10.01 real 2.24 user 51.77 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 540702, close 273800, bind 1168331, connect 930966, delroute 0 10.33 real 2.25 user 51.92 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 443478, close 1260404, bind 2071154, connect 1821696, delroute 0 10.01 real 4.38 user 55.13 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 404772, close 487637, bind 298747, connect 1416058, delroute 0 10.01 real 1.97 user 48.55 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 510406, close 493580, bind 1101774, connect 897975, delroute 0 10.01 real 2.11 user 51.08 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 340409, close 656413, bind 0, connect 1510132, delroute 222345 10.01 real 2.01 user 53.35 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1178483, close 587052, bind 4187456, connect 0, delroute 0 10.01 real 4.11 user 69.53 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 147103, close 239491, bind 0, connect 1302911, delroute 0 10.01 real 1.26 user 21.53 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 190358, close 249292, bind 406787, connect 1042515, delroute 0 10.01 real 1.32 user 24.56 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 201134, close 241839, bind 475294, connect 348479, delroute 0 10.18 real 0.86 user 36.97 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 357218, close 2060770, bind 2648569, connect 2716128, delroute 0 10.00 real 6.02 user 50.63 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 157868, close 243986, bind 109718, connect 1123321, delroute 0 0m10.01s real 0m01.34s user 0m23.20s 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 181469, close 218395, bind 375647, connect 896087, delroute 0 0m10.01s real 0m01.24s user 0m23.27s 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 174752, close 344624, bind 0, connect 1051646, delroute 54515 0m10.01s real 0m01.31s user 0m27.85s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 410939, close 756825, bind 2310673, connect 0, delroute 0 10.01 real 2.43 user 54.26 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 324892, close 747459, bind 0, connect 1826008, delroute 0 10.01 real 2.32 user 39.82 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 339999, close 749660, bind 1005979, connect 858477, delroute 0 10.01 real 1.92 user 40.91 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 183074, close 251865, bind 572509, connect 557179, delroute 0 10.28 real 1.02 user 38.63 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 262967, close 2519275, bind 2808651, connect 2913655, delroute 0 10.01 real 6.51 user 50.35 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 353527, close 661724, bind 299991, connect 1717850, delroute 0 0m10.00s real 0m02.53s user 0m49.07s 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 369036, close 649180, bind 966316, connect 840376, delroute 0 0m10.01s real 0m02.11s user 0m45.74s 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 277947, close 633192, bind 0, connect 1463575, delroute 111292 0m10.01s real 0m02.15s user 0m46.80s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1154567, close 660874, bind 4544450, connect 0, delroute 0 10.01 real 4.18 user 71.77 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 516356, close 461527, bind 0, connect 1327649, delroute 0 10.01 real 1.73 user 41.53 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 586314, close 489104, bind 1075100, connect 823447, delroute 0 10.01 real 2.02 user 47.33 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 761107, close 225973, bind 1062150, connect 782999, delroute 0 10.37 real 1.98 user 45.72 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 416932, close 1485633, bind 2341221, connect 2052491, delroute 0 10.01 real 4.99 user 55.60 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 521018, close 481524, bind 286344, connect 1315057, delroute 0 0m10.00s real 0m01.74s user 0m44.37s 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 672925, close 459237, bind 977222, connect 758253, delroute 0 0m10.01s real 0m01.90s user 0m44.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 316833, close 656682, bind 0, connect 1305013, delroute 109320 0m10.01s real 0m01.89s user 0m46.33s 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 347097 1.00 real 0.20 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 171060 0m01.00s real 0m00.10s user 0m00.93s system PASS sys/netinet/bindconnect Duration 8m16.65s