START sys/netinet/bindconnect 2025-03-06T14:31:16Z ==== 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 904559, close 742220, bind 1121997, connect 1132400, delroute 0 10.01 real 2.34 user 27.01 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1178873, close 635082, bind 4375563, connect 0, delroute 0 10.01 real 4.54 user 70.76 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 361194, close 442900, bind 0, connect 1703925, delroute 0 10.01 real 1.71 user 35.61 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 529946, close 512544, bind 1032342, connect 1076098, delroute 0 10.01 real 2.23 user 43.56 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 186411, close 231485, bind 476681, connect 450099, delroute 0 10.17 real 0.76 user 40.01 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 475520, close 1562657, bind 2382319, connect 2220539, delroute 0 10.01 real 5.57 user 53.97 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 321371, close 395993, bind 223148, connect 1551529, delroute 0 10.01 real 1.92 user 34.65 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 423648, close 473257, bind 885477, connect 1146906, delroute 0 10.01 real 2.41 user 38.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 291177, close 675891, bind 0, connect 1575939, delroute 118636 10.01 real 2.18 user 43.13 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 435517, close 922228, bind 2523307, connect 0, delroute 0 10.01 real 2.50 user 55.27 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 356898, close 882622, bind 0, connect 2075123, delroute 0 10.01 real 2.22 user 42.85 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 370296, close 835345, bind 1107331, connect 945273, delroute 0 10.01 real 2.10 user 44.13 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 191264, close 269385, bind 587723, connect 558638, delroute 0 10.25 real 1.31 user 37.44 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 291102, close 2333947, bind 2759880, connect 2673661, delroute 0 10.00 real 6.04 user 52.80 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 338303, close 674360, bind 291305, connect 1678079, delroute 0 10.01 real 2.16 user 43.74 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 330217, close 595689, bind 868991, connect 870511, delroute 0 10.01 real 2.01 user 39.01 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 291492, close 813131, bind 0, connect 1874849, delroute 148826 10.01 real 2.43 user 51.95 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1281710, close 694682, bind 4744190, connect 0, delroute 0 10.01 real 4.66 user 72.42 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 421032, close 631748, bind 0, connect 1439078, delroute 0 10.01 real 1.76 user 43.11 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 518595, close 633493, bind 1125956, connect 912200, delroute 0 10.01 real 2.24 user 50.36 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 569688, close 309477, bind 1149807, connect 940517, delroute 0 10.33 real 2.01 user 51.20 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 489968, close 1428173, bind 2032310, connect 1790758, delroute 0 10.00 real 4.59 user 54.97 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 413133, close 503778, bind 298526, connect 1439445, delroute 0 10.01 real 1.92 user 47.49 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 529508, close 530622, bind 1120678, connect 923805, delroute 0 10.01 real 2.18 user 51.13 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 335822, close 772780, bind 0, connect 1692452, delroute 239757 10.01 real 2.14 user 51.83 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1228718, close 630705, bind 4177682, connect 0, delroute 0 10.01 real 3.90 user 71.43 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 151060, close 238742, bind 0, connect 1285653, delroute 0 10.01 real 1.12 user 21.10 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 203003, close 258178, bind 443458, connect 1021623, delroute 0 10.01 real 1.41 user 24.09 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 305488, close 400286, bind 676882, connect 496490, delroute 0 10.19 real 1.17 user 49.43 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 376468, close 2128085, bind 2642438, connect 2631592, delroute 0 10.00 real 5.96 user 50.03 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 167070, close 260049, bind 124644, connect 1134977, delroute 0 0m10.00s real 0m01.14s user 0m22.58s 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 189891, close 230822, bind 397430, connect 901238, delroute 0 0m10.01s real 0m01.24s user 0m22.80s 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 180424, close 402735, bind 0, connect 1117284, delroute 60101 0m10.01s real 0m01.24s user 0m28.68s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 441838, close 821993, bind 2518024, connect 0, delroute 0 10.01 real 2.59 user 55.85 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 341463, close 749340, bind 0, connect 1801843, delroute 0 10.01 real 2.05 user 39.25 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 348227, close 871649, bind 1088764, connect 933988, delroute 0 10.01 real 2.39 user 40.78 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 204446, close 302200, bind 621252, connect 600703, delroute 0 10.26 real 1.21 user 37.77 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 274720, close 2503596, bind 2861965, connect 2815302, delroute 0 10.00 real 6.16 user 50.30 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 372096, close 701738, bind 314295, connect 1780225, delroute 0 0m10.01s real 0m02.36s user 0m48.25s 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 391804, close 692696, bind 1043732, connect 878619, delroute 0 0m10.01s real 0m01.98s user 0m45.52s 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 272254, close 767778, bind 0, connect 1644044, delroute 116165 0m10.00s real 0m02.39s user 0m47.13s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1140310, close 705072, bind 4417104, connect 0, delroute 0 10.01 real 4.26 user 71.10 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 492528, close 550071, bind 0, connect 1408244, delroute 0 10.01 real 1.68 user 41.44 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 572205, close 549270, bind 1115646, connect 865575, delroute 0 10.01 real 2.24 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 651492, close 261505, bind 1115213, connect 853672, delroute 0 10.34 real 2.14 user 47.81 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 440313, close 1561257, bind 2332021, connect 2037603, delroute 0 10.00 real 4.98 user 56.04 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 516763, close 517538, bind 291118, connect 1379524, delroute 0 0m10.01s real 0m01.83s user 0m43.86s 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 607002, close 548055, bind 1051148, connect 826588, delroute 0 0m10.01s real 0m01.99s user 0m46.09s 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 319288, close 674128, bind 0, connect 1369222, delroute 112735 0m10.01s real 0m01.91s user 0m45.63s 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 339202 1.00 real 0.17 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 167157 0m01.00s real 0m00.06s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.58s