START sys/netinet/bindconnect 2024-12-25T16:35:07Z ==== 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 401123, close 361201, bind 1279024, connect 1022248, delroute 0 10.01 real 1.93 user 27.75 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 898242, close 444262, bind 7620833, connect 0, delroute 0 10.01 real 6.83 user 72.78 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 20048, close 14226, bind 0, connect 2011163, delroute 0 10.01 real 1.95 user 70.14 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 164230, close 53480, bind 1978403, connect 1096605, delroute 0 10.01 real 2.50 user 66.98 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 68174, close 66221, bind 689786, connect 477264, delroute 0 10.14 real 0.87 user 37.12 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 82193, close 137172, bind 2227842, connect 1308052, delroute 0 10.01 real 2.74 user 65.87 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 27985, close 16291, bind 506332, connect 1739029, delroute 0 10.01 real 2.02 user 71.96 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 86671, close 57611, bind 1989775, connect 1070523, delroute 0 10.01 real 2.53 user 66.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 30599, close 24089, bind 0, connect 1517664, delroute 15977 10.01 real 1.53 user 71.29 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 624759, close 358081, bind 2960116, connect 0, delroute 0 10.01 real 2.82 user 68.49 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 381282, close 230016, bind 0, connect 2028161, delroute 0 10.01 real 2.01 user 63.25 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 384719, close 249039, bind 1043149, connect 1018779, delroute 0 10.01 real 1.99 user 63.28 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 86920, close 79920, bind 353666, connect 362331, delroute 0 10.54 real 0.63 user 20.97 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 332162, close 492211, bind 1431950, connect 1424039, delroute 0 10.01 real 2.53 user 62.99 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 356975, close 334391, bind 311737, connect 1899956, delroute 0 10.01 real 2.33 user 72.10 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 324987, close 382310, bind 922300, connect 996642, delroute 0 10.01 real 1.88 user 69.59 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 368086, close 207643, bind 0, connect 1946562, delroute 191902 10.01 real 2.16 user 68.29 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 467443, close 261831, bind 8707738, connect 0, delroute 0 10.01 real 7.65 user 72.16 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 34163, close 4351, bind 0, connect 1468511, delroute 0 10.01 real 1.12 user 69.02 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34278, close 22408, bind 1778735, connect 847036, delroute 0 10.01 real 2.11 user 64.26 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127567, close 92392, bind 2685359, connect 1388274, delroute 0 10.20 real 3.05 user 64.17 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 34196, close 67059, bind 1887837, connect 992504, delroute 0 10.00 real 2.09 user 63.43 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 6634, close 4377, bind 403625, connect 1328456, delroute 0 10.01 real 1.36 user 70.83 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 36162, close 21293, bind 1764619, connect 842127, delroute 0 10.01 real 2.08 user 64.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 14821, close 9425, bind 0, connect 1160160, delroute 7499 10.01 real 1.00 user 70.55 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 854019, close 254288, bind 8643881, connect 0, delroute 0 10.01 real 7.83 user 71.97 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10732, close 8600, bind 0, connect 1676390, delroute 0 10.01 real 1.43 user 69.40 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 72809, close 38443, bind 1786919, connect 910671, delroute 0 10.01 real 2.13 user 67.10 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72396, close 88426, bind 1180974, connect 743614, delroute 0 10.13 real 1.41 user 43.98 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 57629, close 137525, bind 2030108, connect 1154650, delroute 0 10.00 real 2.72 user 65.79 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 12116, close 9542, bind 432674, connect 1498391, delroute 0 0m10.01s real 0m01.82s user 1m12.57s 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 74858, close 37423, bind 1697006, connect 861202, delroute 0 0m10.01s real 0m02.06s user 1m06.79s 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 20896, close 15535, bind 0, connect 1241936, delroute 10618 0m10.01s real 0m01.15s user 1m11.82s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 604975, close 358278, bind 2841010, connect 0, delroute 0 10.01 real 2.35 user 68.94 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 323247, close 188494, bind 0, connect 1847846, delroute 0 10.01 real 1.81 user 62.08 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 330692, close 212614, bind 947873, connect 952904, delroute 0 10.00 real 1.76 user 61.32 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 85937, close 83984, bind 388319, connect 401478, delroute 0 10.57 real 0.62 user 22.13 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 281614, close 466714, bind 1302425, connect 1356443, delroute 0 10.00 real 2.63 user 61.04 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 441248, close 255405, bind 380948, connect 2239831, delroute 0 0m10.00s real 0m02.69s user 1m09.26s 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 443068, close 286764, bind 1183552, connect 1185140, delroute 0 0m10.01s real 0m02.31s user 1m05.40s 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 307506, close 178857, bind 0, connect 1741243, delroute 125451 0m10.01s real 0m01.85s user 1m05.20s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 487607, close 262166, bind 8769302, connect 0, delroute 0 10.00 real 7.67 user 72.04 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5551, close 4177, bind 0, connect 1497438, delroute 0 10.01 real 1.32 user 68.25 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 34845, close 23887, bind 1750865, connect 827538, delroute 0 10.01 real 2.17 user 64.10 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126133, close 98037, bind 2648500, connect 1386696, delroute 0 10.22 real 3.16 user 63.18 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 36813, close 89459, bind 1895456, connect 1007949, delroute 0 10.00 real 2.13 user 63.41 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 6029, close 5039, bind 404809, connect 1325291, delroute 0 0m10.00s real 0m01.37s user 1m10.67s 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 60723, close 22262, bind 1730415, connect 825749, delroute 0 0m10.01s real 0m01.93s user 1m04.30s 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 12658, close 8997, bind 0, connect 1157657, delroute 6445 0m10.01s real 0m01.04s user 1m09.94s 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 343889 1.00 real 0.14 user 0.86 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 173619 0m01.00s real 0m00.05s user 0m00.95s system PASS sys/netinet/bindconnect Duration 8m16.83s