START sys/netinet/bindconnect 2025-01-09T05:14:14Z ==== 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 1131712, close 1156801, bind 964527, connect 901062, delroute 0 10.00 real 2.98 user 30.04 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 994875, close 579218, bind 3397035, connect 0, delroute 0 10.01 real 3.24 user 75.07 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 699887, close 578435, bind 0, connect 1220497, delroute 0 10.01 real 1.74 user 40.26 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 818224, close 674123, bind 789318, connect 787399, delroute 0 10.01 real 1.90 user 48.60 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 124582, close 115936, bind 233683, connect 236281, delroute 0 10.24 real 0.50 user 19.77 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 539503, close 1445884, bind 1976113, connect 1891936, delroute 0 10.00 real 4.47 user 55.28 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 617869, close 550576, bind 170107, connect 1157863, delroute 0 10.01 real 1.70 user 42.29 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 797306, close 645018, bind 716311, connect 789111, delroute 0 10.01 real 2.23 user 46.88 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 510556, close 471256, bind 0, connect 862259, delroute 111698 10.01 real 1.33 user 45.22 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 891217, close 695097, bind 400630, connect 0, delroute 0 10.01 real 1.09 user 39.85 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 806052, close 571634, bind 0, connect 341835, delroute 0 10.01 real 0.89 user 32.74 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 843031, close 571053, bind 168309, connect 179716, delroute 0 10.01 real 0.86 user 34.64 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 407115, close 281275, bind 220484, connect 244728, delroute 0 10.48 real 0.60 user 26.80 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 361772, close 1981794, bind 1700672, connect 1724978, delroute 0 10.00 real 4.08 user 47.17 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 731535, close 564356, bind 57220, connect 470254, delroute 0 10.01 real 1.10 user 34.55 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 779050, close 602229, bind 161277, connect 296448, delroute 0 10.01 real 1.02 user 33.87 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 699086, close 550708, bind 0, connect 353843, delroute 66402 10.01 real 0.91 user 39.96 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1171076, close 789611, bind 2781210, connect 0, delroute 0 10.01 real 3.11 user 75.98 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 775349, close 693660, bind 0, connect 871958, delroute 0 10.01 real 1.48 user 43.79 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 769879, close 705878, bind 662577, connect 572785, delroute 0 10.01 real 1.69 user 50.61 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 676233, close 485207, bind 844826, connect 681020, delroute 0 10.35 real 1.99 user 51.26 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 495196, close 1476835, bind 1822060, connect 1687852, delroute 0 10.01 real 3.87 user 55.45 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 671335, close 626440, bind 168500, connect 879286, delroute 0 10.01 real 1.79 user 46.96 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 756580, close 679014, bind 663102, connect 576232, delroute 0 10.01 real 1.87 user 50.80 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 556740, close 511605, bind 0, connect 700525, delroute 243940 10.01 real 1.29 user 53.69 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1126471, close 677738, bind 2648859, connect 0, delroute 0 10.01 real 2.89 user 75.23 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 297457, close 287790, bind 0, connect 1056533, delroute 0 10.01 real 1.16 user 21.41 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 393150, close 367985, bind 264911, connect 876507, delroute 0 10.01 real 1.11 user 25.65 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129458, close 140243, bind 245789, connect 279036, delroute 0 10.25 real 0.55 user 19.73 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 365734, close 1555482, bind 1812616, connect 2066066, delroute 0 10.00 real 4.26 user 44.74 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 290930, close 297057, bind 54805, connect 926888, delroute 0 0m10.01s real 0m01.02s user 0m21.78s 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 349415, close 321027, bind 228081, connect 787532, delroute 0 0m10.01s real 0m01.01s user 0m23.67s 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 256583, close 257615, bind 0, connect 782716, delroute 46316 0m10.01s real 0m01.07s user 0m26.62s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 918939, close 636225, bind 416314, connect 0, delroute 0 10.01 real 1.06 user 39.94 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 823034, close 447699, bind 0, connect 310838, delroute 0 10.01 real 0.87 user 29.78 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 817471, close 524685, bind 151786, connect 176858, delroute 0 10.01 real 0.94 user 32.27 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 472532, close 265065, bind 213523, connect 240529, delroute 0 10.47 real 0.56 user 27.19 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 347649, close 1976833, bind 1669192, connect 1751116, delroute 0 10.00 real 4.15 user 44.56 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 787926, close 511541, bind 51706, connect 351022, delroute 0 0m10.01s real 0m01.15s user 0m34.89s 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 843437, close 577905, bind 151598, connect 187208, delroute 0 0m10.01s real 0m00.98s user 0m33.86s 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 670103, close 483189, bind 0, connect 299381, delroute 58065 0m10.01s real 0m01.02s user 0m36.25s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1117491, close 748339, bind 2174204, connect 0, delroute 0 10.00 real 2.46 user 76.24 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 977076, close 998861, bind 0, connect 661664, delroute 0 10.01 real 1.21 user 38.22 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 1007140, close 1013537, bind 503964, connect 421964, delroute 0 10.01 real 1.92 user 43.86 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 680132, close 516944, bind 811303, connect 632157, delroute 0 10.37 real 1.73 user 49.39 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 475999, close 1605305, bind 1890677, connect 1749509, delroute 0 10.01 real 4.12 user 56.06 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 927250, close 942366, bind 124823, connect 641232, delroute 0 0m10.01s real 0m01.82s user 0m40.70s 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 986628, close 993847, bind 489838, connect 418084, delroute 0 0m10.01s real 0m01.74s user 0m44.00s 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 638817, close 643843, bind 0, connect 543820, delroute 94157 0m10.01s real 0m01.36s user 0m43.37s 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 346183 1.00 real 0.10 user 0.91 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 175306 0m01.00s real 0m00.06s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m17.18s