START sys/netinet/bindconnect 2025-01-11T05:59:35Z ==== 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 1162461, close 1245869, bind 1002238, connect 890487, delroute 0 10.00 real 2.69 user 30.61 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1057623, close 688131, bind 3523462, connect 0, delroute 0 10.01 real 3.78 user 74.23 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 754982, close 598633, bind 0, connect 1212996, delroute 0 10.01 real 1.75 user 40.02 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 819363, close 659881, bind 825200, connect 841350, delroute 0 10.01 real 2.07 user 46.95 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 130069, close 122278, bind 219077, connect 231887, delroute 0 10.25 real 0.54 user 20.35 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 596365, close 1575364, bind 1937237, connect 1885084, delroute 0 10.01 real 4.76 user 54.72 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 661081, close 554721, bind 162963, connect 1158027, delroute 0 10.01 real 1.91 user 39.95 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 765460, close 624166, bind 691337, connect 823184, delroute 0 10.01 real 1.98 user 45.30 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 557823, close 478843, bind 0, connect 867292, delroute 105127 10.01 real 1.46 user 43.21 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 903742, close 682485, bind 451092, connect 0, delroute 0 10.01 real 1.00 user 40.76 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 822499, close 564984, bind 0, connect 370359, delroute 0 10.01 real 0.85 user 33.46 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 838051, close 589420, bind 193562, connect 198156, delroute 0 10.01 real 1.06 user 34.51 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 430952, close 283125, bind 207587, connect 234951, delroute 0 10.48 real 0.61 user 26.57 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 386674, close 1972071, bind 1605453, connect 1650820, delroute 0 10.00 real 4.29 user 46.68 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 735296, close 580595, bind 57232, connect 486083, delroute 0 10.01 real 0.92 user 34.83 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 771365, close 561902, bind 162595, connect 316952, delroute 0 10.01 real 1.01 user 32.62 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 702371, close 561247, bind 0, connect 374361, delroute 70467 10.01 real 0.93 user 40.52 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1207483, close 866592, bind 2973181, connect 0, delroute 0 10.01 real 3.30 user 75.68 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 781189, close 652030, bind 0, connect 921601, delroute 0 10.01 real 1.19 user 43.73 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 856573, close 709439, bind 666975, connect 599940, delroute 0 10.01 real 1.73 user 51.19 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 807580, close 550333, bind 819117, connect 707592, delroute 0 10.32 real 1.89 user 51.55 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 586623, close 1546612, bind 1747048, connect 1648546, delroute 0 10.00 real 3.73 user 54.92 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 713291, close 642701, bind 171655, connect 908467, delroute 0 10.00 real 1.65 user 46.15 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 854893, close 725587, bind 664208, connect 601829, delroute 0 10.01 real 1.58 user 50.65 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 568726, close 518686, bind 0, connect 726338, delroute 258690 10.01 real 1.44 user 52.52 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1174503, close 698513, bind 2627091, connect 0, delroute 0 10.01 real 2.91 user 75.56 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 305423, close 288936, bind 0, connect 1070632, delroute 0 10.00 real 1.10 user 21.09 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 416047, close 355020, bind 250849, connect 885588, 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 132744, close 146168, bind 224602, connect 269081, delroute 0 10.26 real 0.55 user 19.06 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 426878, close 1547012, bind 1627245, connect 1933215, delroute 0 10.01 real 3.88 user 41.80 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 294498, close 286721, bind 53723, connect 940291, delroute 0 0m10.01s real 0m01.04s user 0m20.94s 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 344040, close 301118, bind 208250, connect 813955, delroute 0 0m10.00s real 0m01.09s user 0m22.90s 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 320950, close 293381, bind 0, connect 785040, delroute 45579 0m10.01s real 0m00.94s user 0m26.50s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 934964, close 673524, bind 393777, connect 0, delroute 0 10.00 real 1.09 user 38.90 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 845538, close 469543, bind 0, connect 315412, delroute 0 10.01 real 0.77 user 29.87 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 866462, close 522334, bind 143617, connect 171932, delroute 0 10.01 real 1.01 user 31.68 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 460318, close 287447, bind 195473, connect 234205, delroute 0 10.49 real 0.82 user 25.65 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 381523, close 1904501, bind 1518687, connect 1604036, delroute 0 10.01 real 3.98 user 44.30 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 813563, close 541781, bind 58718, connect 383555, delroute 0 0m10.00s real 0m00.95s user 0m33.83s 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 879814, close 589226, bind 155040, connect 191690, delroute 0 0m10.01s real 0m01.06s user 0m34.14s 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 675251, close 501411, bind 0, connect 315156, delroute 60782 0m10.01s real 0m01.12s user 0m35.56s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1101539, close 804450, bind 2462287, connect 0, delroute 0 10.01 real 3.00 user 76.00 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 879904, close 827219, bind 0, connect 761351, delroute 0 10.01 real 1.49 user 39.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 966024, close 897072, bind 551739, connect 467417, delroute 0 10.01 real 1.65 user 45.71 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 775141, close 585214, bind 772374, connect 629085, delroute 0 10.36 real 1.71 user 48.58 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 502832, close 1722274, bind 1870340, connect 1752935, delroute 0 10.01 real 4.74 user 54.13 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 859180, close 865239, bind 140200, connect 725316, delroute 0 0m10.00s real 0m01.70s user 0m41.27s 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 983006, close 930774, bind 508007, connect 438201, delroute 0 0m10.00s real 0m01.69s user 0m44.93s 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 623240, close 632806, bind 0, connect 562079, delroute 98008 0m10.01s real 0m01.23s user 0m43.16s 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 339786 1.00 real 0.10 user 0.90 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 176474 0m01.00s real 0m00.09s user 0m00.93s system PASS sys/netinet/bindconnect Duration 8m17.20s