START sys/netinet/bindconnect 2025-02-25T05:11:25Z ==== 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 926325, close 756767, bind 1179079, connect 1071240, delroute 0 10.01 real 2.59 user 28.12 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1148859, close 568658, bind 4093917, connect 0, delroute 0 10.01 real 3.92 user 71.09 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 343588, close 429795, bind 0, connect 1605342, delroute 0 10.01 real 1.67 user 36.90 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 444526, close 468096, bind 975340, connect 1078709, delroute 0 10.01 real 2.25 user 43.81 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 198537, close 241788, bind 491281, connect 428541, delroute 0 10.18 real 0.90 user 37.87 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 430816, close 1449803, bind 2272669, connect 2137288, delroute 0 10.01 real 4.54 user 56.07 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 306252, close 573129, bind 231139, connect 1506293, delroute 0 10.01 real 1.75 user 38.13 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 422672, close 445441, bind 889822, connect 1073841, delroute 0 10.01 real 2.11 user 41.81 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 301141, close 570336, bind 0, connect 1348930, delroute 112607 10.01 real 1.74 user 44.64 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 381832, close 745710, bind 2249033, connect 0, delroute 0 10.01 real 2.06 user 54.80 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 318078, close 822478, bind 0, connect 1947496, delroute 0 10.01 real 2.48 user 43.05 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 331470, close 788586, bind 1048913, connect 905502, delroute 0 10.01 real 2.11 user 45.09 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 207682, close 305028, bind 651368, connect 619068, delroute 0 10.28 real 1.27 user 39.76 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 258358, close 2357559, bind 2737198, connect 2731028, delroute 0 10.00 real 6.65 user 52.74 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 307055, close 609881, bind 273936, connect 1531235, delroute 0 10.01 real 2.10 user 44.84 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 304207, close 663289, bind 831082, connect 803121, delroute 0 10.01 real 1.87 user 41.14 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 274120, close 786656, bind 0, connect 1759863, delroute 131384 10.01 real 2.34 user 51.84 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1246896, close 699862, bind 4513335, connect 0, delroute 0 10.01 real 4.14 user 73.45 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 354893, close 415275, bind 0, connect 1244576, delroute 0 10.01 real 1.37 user 45.42 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 446332, close 466176, bind 1022207, connect 811558, delroute 0 10.01 real 1.78 user 51.09 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 477777, close 236210, bind 1039393, connect 803238, delroute 0 10.33 real 1.84 user 51.39 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 384806, close 1373002, bind 2071481, connect 1857353, delroute 0 10.00 real 4.56 user 55.60 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 351051, close 455524, bind 264355, connect 1244320, delroute 0 10.01 real 1.59 user 48.43 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 443761, close 489158, bind 983320, connect 793962, delroute 0 10.01 real 2.09 user 51.20 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 300579, close 634002, bind 0, connect 1396881, delroute 199970 10.01 real 1.74 user 52.72 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1156302, close 593202, bind 3959907, connect 0, delroute 0 10.01 real 3.70 user 71.26 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 140214, close 235567, bind 0, connect 1299027, delroute 0 10.01 real 1.08 user 21.63 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 185542, close 244352, bind 404565, connect 1026973, delroute 0 10.01 real 1.36 user 24.74 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 265957, close 359097, bind 683943, connect 473729, delroute 0 10.17 real 1.25 user 53.11 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 343864, close 2005746, bind 2537340, connect 2613540, delroute 0 10.00 real 5.73 user 51.83 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 156058, close 261694, bind 113421, connect 1128916, delroute 0 0m10.01s real 0m01.44s user 0m23.54s 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 186366, close 221794, bind 372827, connect 891783, delroute 0 0m10.01s real 0m01.24s user 0m23.68s 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 167220, close 344091, bind 0, connect 1042729, delroute 53239 0m10.01s real 0m01.28s user 0m28.57s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 372653, close 765495, bind 2271248, connect 0, delroute 0 10.01 real 2.67 user 53.85 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 300804, close 732880, bind 0, connect 1717105, delroute 0 10.00 real 1.81 user 39.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 310390, close 783439, bind 976252, connect 850760, delroute 0 10.01 real 1.98 user 41.79 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 179770, close 254082, bind 566359, connect 547091, delroute 0 10.27 real 1.10 user 39.72 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 243864, close 2496075, bind 2767329, connect 2860397, delroute 0 10.00 real 5.98 user 51.61 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 328480, close 641852, bind 293406, connect 1640748, delroute 0 0m10.01s real 0m02.59s user 0m48.57s 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 337095, close 654865, bind 939093, connect 810354, delroute 0 0m10.01s real 0m01.74s user 0m46.75s 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 261651, close 595531, bind 0, connect 1378853, delroute 103240 0m10.01s real 0m01.87s user 0m46.54s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1118722, close 699984, bind 4147689, connect 0, delroute 0 10.01 real 4.02 user 72.40 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 447176, close 445512, bind 0, connect 1228195, delroute 0 10.01 real 1.59 user 42.29 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 540127, close 458508, bind 976631, connect 745315, delroute 0 10.01 real 1.85 user 46.54 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 639877, close 209695, bind 975677, connect 702971, delroute 0 10.36 real 1.92 user 46.12 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 362622, close 1587012, bind 2236213, connect 1999800, delroute 0 10.00 real 4.37 user 55.34 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 493152, close 447926, bind 257010, connect 1195063, delroute 0 0m10.01s real 0m01.90s user 0m43.82s 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 587780, close 449903, bind 930635, connect 722993, delroute 0 0m10.01s real 0m01.76s user 0m45.57s 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 288475, close 551323, bind 0, connect 1183666, delroute 99644 0m10.00s real 0m01.70s user 0m46.84s 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 342657 1.00 real 0.15 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 169478 0m01.00s real 0m00.04s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.62s