START sys/netinet/bindconnect 2025-01-05T05:10:56Z ==== 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 529533, close 857319, bind 1818403, connect 1472396, delroute 0 10.00 real 3.16 user 28.29 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 1212092, close 437674, bind 7448049, connect 0, delroute 0 10.00 real 6.95 user 72.99 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 23299, close 23020, bind 0, connect 2130796, delroute 0 10.01 real 1.90 user 69.64 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 126709, close 105693, bind 2293239, connect 1140959, delroute 0 10.01 real 2.77 user 66.84 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 75216, close 84041, bind 882723, connect 579398, delroute 0 10.14 real 1.31 user 39.27 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 120632, close 339762, bind 2670038, connect 1743153, delroute 0 10.00 real 4.34 user 65.84 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 23026, close 25636, bind 530577, connect 1980771, delroute 0 10.00 real 2.33 user 72.14 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 93779, close 80763, bind 2118358, connect 1176409, delroute 0 10.01 real 2.81 user 66.51 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 38879, close 42925, bind 0, connect 1693937, delroute 19339 10.00 real 1.67 user 71.65 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 557420, close 380457, bind 7496859, connect 0, delroute 0 10.01 real 6.56 user 72.26 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 361301, close 227608, bind 0, connect 3224295, delroute 0 10.01 real 3.51 user 63.15 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 361655, close 231811, bind 1871121, connect 1980660, delroute 0 10.01 real 3.84 user 64.54 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79029, close 89243, bind 642113, connect 603228, delroute 0 10.56 real 1.11 user 30.69 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 289185, close 370091, bind 2197051, connect 2306935, delroute 0 10.00 real 4.44 user 62.70 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 354504, close 168525, bind 660979, connect 3637701, delroute 0 10.00 real 4.18 user 73.17 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 164973, close 143621, bind 2691985, connect 1790572, delroute 0 10.00 real 4.00 user 72.19 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 353407, close 206746, bind 0, connect 2439396, delroute 187304 10.01 real 2.62 user 68.21 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 564654, close 363743, bind 8673999, connect 0, delroute 0 10.00 real 7.44 user 72.61 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6882, close 6284, bind 0, connect 1645603, delroute 0 10.01 real 1.42 user 68.41 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 42568, close 34648, bind 1852701, connect 911261, delroute 0 10.01 real 1.87 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 132603, close 109274, bind 2755379, connect 1448671, delroute 0 10.21 real 3.30 user 64.40 sys ==== run-inet-any-reuseport ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 78123, close 189624, bind 2120669, connect 1258492, delroute 0 10.00 real 2.56 user 63.84 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 25629, close 8346, bind 419632, connect 1455768, delroute 0 10.01 real 1.80 user 70.27 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 38950, close 32069, bind 1825054, connect 903699, delroute 0 10.01 real 2.13 user 65.72 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 16248, close 14562, bind 0, connect 1253835, delroute 7849 10.01 real 1.04 user 70.57 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 845924, close 324402, bind 8895878, connect 0, delroute 0 10.01 real 7.74 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 12034, close 16451, bind 0, connect 1829792, delroute 0 10.01 real 1.58 user 68.76 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 61219, close 54620, bind 1872112, connect 977327, delroute 0 10.00 real 2.15 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 75798, close 97224, bind 1267890, connect 783962, delroute 0 10.16 real 1.63 user 45.51 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 91955, close 388762, bind 2461268, connect 1621055, delroute 0 10.00 real 3.56 user 65.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 13555, close 18008, bind 448718, connect 1622893, delroute 0 0m10.01s real 0m01.97s user 1m12.24s 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 61595, close 62155, bind 1790770, connect 931899, delroute 0 0m10.00s real 0m02.15s user 1m06.85s 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 23754, close 28806, bind 0, connect 1379468, delroute 11207 0m10.00s real 0m01.64s user 1m10.90s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 569779, close 381274, bind 7281035, connect 0, delroute 0 10.01 real 6.66 user 71.90 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 322226, close 207784, bind 0, connect 2990378, delroute 0 10.01 real 2.93 user 62.53 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 322614, close 214797, bind 1701109, connect 1838067, delroute 0 10.01 real 3.32 user 63.37 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 79394, close 96508, bind 699052, connect 665193, delroute 0 10.61 real 1.18 user 32.27 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 250039, close 404495, bind 2086006, connect 2206035, delroute 0 10.01 real 3.69 user 62.76 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 493619, close 238727, bind 567852, connect 3570408, delroute 0 0m10.01s real 0m04.51s user 1m10.80s 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 457566, close 274763, bind 2237195, connect 2304146, delroute 0 0m10.01s real 0m04.61s user 1m09.93s 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 294918, close 187074, bind 0, connect 2164830, delroute 126712 0m10.01s real 0m02.66s user 1m04.74s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 574185, close 334685, bind 8895983, connect 0, delroute 0 10.01 real 7.75 user 72.00 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6549, close 7179, bind 0, connect 1652408, delroute 0 10.01 real 1.51 user 68.01 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 64640, close 33928, bind 1834412, connect 880891, delroute 0 10.01 real 1.86 user 64.78 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 132148, close 120197, bind 2805120, connect 1480833, delroute 0 10.22 real 3.34 user 63.62 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 62422, close 251677, bind 2235861, connect 1365532, delroute 0 10.01 real 2.79 user 63.15 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 23088, close 10328, bind 432673, connect 1468758, delroute 0 0m10.01s real 0m01.70s user 1m09.80s 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 50125, close 33346, bind 1784646, connect 868794, delroute 0 0m10.01s real 0m02.35s user 1m04.34s 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 42162, close 21260, bind 0, connect 1297816, delroute 7920 0m10.01s real 0m01.28s user 1m09.78s 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 345443 1.00 real 0.16 user 0.85 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 173170 0m01.00s real 0m00.04s user 0m00.96s system PASS sys/netinet/bindconnect Duration 8m16.94s