START sys/netinet/bindconnect 2025-01-12T05:18:05Z ==== 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 1137436, close 1184920, bind 960323, connect 895845, delroute 0 10.00 real 2.65 user 29.58 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 973817, close 635671, bind 3642229, connect 0, delroute 0 10.01 real 3.66 user 73.88 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 706492, close 607168, bind 0, connect 1228961, delroute 0 10.01 real 1.57 user 41.19 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 793938, close 654161, bind 815877, connect 803550, delroute 0 10.01 real 2.08 user 47.33 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126710, close 121002, bind 236915, connect 245051, delroute 0 10.25 real 0.52 user 19.69 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 518057, close 1538921, bind 2091078, connect 2012040, delroute 0 10.01 real 4.59 user 56.62 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 638468, close 557459, bind 158050, connect 1144401, delroute 0 10.01 real 1.77 user 40.47 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 784769, close 633563, bind 707731, connect 789989, delroute 0 10.01 real 1.85 user 47.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 515055, close 466764, bind 0, connect 853587, delroute 109411 10.01 real 1.30 user 44.93 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 991648, close 691730, bind 390381, connect 0, delroute 0 10.01 real 1.08 user 38.29 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 917807, close 534041, bind 0, connect 316527, delroute 0 10.01 real 1.06 user 32.04 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 921309, close 547150, bind 163829, connect 172137, delroute 0 10.01 real 0.91 user 33.20 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 578781, close 317920, bind 238541, connect 260949, delroute 0 10.49 real 0.70 user 28.32 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 369737, close 2026677, bind 1746547, connect 1771205, delroute 0 10.00 real 4.24 user 48.03 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 816625, close 560660, bind 57512, connect 459565, delroute 0 10.00 real 0.94 user 33.91 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 879001, close 581718, bind 152552, connect 283204, delroute 0 10.01 real 1.12 user 31.94 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 752643, close 547238, bind 0, connect 350281, delroute 62841 10.01 real 1.00 user 39.22 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1165822, close 817834, bind 2965242, connect 0, delroute 0 10.01 real 3.43 user 75.20 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 751743, close 676476, bind 0, connect 894624, delroute 0 10.01 real 1.38 user 44.23 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 781986, close 717861, bind 691720, connect 594187, delroute 0 10.01 real 1.76 user 51.24 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 690516, close 503002, bind 873433, connect 705544, delroute 0 10.32 real 1.73 user 51.49 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 509727, close 1514415, bind 1872984, connect 1744175, delroute 0 10.00 real 3.98 user 56.73 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 673739, close 621677, bind 170588, connect 885746, delroute 0 10.01 real 1.61 user 46.62 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 809563, close 758304, bind 654777, connect 571626, delroute 0 10.01 real 1.69 user 50.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 564948, close 514315, bind 0, connect 724490, delroute 244927 10.01 real 1.46 user 53.30 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1153561, close 680107, bind 2605333, connect 0, delroute 0 10.01 real 3.04 user 74.62 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 324365, close 301975, bind 0, connect 1052710, delroute 0 10.01 real 1.06 user 21.89 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 392047, close 356460, bind 258004, connect 877418, delroute 0 10.01 real 1.42 user 25.03 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 132053, close 143569, bind 241087, connect 285701, delroute 0 10.29 real 0.50 user 20.79 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 358062, close 1613861, bind 1882738, connect 2120298, delroute 0 10.01 real 4.33 user 43.96 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 280716, close 276829, bind 53116, connect 931698, delroute 0 0m10.01s real 0m01.03s user 0m21.55s 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 370681, close 325961, bind 218673, connect 792703, delroute 0 0m10.01s real 0m01.04s user 0m23.16s 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 257178, close 249477, bind 0, connect 794494, delroute 43637 0m10.01s real 0m00.83s user 0m26.47s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1009931, close 667969, bind 382477, connect 0, delroute 0 10.01 real 1.09 user 37.44 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 895619, close 472878, bind 0, connect 289021, delroute 0 10.01 real 0.82 user 30.29 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 934897, close 517661, bind 135297, connect 156695, delroute 0 10.01 real 0.75 user 30.60 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 501905, close 262100, bind 203127, connect 237308, delroute 0 10.47 real 0.73 user 25.99 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 360994, close 1967302, bind 1672219, connect 1763222, delroute 0 10.01 real 3.87 user 45.31 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 867880, close 486917, bind 53570, connect 349954, delroute 0 0m10.00s real 0m01.07s user 0m33.93s 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 953997, close 551382, bind 144607, connect 171146, delroute 0 0m10.01s real 0m00.94s user 0m32.57s 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 741882, close 487030, bind 0, connect 286266, delroute 55071 0m10.01s real 0m00.82s user 0m35.43s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1125971, close 841242, bind 2220260, connect 0, delroute 0 10.01 real 2.55 user 75.28 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 1077188, close 1084304, bind 0, connect 603950, delroute 0 10.01 real 1.49 user 37.97 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1047392, close 1053695, bind 487577, connect 406179, delroute 0 10.01 real 1.81 user 43.32 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 752202, close 590912, bind 798631, connect 618510, delroute 0 10.37 real 1.84 user 48.07 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 490980, close 1686791, bind 1941896, connect 1804463, delroute 0 10.01 real 4.09 user 55.38 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 963582, close 957965, bind 122127, connect 633810, delroute 0 0m10.01s real 0m01.40s user 0m41.32s 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 1109814, close 1106401, bind 445308, connect 378719, delroute 0 0m10.01s real 0m01.65s user 0m40.80s 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 685408, close 680853, bind 0, connect 532081, delroute 92248 0m10.01s real 0m01.46s user 0m43.56s 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 346278 1.00 real 0.14 user 0.85 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 176574 0m01.00s real 0m00.12s user 0m00.87s system PASS sys/netinet/bindconnect Duration 8m17.23s