START sys/netinet/bindconnect 2024-12-29T01:10:33Z ==== 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 414790, close 389469, bind 1247369, connect 1041283, delroute 0 10.00 real 2.13 user 28.17 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 926591, close 400690, bind 7996235, connect 0, delroute 0 10.01 real 7.09 user 72.74 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 22744, close 16446, bind 0, connect 1976959, delroute 0 10.01 real 1.71 user 69.23 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 324973, close 59700, bind 1870417, connect 1075943, delroute 0 10.01 real 2.28 user 67.48 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72094, close 76398, bind 822286, connect 571605, delroute 0 10.12 real 1.10 user 39.67 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 87923, close 161374, bind 2264161, connect 1372510, delroute 0 10.00 real 3.12 user 66.06 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 86903, close 15368, bind 493802, connect 1736916, delroute 0 10.00 real 2.15 user 72.39 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 119567, close 57541, bind 1987591, connect 1091293, delroute 0 10.01 real 2.71 user 67.12 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 35073, close 24312, bind 0, connect 1478870, delroute 17658 10.01 real 1.49 user 71.07 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 594199, close 373994, bind 7238309, connect 0, delroute 0 10.01 real 6.29 user 72.65 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 371681, close 235088, bind 0, connect 3197823, delroute 0 10.01 real 3.08 user 63.61 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 361827, close 237431, bind 1870938, connect 1953802, delroute 0 10.01 real 3.43 user 65.40 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79264, close 88012, bind 622927, connect 592781, delroute 0 10.54 real 1.01 user 29.00 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 290532, close 401736, bind 2222243, connect 2297702, delroute 0 10.01 real 3.96 user 63.90 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 342202, close 171698, bind 689544, connect 3698996, delroute 0 10.01 real 4.53 user 73.22 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 184035, close 156221, bind 2701709, connect 1768408, delroute 0 10.00 real 3.96 user 72.93 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 354258, close 210117, bind 0, connect 2442272, delroute 187300 10.01 real 2.84 user 68.65 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 459426, close 264023, bind 8825898, connect 0, delroute 0 10.01 real 7.29 user 72.80 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6668, close 4430, bind 0, connect 1483036, delroute 0 10.01 real 1.30 user 68.85 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38121, close 25669, bind 1759101, connect 852760, delroute 0 10.01 real 1.98 user 64.48 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 129686, close 96338, bind 2645641, connect 1386699, delroute 0 10.21 real 3.12 user 64.80 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 69717, close 77830, bind 1870243, connect 1012089, delroute 0 10.00 real 2.44 user 63.59 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 7222, close 4823, bind 401581, connect 1333309, delroute 0 10.00 real 1.50 user 71.09 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 36151, close 24163, bind 1750085, connect 857647, delroute 0 10.01 real 1.88 user 65.11 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 15651, close 10738, bind 0, connect 1172191, delroute 7730 10.01 real 1.09 user 70.10 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 842030, close 255251, bind 8840273, connect 0, delroute 0 10.01 real 7.64 user 72.26 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 37177, close 8349, bind 0, connect 1668598, delroute 0 10.01 real 1.42 user 69.96 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 81129, close 41206, bind 1778318, connect 925923, delroute 0 10.00 real 2.01 user 67.60 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72600, close 86746, bind 1147729, connect 725278, delroute 0 10.14 real 1.65 user 43.01 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 64253, close 170975, bind 2079774, connect 1224001, delroute 0 10.01 real 2.56 user 65.57 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 11388, close 9887, bind 438843, connect 1515685, delroute 0 0m10.00s real 0m01.78s user 1m12.36s 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 58117, close 39843, bind 1695152, connect 860902, delroute 0 0m10.01s real 0m02.56s user 1m06.11s 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 23633, close 19229, bind 0, connect 1230141, delroute 11629 0m10.01s real 0m01.46s user 1m11.20s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 589156, close 368612, bind 7181612, connect 0, delroute 0 10.01 real 6.92 user 71.61 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 333564, close 208999, bind 0, connect 2977103, delroute 0 10.00 real 3.07 user 62.33 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 325337, close 218069, bind 1723129, connect 1844438, delroute 0 10.00 real 3.27 user 64.14 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79089, close 96446, bind 685613, connect 649516, delroute 0 10.56 real 1.10 user 30.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 255679, close 419759, bind 2095428, connect 2194549, delroute 0 10.01 real 4.09 user 62.13 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 511460, close 237352, bind 578724, connect 3589653, delroute 0 0m10.01s real 0m04.17s user 1m11.30s 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 487165, close 282664, bind 2235880, connect 2272786, delroute 0 0m10.00s real 0m04.09s user 1m10.32s 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 301723, close 186234, bind 0, connect 2165298, delroute 122355 0m10.01s real 0m02.53s user 1m05.64s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 516992, close 245369, bind 8828543, connect 0, delroute 0 10.00 real 7.73 user 72.10 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6211, close 5121, bind 0, connect 1498097, delroute 0 10.00 real 1.24 user 68.63 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 38235, close 26438, bind 1746845, connect 835123, delroute 0 10.01 real 1.67 user 64.50 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 127274, close 104014, bind 2682166, connect 1400834, delroute 0 10.21 real 3.19 user 63.06 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 43177, close 116228, bind 1940038, connect 1068997, delroute 0 10.00 real 2.28 user 63.16 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 7060, close 5799, bind 412904, connect 1346660, delroute 0 0m10.01s real 0m01.44s user 1m11.40s 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 36585, close 25824, bind 1727900, connect 840555, delroute 0 0m10.00s real 0m01.87s user 1m04.41s 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 14981, close 11179, bind 0, connect 1161503, delroute 7529 0m10.01s real 0m00.92s user 1m09.48s 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 341075 1.00 real 0.08 user 0.92 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 172315 0m01.00s real 0m00.09s user 0m00.92s system PASS sys/netinet/bindconnect Duration 8m16.83s