START sys/netinet/bindconnect 2024-12-24T00:27:01Z ==== 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 401805, close 407591, bind 1254416, connect 1058932, delroute 0 10.01 real 2.37 user 27.77 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 949761, close 394705, bind 7644444, connect 0, delroute 0 10.01 real 7.37 user 72.33 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 20424, close 15317, bind 0, connect 2002632, delroute 0 10.01 real 1.51 user 69.62 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 315896, close 58125, bind 1830881, connect 1082360, delroute 0 10.01 real 2.60 user 66.72 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71439, close 72222, bind 762423, connect 503614, delroute 0 10.14 real 1.14 user 37.08 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 85674, close 170621, bind 2284289, connect 1394706, delroute 0 10.01 real 3.04 user 65.99 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 88410, close 14971, bind 499764, connect 1739686, delroute 0 10.01 real 2.04 user 72.51 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 82884, close 57377, bind 1991224, connect 1081586, delroute 0 10.01 real 2.49 user 66.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 101711, close 24800, bind 0, connect 1466907, delroute 16680 10.01 real 1.37 user 71.59 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 662997, close 473747, bind 2702150, connect 0, delroute 0 10.01 real 2.36 user 66.84 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 357723, close 377204, bind 0, connect 1893130, delroute 0 10.01 real 1.89 user 61.37 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 378497, close 409066, bind 988579, connect 1001472, delroute 0 10.01 real 1.79 user 62.25 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101314, close 121350, bind 398997, connect 401703, delroute 0 10.58 real 0.73 user 23.64 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 311156, close 986602, bind 1826520, connect 1833044, delroute 0 10.01 real 3.66 user 63.09 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 364089, close 556994, bind 337443, connect 2057092, delroute 0 10.01 real 2.72 user 70.56 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 372813, close 647435, bind 1104688, connect 1160165, delroute 0 10.01 real 2.36 user 68.60 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 353673, close 290075, bind 0, connect 1762190, delroute 152404 10.01 real 1.86 user 67.37 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 480149, close 274465, bind 8487366, connect 0, delroute 0 10.01 real 7.16 user 71.91 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 13242, close 9293, bind 0, connect 1463196, delroute 0 10.00 real 1.25 user 62.83 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 59533, close 41027, bind 1489349, connect 843617, delroute 0 10.01 real 1.65 user 57.98 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 139526, close 98551, bind 2199905, connect 1272610, delroute 0 10.22 real 3.00 user 58.38 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 39096, close 86038, bind 1884891, connect 1027569, delroute 0 10.01 real 2.50 user 62.07 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 10514, close 5360, bind 402668, connect 1354490, delroute 0 10.00 real 1.62 user 70.93 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 35353, close 23285, bind 1776877, connect 858648, delroute 0 10.01 real 1.91 user 64.42 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 15782, close 10067, bind 0, connect 1175145, delroute 7865 10.01 real 0.96 user 70.42 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 813080, close 246371, bind 8708149, connect 0, delroute 0 10.01 real 7.19 user 72.77 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10027, close 9085, bind 0, connect 1720825, delroute 0 10.01 real 1.54 user 69.17 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 93265, close 39275, bind 1770744, connect 918242, delroute 0 10.01 real 2.16 user 67.28 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72343, close 86780, bind 1141680, connect 710120, delroute 0 10.15 real 1.64 user 43.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 63867, close 182621, bind 2097993, connect 1258108, delroute 0 10.00 real 2.72 user 66.35 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 16491, close 9184, bind 439401, connect 1524446, delroute 0 0m10.01s real 0m01.76s user 1m12.64s 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 55571, close 38270, bind 1721109, connect 867172, delroute 0 0m10.01s real 0m02.29s user 1m06.88s 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 21914, close 18646, bind 0, connect 1274338, delroute 10789 0m10.01s real 0m01.21s user 1m11.69s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 660169, close 472296, bind 2697582, connect 0, delroute 0 10.01 real 2.48 user 67.96 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 300038, close 344719, bind 0, connect 1794907, delroute 0 10.01 real 1.75 user 61.23 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 325425, close 372748, bind 916831, connect 934971, delroute 0 10.01 real 1.86 user 61.75 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 98671, close 128931, bind 458227, connect 469317, delroute 0 10.57 real 0.86 user 25.02 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 264861, close 1119356, bind 1842368, connect 1954976, delroute 0 10.00 real 3.87 user 61.09 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 393059, close 464204, bind 359142, connect 2164141, delroute 0 0m10.00s real 0m02.77s user 1m08.64s 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 426664, close 492014, bind 1145567, connect 1149030, delroute 0 0m10.00s real 0m02.18s user 1m05.50s 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 298654, close 255211, bind 0, connect 1608317, delroute 100802 0m10.00s real 0m01.90s user 1m05.30s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 532613, close 243805, bind 8616030, connect 0, delroute 0 10.00 real 7.70 user 72.20 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5991, close 4424, bind 0, connect 1550320, delroute 0 10.01 real 1.33 user 68.19 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 48867, close 25296, bind 1766601, connect 836595, delroute 0 10.01 real 1.77 user 64.14 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126320, close 102607, bind 2671159, connect 1407631, delroute 0 10.21 real 3.17 user 62.54 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 40903, close 92113, bind 1920522, connect 1031984, delroute 0 10.01 real 2.41 user 62.35 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 6746, close 5496, bind 414874, connect 1368003, delroute 0 0m10.01s real 0m01.71s user 1m10.82s 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 35708, close 24868, bind 1751378, connect 840966, delroute 0 0m10.01s real 0m02.36s user 1m03.24s 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 13217, close 9591, bind 0, connect 1194742, delroute 6804 0m10.01s real 0m01.10s user 1m10.55s 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 345481 1.00 real 0.19 user 0.81 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 175356 0m01.00s real 0m00.08s user 0m00.88s system PASS sys/netinet/bindconnect Duration 8m17.01s