START sys/netinet/bindconnect 2025-03-17T05:11:08Z ==== 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 915888, close 745446, bind 1154643, connect 1107061, delroute 0 10.01 real 2.51 user 27.12 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1184078, close 643383, bind 4337263, connect 0, delroute 0 10.00 real 4.03 user 70.83 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 353819, close 406792, bind 0, connect 1739337, delroute 0 10.01 real 1.82 user 33.57 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 539483, close 493032, bind 1060159, connect 1107744, delroute 0 10.01 real 2.32 user 42.83 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 256110, close 331389, bind 576400, connect 536417, delroute 0 10.17 real 1.24 user 45.56 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 468570, close 1618691, bind 2417043, connect 2273278, delroute 0 10.01 real 5.05 user 54.77 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 306616, close 423570, bind 220022, connect 1590328, delroute 0 10.01 real 1.85 user 34.08 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 434447, close 475507, bind 925815, connect 1147306, delroute 0 10.01 real 1.93 user 38.73 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 287968, close 682410, bind 0, connect 1725975, delroute 119901 10.01 real 2.07 user 41.63 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 447584, close 860169, bind 2548749, connect 0, delroute 0 10.01 real 2.49 user 55.46 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 360997, close 853976, bind 0, connect 2019751, delroute 0 10.01 real 2.13 user 42.39 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 371497, close 957737, bind 1105986, connect 956486, delroute 0 10.01 real 2.45 user 43.45 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 210165, close 283627, bind 593910, connect 589515, delroute 0 10.28 real 1.22 user 38.72 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 287915, close 2438870, bind 2806032, connect 2747212, delroute 0 10.00 real 5.97 user 52.40 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 345386, close 664033, bind 289758, connect 1673434, delroute 0 10.00 real 2.31 user 42.90 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 327824, close 585471, bind 849583, connect 868042, delroute 0 10.01 real 2.03 user 38.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 296457, close 900007, bind 0, connect 1915292, delroute 149463 10.01 real 2.64 user 52.64 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1262334, close 692656, bind 4774642, connect 0, delroute 0 10.01 real 4.58 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 425788, close 592061, bind 0, connect 1474002, delroute 0 10.01 real 1.64 user 44.39 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 526371, close 547546, bind 1147090, connect 933399, delroute 0 10.01 real 2.24 user 50.78 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 537241, close 287351, bind 1127684, connect 923333, delroute 0 10.35 real 1.98 user 50.68 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 455141, close 1454793, bind 2169366, connect 1895943, delroute 0 10.01 real 4.23 user 55.18 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 412745, close 707714, bind 296975, connect 1436979, delroute 0 10.01 real 1.79 user 47.24 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 522429, close 595657, bind 1111967, connect 908409, delroute 0 10.01 real 1.98 user 49.77 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 367178, close 785655, bind 0, connect 1751450, delroute 235130 10.01 real 2.18 user 51.97 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1150006, close 581962, bind 4078369, connect 0, delroute 0 10.01 real 4.07 user 69.45 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 152882, close 260925, bind 0, connect 1346656, delroute 0 10.01 real 1.17 user 21.19 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 197819, close 327187, bind 444093, connect 1035132, delroute 0 10.01 real 1.31 user 24.01 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 268515, close 368218, bind 733587, connect 479420, delroute 0 10.16 real 1.06 user 51.84 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 370524, close 2197360, bind 2712248, connect 2704794, delroute 0 10.00 real 6.09 user 50.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 165832, close 284335, bind 127836, connect 1174291, delroute 0 0m10.00s real 0m01.27s user 0m23.29s 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 188513, close 244690, bind 417705, connect 919901, delroute 0 0m10.01s real 0m01.28s user 0m22.87s 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 177644, close 432815, bind 0, connect 1121227, delroute 59670 0m10.01s real 0m01.01s user 0m28.04s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 434205, close 922635, bind 2597044, connect 0, delroute 0 10.01 real 2.71 user 55.45 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 335441, close 811985, bind 0, connect 1879177, delroute 0 10.01 real 2.02 user 38.61 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 343483, close 915687, bind 1142051, connect 977004, delroute 0 10.01 real 2.28 user 40.55 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 203780, close 292305, bind 625306, connect 613296, delroute 0 10.27 real 1.22 user 40.66 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 271443, close 2593910, bind 2944518, connect 2955670, delroute 0 10.01 real 6.56 user 50.33 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 369842, close 714526, bind 325221, connect 1794631, delroute 0 0m10.01s real 0m02.42s user 0m47.78s 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 388635, close 706090, bind 1043519, connect 885150, delroute 0 0m10.01s real 0m02.14s user 0m45.84s 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 276014, close 817701, bind 0, connect 1570938, delroute 115296 0m10.01s real 0m02.24s user 0m46.28s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1154968, close 711372, bind 4419630, connect 0, delroute 0 10.01 real 4.55 user 71.15 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 478663, close 530550, bind 0, connect 1465665, delroute 0 10.01 real 1.65 user 42.13 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 572580, close 563996, bind 1143968, connect 887894, delroute 0 10.01 real 1.95 user 47.51 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 643331, close 266158, bind 1103316, connect 843579, delroute 0 10.35 real 1.86 user 47.55 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 436808, close 1659317, bind 2417442, connect 2125177, delroute 0 10.01 real 4.25 user 55.63 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 503870, close 542968, bind 306468, connect 1425099, delroute 0 0m10.01s real 0m02.13s user 0m44.57s 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 594973, close 608946, bind 1090841, connect 856518, delroute 0 0m10.01s real 0m02.10s user 0m46.15s 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 310457, close 812633, bind 0, connect 1459169, delroute 113250 0m10.01s real 0m01.82s user 0m46.05s 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 347695 1.00 real 0.19 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 172064 0m01.00s real 0m00.09s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.63s