START sys/netinet/bindconnect 2025-03-03T16:01:04Z ==== 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 881715, close 729654, bind 1090496, connect 1144445, delroute 0 10.00 real 2.53 user 26.37 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1219850, close 622276, bind 4271493, connect 0, delroute 0 10.01 real 4.41 user 70.73 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 303056, close 413760, bind 0, connect 1731415, delroute 0 10.01 real 1.54 user 33.60 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 495410, close 460860, bind 1029445, connect 1148602, delroute 0 10.01 real 2.18 user 43.92 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 215668, close 263486, bind 547123, connect 495514, delroute 0 10.20 real 0.98 user 43.78 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 456670, close 1504390, bind 2372935, connect 2231321, delroute 0 10.00 real 5.08 user 54.20 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 300735, close 387292, bind 216895, connect 1602481, delroute 0 10.01 real 1.94 user 35.40 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 400719, close 426431, bind 832288, connect 1168516, delroute 0 10.01 real 2.07 user 38.76 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 305064, close 670455, bind 0, connect 1510350, delroute 110542 10.01 real 1.84 user 41.52 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 415655, close 755922, bind 2325012, connect 0, delroute 0 10.01 real 2.58 user 55.01 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 346504, close 806584, bind 0, connect 1959851, delroute 0 10.01 real 2.07 user 43.81 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 357912, close 805815, bind 1067857, connect 921690, delroute 0 10.01 real 2.12 user 43.73 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 206700, close 299506, bind 640583, connect 624818, delroute 0 10.28 real 1.38 user 39.62 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 280758, close 2353527, bind 2765283, connect 2770943, delroute 0 10.00 real 6.05 user 53.13 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 328109, close 619789, bind 286282, connect 1594284, delroute 0 10.00 real 2.23 user 44.22 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 322975, close 519959, bind 820299, connect 808824, delroute 0 10.01 real 1.74 user 39.35 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 294835, close 701784, bind 0, connect 1695788, delroute 138312 10.01 real 2.61 user 51.78 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1279952, close 672009, bind 4840664, connect 0, delroute 0 10.01 real 4.73 user 72.56 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 407885, close 455594, bind 0, connect 1415449, delroute 0 10.01 real 1.64 user 46.09 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 497622, close 490531, bind 1099509, connect 888671, delroute 0 10.01 real 2.01 user 51.80 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 554752, close 279538, bind 1161845, connect 911575, delroute 0 10.31 real 2.14 user 51.00 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 440035, close 1295913, bind 2060983, connect 1813281, delroute 0 10.01 real 3.98 user 56.29 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 391390, close 491125, bind 291296, connect 1385879, delroute 0 10.01 real 1.66 user 49.11 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 493247, close 556146, bind 1068411, connect 871819, delroute 0 10.01 real 2.23 user 49.82 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 359252, close 626052, bind 0, connect 1445040, delroute 214820 10.01 real 2.29 user 52.34 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1206207, close 609112, bind 4138803, connect 0, delroute 0 10.01 real 3.80 user 70.76 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 145812, close 246973, bind 0, connect 1321638, delroute 0 10.01 real 1.19 user 21.38 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 195812, close 242030, bind 408274, connect 1031743, delroute 0 10.01 real 1.31 user 24.36 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 311256, close 427865, bind 797868, connect 571475, delroute 0 10.17 real 1.72 user 53.69 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 371421, close 2066690, bind 2644339, connect 2692907, delroute 0 10.01 real 5.79 user 51.31 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 161042, close 263907, bind 114017, connect 1146528, delroute 0 0m10.01s real 0m01.50s user 0m22.71s 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 187866, close 225865, bind 379528, connect 897261, delroute 0 0m10.01s real 0m01.27s user 0m22.89s 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 174665, close 374712, bind 0, connect 1086525, delroute 55374 0m10.01s real 0m01.11s user 0m27.92s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 415609, close 751307, bind 2333590, connect 0, delroute 0 10.01 real 2.41 user 54.82 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 319869, close 785968, bind 0, connect 1837561, delroute 0 10.01 real 2.10 user 39.32 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331495, close 811288, bind 1031436, connect 897654, delroute 0 10.01 real 2.18 user 42.03 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 178985, close 277680, bind 596680, connect 555356, delroute 0 10.25 real 1.23 user 36.33 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 265340, close 2509121, bind 2820317, connect 2879262, delroute 0 10.00 real 6.74 user 51.10 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 354079, close 644351, bind 304139, connect 1701594, delroute 0 0m10.01s real 0m02.22s user 0m48.96s 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 367851, close 643004, bind 963523, connect 834857, delroute 0 0m10.01s real 0m02.11s user 0m46.95s 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 280520, close 604848, bind 0, connect 1395175, delroute 109948 0m10.01s real 0m02.11s user 0m47.11s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1159411, close 685008, bind 4424899, connect 0, delroute 0 10.01 real 4.22 user 71.72 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 500664, close 470390, bind 0, connect 1336452, delroute 0 10.01 real 1.74 user 43.47 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 595375, close 476898, bind 1059283, connect 813863, delroute 0 10.01 real 1.87 user 47.32 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 682182, close 241112, bind 1076721, connect 796833, delroute 0 10.37 real 2.03 user 46.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 413832, close 1496653, bind 2321264, connect 2025594, delroute 0 10.01 real 4.65 user 55.47 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 525523, close 489921, bind 287510, connect 1312884, delroute 0 0m10.00s real 0m02.06s user 0m45.26s 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 641658, close 463960, bind 975653, connect 760752, delroute 0 0m10.01s real 0m01.94s user 0m46.04s 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 316462, close 624278, bind 0, connect 1273422, delroute 108488 0m10.01s real 0m01.58s user 0m47.04s 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 337872 1.00 real 0.14 user 0.87 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 173994 0m01.00s real 0m00.08s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.62s