START sys/netinet/bindconnect 2025-03-30T05:04:02Z ==== 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 917978, close 744934, bind 1162264, connect 1103102, delroute 0 10.00 real 2.21 user 27.49 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1167121, close 578052, bind 4287708, connect 0, delroute 0 10.00 real 4.09 user 69.38 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 328298, close 490274, bind 0, connect 1712552, delroute 0 10.01 real 1.77 user 33.73 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 529272, close 514881, bind 992411, connect 1079916, delroute 0 10.01 real 2.30 user 42.38 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 216458, close 272492, bind 544890, connect 489292, delroute 0 10.17 real 0.99 user 40.84 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 457909, close 1563777, bind 2453985, connect 2322779, delroute 0 10.00 real 4.83 user 54.92 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 308879, close 430949, bind 232800, connect 1631039, delroute 0 10.01 real 1.97 user 35.88 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 421613, close 467000, bind 897293, connect 1153858, delroute 0 10.01 real 2.02 user 39.44 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 305750, close 670634, bind 0, connect 1580648, delroute 115615 10.01 real 2.28 user 43.47 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 408330, close 820024, bind 2400613, connect 0, delroute 0 10.01 real 2.45 user 53.26 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 342468, close 902288, bind 0, connect 2087010, delroute 0 10.01 real 2.41 user 41.48 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 354054, close 860332, bind 1118144, connect 958312, delroute 0 10.01 real 2.24 user 42.86 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 225004, close 330268, bind 688412, connect 681013, delroute 0 10.28 real 1.39 user 40.08 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 281823, close 2408204, bind 2848354, connect 2837841, delroute 0 10.00 real 6.07 user 52.78 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 324500, close 677025, bind 289366, connect 1649660, delroute 0 10.01 real 2.42 user 43.80 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 318386, close 598600, bind 850921, connect 849920, delroute 0 10.01 real 1.93 user 39.22 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 293245, close 819943, bind 0, connect 1823804, delroute 135703 10.01 real 2.19 user 51.70 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1145830, close 604366, bind 5045656, connect 0, delroute 0 10.01 real 5.00 user 71.76 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 399292, close 590614, bind 0, connect 1407290, delroute 0 10.01 real 1.60 user 44.94 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 494400, close 511949, bind 1098872, connect 895832, delroute 0 10.01 real 2.19 user 50.32 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 534273, close 262284, bind 1126806, connect 891952, delroute 0 10.34 real 1.74 user 49.69 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 437297, close 1400685, bind 2160418, connect 1924834, delroute 0 10.00 real 4.04 user 55.00 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 397782, close 512235, bind 301994, connect 1453635, delroute 0 10.00 real 1.84 user 48.35 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 494771, close 518158, bind 1082980, connect 891117, delroute 0 10.01 real 2.29 user 50.31 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 337205, close 717000, bind 0, connect 1588116, delroute 219158 10.01 real 2.22 user 52.42 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1132339, close 596135, bind 4136227, connect 0, delroute 0 10.01 real 3.68 user 69.18 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 155003, close 316794, bind 0, connect 1357086, delroute 0 10.01 real 1.12 user 21.23 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 197084, close 259355, bind 434204, connect 1039349, delroute 0 10.01 real 1.31 user 24.48 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 181998, close 203630, bind 451411, connect 395428, delroute 0 10.18 real 0.67 user 38.33 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 355271, close 2133372, bind 2688226, connect 2721400, delroute 0 10.01 real 6.18 user 50.82 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 161612, close 261134, bind 114783, connect 1142655, delroute 0 0m10.01s real 0m01.17s user 0m23.38s 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 188697, close 229566, bind 385674, connect 907681, delroute 0 0m10.01s real 0m01.37s user 0m23.12s 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 172173, close 370933, bind 0, connect 1074571, delroute 54092 0m10.01s real 0m01.29s user 0m27.30s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 406060, close 801815, bind 2367253, connect 0, delroute 0 10.01 real 2.17 user 52.75 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 319405, close 824394, bind 0, connect 1900013, delroute 0 10.01 real 2.33 user 38.80 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 332534, close 813135, bind 1030314, connect 886134, delroute 0 10.01 real 2.35 user 40.24 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 204668, close 304962, bind 663049, connect 632291, delroute 0 10.27 real 0.92 user 38.75 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 263582, close 2575043, bind 2877810, connect 2946662, delroute 0 10.00 real 6.05 user 50.82 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 350557, close 745485, bind 318465, connect 1799813, delroute 0 0m10.01s real 0m02.26s user 0m47.47s 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 364099, close 751700, bind 1029799, connect 902502, delroute 0 0m10.00s real 0m02.07s user 0m45.59s 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 273930, close 749440, bind 0, connect 1574183, delroute 109154 0m10.01s real 0m01.74s user 0m46.20s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 999443, close 554406, bind 4060011, connect 0, delroute 0 10.01 real 3.59 user 67.76 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 519105, close 524459, bind 0, connect 1397316, delroute 0 10.01 real 1.57 user 41.35 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 593883, close 527800, bind 1029347, connect 813366, delroute 0 10.01 real 1.66 user 45.19 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 699910, close 244521, bind 1037884, connect 766094, delroute 0 10.34 real 1.69 user 45.92 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 398423, close 1602587, bind 2429920, connect 2167224, delroute 0 10.00 real 5.30 user 54.93 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 539893, close 518589, bind 281852, connect 1328082, delroute 0 0m10.00s real 0m01.91s user 0m43.02s 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 693691, close 462123, bind 910759, connect 720922, delroute 0 0m10.01s real 0m01.80s user 0m42.64s 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 305804, close 753169, bind 0, connect 1368203, delroute 106538 0m10.01s real 0m02.13s user 0m45.89s 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 339284 1.00 real 0.22 user 0.77 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 170608 0m01.00s real 0m00.04s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.61s