START sys/netinet/bindconnect 2024-12-05T05:24:47Z ==== 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 383249, close 335040, bind 1147465, connect 926171, delroute 0 10.01 real 2.15 user 28.08 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 942620, close 393382, bind 7571726, connect 0, delroute 0 10.01 real 6.57 user 73.04 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 57523, close 10848, bind 0, connect 1628505, delroute 0 10.01 real 1.60 user 66.81 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 79850, close 45498, bind 1682123, connect 954584, delroute 0 10.01 real 1.63 user 64.62 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 69757, close 71358, bind 904685, connect 606858, delroute 0 10.14 real 1.12 user 40.95 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 71249, close 119681, bind 1871838, connect 1147195, delroute 0 10.00 real 2.45 user 63.96 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 13851, close 10934, bind 413531, connect 1523084, delroute 0 10.00 real 1.66 user 70.50 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 61432, close 43251, bind 1642339, connect 892215, delroute 0 10.01 real 2.12 user 63.68 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 26871, close 20659, bind 0, connect 1259670, delroute 12871 10.01 real 1.29 user 69.20 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 563386, close 417989, bind 2377469, connect 0, delroute 0 10.01 real 2.03 user 63.92 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 337134, close 373787, bind 0, connect 1825896, delroute 0 10.01 real 1.83 user 60.16 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 346598, close 382867, bind 920679, connect 899234, delroute 0 10.01 real 1.66 user 60.86 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 103560, close 117683, bind 388020, connect 393579, delroute 0 10.51 real 0.64 user 23.95 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 300829, close 861007, bind 1547482, connect 1560988, delroute 0 10.00 real 3.01 user 60.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 340958, close 498586, bind 300279, connect 1807153, delroute 0 10.01 real 1.99 user 69.00 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 342226, close 626012, bind 1049075, connect 1095869, delroute 0 10.00 real 2.15 user 66.81 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 330253, close 269747, bind 0, connect 1625711, delroute 136813 10.01 real 1.80 user 65.02 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 409945, close 231159, bind 8551927, connect 0, delroute 0 10.01 real 7.24 user 72.47 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 4154, close 2280, bind 0, connect 1216205, delroute 0 10.01 real 1.07 user 65.68 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 23935, close 14833, bind 1405099, connect 676021, delroute 0 10.01 real 1.75 user 61.39 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 104343, close 81106, bind 2309383, connect 1246689, delroute 0 10.17 real 2.78 user 60.66 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 22968, close 43931, bind 1475642, connect 772721, delroute 0 10.00 real 1.66 user 60.35 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 4917, close 3673, bind 325785, connect 1075620, delroute 0 10.01 real 1.26 user 67.74 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 24136, close 14926, bind 1418205, connect 687053, delroute 0 10.01 real 1.51 user 62.39 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 15573, close 7143, bind 0, connect 927867, delroute 6018 10.01 real 0.80 user 68.05 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 684823, close 236596, bind 8859278, connect 0, delroute 0 10.01 real 7.65 user 72.21 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 8511, close 7325, bind 0, connect 1458883, delroute 0 10.01 real 1.37 user 66.66 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 134681, close 30508, bind 1480319, connect 775225, delroute 0 10.01 real 1.75 user 65.67 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71054, close 83558, bind 1219612, connect 768597, delroute 0 10.14 real 1.45 user 46.13 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 47967, close 121537, bind 1714483, connect 997237, delroute 0 10.01 real 2.30 user 64.11 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 40995, close 7286, bind 367620, connect 1283517, delroute 0 0m10.01s real 0m01.69s user 1m10.88s 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 46756, close 33065, bind 1464781, connect 751365, delroute 0 0m10.01s real 0m01.93s user 1m05.28s 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 20832, close 17169, bind 0, connect 1096914, delroute 9560 0m10.00s real 0m01.12s user 1m09.13s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 550261, close 419918, bind 2353531, connect 0, delroute 0 10.01 real 2.37 user 64.38 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 282691, close 320041, bind 0, connect 1693663, delroute 0 10.01 real 1.57 user 59.01 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 303683, close 330072, bind 839351, connect 847106, delroute 0 10.01 real 1.60 user 59.34 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100297, close 130441, bind 436107, connect 466698, delroute 0 10.57 real 0.83 user 25.64 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 249024, close 950781, bind 1554515, connect 1637254, delroute 0 10.01 real 3.28 user 59.71 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 358500, close 408018, bind 318084, connect 1911708, delroute 0 0m10.00s real 0m02.30s user 1m07.49s 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 384968, close 458517, bind 1061819, connect 1060172, delroute 0 0m10.01s real 0m02.02s user 1m03.21s 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 275953, close 241983, bind 0, connect 1517677, delroute 93440 0m10.01s real 0m01.88s user 1m02.84s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 454372, close 224628, bind 8596045, connect 0, delroute 0 10.01 real 7.50 user 72.26 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 3822, close 2363, bind 0, connect 1209439, delroute 0 10.01 real 0.95 user 65.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 24366, close 16090, bind 1379029, connect 662587, delroute 0 10.01 real 1.52 user 60.53 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101148, close 86139, bind 2314962, connect 1275990, delroute 0 10.16 real 2.92 user 60.12 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 23182, close 49061, bind 1446551, connect 751537, delroute 0 10.01 real 1.33 user 60.81 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 4071, close 3099, bind 326629, connect 1075613, delroute 0 0m10.01s real 0m01.31s user 1m07.19s 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 23282, close 15582, bind 1375672, connect 659391, delroute 0 0m10.01s real 0m01.52s user 1m01.60s 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 9701, close 6670, bind 0, connect 903871, delroute 4842 0m10.01s real 0m00.78s user 1m07.26s 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 334218 1.00 real 0.15 user 0.87 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 174302 0m01.00s real 0m00.07s user 0m00.94s system PASS sys/netinet/bindconnect Duration 8m16.73s