START sys/netinet/bindconnect 2025-03-10T17:28: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 896313, close 746013, bind 1169064, connect 1086807, delroute 0 10.01 real 2.44 user 27.38 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1142616, close 612301, bind 4382159, connect 0, delroute 0 10.01 real 4.28 user 71.56 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 342706, close 416295, bind 0, connect 1678818, delroute 0 10.01 real 1.83 user 36.17 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 475113, close 487929, bind 1009206, connect 1069047, delroute 0 10.01 real 2.29 user 43.25 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 267238, close 344742, bind 610252, connect 563851, delroute 0 10.19 real 1.10 user 44.92 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 459932, close 1454223, bind 2314501, connect 2177971, delroute 0 10.01 real 5.09 user 56.03 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 313108, close 502665, bind 225673, connect 1561254, delroute 0 10.01 real 1.84 user 37.75 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 416377, close 456492, bind 877415, connect 1130454, delroute 0 10.01 real 2.19 user 41.29 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 300487, close 649495, bind 0, connect 1459295, delroute 112064 10.01 real 1.80 user 44.70 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 394912, close 762979, bind 2297900, connect 0, delroute 0 10.01 real 2.35 user 54.79 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 348819, close 783088, bind 0, connect 1935283, delroute 0 10.01 real 2.21 user 43.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 348114, close 831186, bind 1089727, connect 939697, delroute 0 10.01 real 2.30 user 44.35 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 228392, close 330839, bind 688633, connect 669762, delroute 0 10.28 real 1.36 user 39.63 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 267866, close 2310666, bind 2779546, connect 2752002, delroute 0 10.00 real 5.97 user 53.57 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 329154, close 625636, bind 280197, connect 1603685, delroute 0 10.01 real 2.25 user 45.49 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 315400, close 546489, bind 815582, connect 811652, delroute 0 10.01 real 1.81 user 40.76 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 286928, close 829266, bind 0, connect 1824595, delroute 135037 10.01 real 2.20 user 52.07 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1082184, close 591737, bind 4812022, connect 0, delroute 0 10.01 real 4.56 user 72.03 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 378171, close 518666, bind 0, connect 1324385, delroute 0 10.01 real 1.72 user 46.17 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 471045, close 492497, bind 1077076, connect 864231, delroute 0 10.01 real 2.15 user 50.94 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 513887, close 266842, bind 1116025, connect 864436, delroute 0 10.32 real 2.06 user 51.42 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 432181, close 1417313, bind 2150138, connect 1942131, delroute 0 10.00 real 4.67 user 56.56 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 374273, close 561846, bind 284488, connect 1353860, delroute 0 10.01 real 1.70 user 48.20 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 467707, close 494013, bind 1043203, connect 849512, delroute 0 10.01 real 2.21 user 50.68 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 317703, close 638086, bind 0, connect 1478404, delroute 207505 10.01 real 2.06 user 51.58 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1034226, close 609440, bind 3882174, connect 0, delroute 0 10.01 real 3.71 user 68.38 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 149618, close 267886, bind 0, connect 1346073, delroute 0 10.01 real 1.17 user 22.65 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 193579, close 254100, bind 413515, connect 1021612, delroute 0 10.01 real 1.25 user 24.78 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 219976, close 262369, bind 546128, connect 391599, delroute 0 10.19 real 0.91 user 49.45 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 344198, close 1998937, bind 2581582, connect 2645153, delroute 0 10.00 real 5.79 user 51.13 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 155292, close 248642, bind 108682, connect 1123038, delroute 0 0m10.01s real 0m01.22s user 0m22.51s 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 179909, close 221075, bind 377795, connect 895909, delroute 0 0m10.01s real 0m01.28s user 0m23.36s 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 169576, close 397714, bind 0, connect 1067666, delroute 54114 0m10.01s real 0m01.35s user 0m27.70s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 393013, close 754652, bind 2300094, connect 0, delroute 0 10.01 real 2.13 user 53.25 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 310556, close 870068, bind 0, connect 1806360, delroute 0 10.01 real 2.09 user 38.72 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 326483, close 799438, bind 1017991, connect 873880, delroute 0 10.01 real 2.27 user 41.75 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 207412, close 304457, bind 659539, connect 631469, delroute 0 10.27 real 1.32 user 39.85 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 250757, close 2457358, bind 2811316, connect 2888389, delroute 0 10.01 real 6.73 user 51.18 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 347317, close 691563, bind 307696, connect 1739186, delroute 0 0m10.00s real 0m02.45s user 0m48.27s 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 360240, close 672813, bind 973078, connect 848591, delroute 0 0m10.01s real 0m01.95s user 0m46.94s 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 265218, close 761063, bind 0, connect 1603491, delroute 108426 0m10.01s real 0m02.33s user 0m47.53s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1052973, close 600434, bind 4493424, connect 0, delroute 0 10.01 real 4.47 user 71.47 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 472569, close 528936, bind 0, connect 1321088, delroute 0 10.01 real 1.53 user 42.45 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 552822, close 504084, bind 1039807, connect 799316, delroute 0 10.01 real 2.11 user 47.16 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 663231, close 223023, bind 1043854, connect 749740, delroute 0 10.36 real 1.75 user 46.86 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 375146, close 1592299, bind 2279057, connect 2034524, delroute 0 10.00 real 4.73 user 54.33 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 493010, close 465738, bind 281084, connect 1281495, delroute 0 0m10.01s real 0m01.82s user 0m45.84s 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 585102, close 475849, bind 977963, connect 760855, delroute 0 0m10.00s real 0m01.89s user 0m46.20s 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 300943, close 642171, bind 0, connect 1296236, delroute 105005 0m10.01s real 0m01.73s user 0m45.88s 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 344316 1.00 real 0.17 user 0.84 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 175499 0m01.00s real 0m00.09s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.65s