START sys/netinet/bindconnect 2024-12-25T05:10:52Z ==== 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 416940, close 383207, bind 1274123, connect 1045635, delroute 0 10.01 real 2.41 user 28.05 sys ==== run-inet-udp-bind ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 892374, close 412219, bind 7933680, connect 0, delroute 0 10.01 real 7.35 user 72.36 sys ==== run-inet-udp-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 18563, close 14674, bind 0, connect 2009623, delroute 0 10.01 real 1.86 user 69.75 sys ==== run-inet-udp-bind-connect ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 88996, close 62646, bind 2112109, connect 1204313, delroute 0 10.01 real 2.72 user 67.20 sys ==== run-inet-udp-100000 ==== time ./bindconnect -f inet -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 71490, close 75279, bind 854127, connect 574353, delroute 0 10.12 real 1.10 user 39.26 sys ==== run-inet-udp-reuseport ==== time ./bindconnect -f inet -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 86893, close 177956, bind 2318123, connect 1420228, delroute 0 10.00 real 2.87 user 65.89 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 20099, close 16654, bind 519446, connect 1877990, delroute 0 10.01 real 2.07 user 72.28 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 83917, close 59080, bind 2031993, connect 1112797, delroute 0 10.01 real 2.40 user 67.03 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 36229, close 28639, bind 0, connect 1562323, delroute 18427 10.01 real 1.69 user 71.54 sys ==== run-inet-tcp-bind ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 664014, close 466252, bind 2694618, connect 0, delroute 0 10.01 real 2.15 user 68.07 sys ==== run-inet-tcp-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 353923, close 362611, bind 0, connect 1852089, delroute 0 10.01 real 1.89 user 61.53 sys ==== run-inet-tcp-bind-connect ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 366968, close 387495, bind 949746, connect 944471, delroute 0 10.01 real 2.01 user 62.07 sys ==== run-inet-tcp-100000 ==== time ./bindconnect -f inet -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 101421, close 119915, bind 407314, connect 414477, delroute 0 10.53 real 0.63 user 23.90 sys ==== run-inet-tcp-reuseport ==== time ./bindconnect -f inet -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 305649, close 944106, bind 1721085, connect 1780668, delroute 0 10.00 real 3.74 user 62.22 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 344704, close 537888, bind 318279, connect 1956129, delroute 0 10.01 real 2.56 user 70.71 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 354004, close 627337, bind 1063511, connect 1128086, delroute 0 10.01 real 2.53 user 68.52 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 347186, close 275978, bind 0, connect 1709239, delroute 143273 10.01 real 2.12 user 67.57 sys ==== run-inet-any-bind ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 492672, close 252352, bind 8744265, connect 0, delroute 0 10.01 real 7.27 user 72.48 sys ==== run-inet-any-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 6308, close 4624, bind 0, connect 1575346, delroute 0 10.01 real 1.36 user 68.13 sys ==== run-inet-any-bind-connect ==== time ./bindconnect -f inet -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 36685, close 24581, bind 1807433, connect 876096, delroute 0 10.01 real 2.16 user 63.79 sys ==== run-inet-any-100000 ==== time ./bindconnect -f inet -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 128134, close 95171, bind 2746720, connect 1426588, delroute 0 10.21 real 3.40 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 39378, close 86540, bind 1917572, connect 1046545, delroute 0 10.00 real 2.26 user 63.38 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 38383, close 4938, bind 411256, connect 1384268, delroute 0 10.01 real 1.50 user 70.73 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 44594, close 24555, bind 1758370, connect 853566, delroute 0 10.01 real 2.01 user 64.43 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 64993, close 10355, bind 0, connect 1184414, delroute 8180 10.01 real 1.12 user 69.99 sys ==== run-inet6-udp-bind ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 804738, close 240467, bind 8878888, connect 0, delroute 0 10.01 real 7.74 user 72.31 sys ==== run-inet6-udp-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 10074, close 8402, bind 0, connect 1743170, delroute 0 10.01 real 1.45 user 69.04 sys ==== run-inet6-udp-bind-connect ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 73641, close 42079, bind 1817836, connect 943095, delroute 0 10.01 real 2.10 user 66.92 sys ==== run-inet6-udp-100000 ==== time ./bindconnect -f inet6 -p udp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 72124, close 84296, bind 1129454, connect 716650, delroute 0 10.14 real 1.52 user 43.23 sys ==== run-inet6-udp-reuseport ==== time ./bindconnect -f inet6 -p udp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 67923, close 208856, bind 2174073, connect 1310027, delroute 0 10.00 real 2.85 user 65.49 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 76602, close 8829, bind 438081, connect 1539493, delroute 0 0m10.01s real 0m01.93s user 1m12.17s 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 59006, close 39116, bind 1740485, connect 877728, delroute 0 0m10.01s real 0m02.44s user 1m06.49s 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 21592, close 19962, bind 0, connect 1320341, delroute 10785 0m10.01s real 0m01.34s user 1m11.47s system ==== run-inet6-tcp-bind ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 647865, close 473737, bind 2667992, connect 0, delroute 0 10.01 real 2.25 user 67.05 sys ==== run-inet6-tcp-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 296881, close 335574, bind 0, connect 1769831, delroute 0 10.01 real 1.49 user 60.86 sys ==== run-inet6-tcp-bind-connect ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 318881, close 348083, bind 886666, connect 899353, delroute 0 10.00 real 1.95 user 61.16 sys ==== run-inet6-tcp-100000 ==== time ./bindconnect -f inet6 -p tcp -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 100010, close 133466, bind 462020, connect 483621, delroute 0 10.58 real 0.93 user 25.61 sys ==== run-inet6-tcp-reuseport ==== time ./bindconnect -f inet6 -p tcp -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 263243, close 1066042, bind 1767794, connect 1888409, delroute 0 10.01 real 4.15 user 60.70 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 389919, close 421646, bind 342269, connect 2060773, delroute 0 0m10.00s real 0m02.69s user 1m08.28s 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 417283, close 468400, bind 1104483, connect 1111801, delroute 0 0m10.01s real 0m02.30s user 1m05.52s 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 297334, close 251720, bind 0, connect 1601679, delroute 99453 0m10.01s real 0m02.03s user 1m04.45s system ==== run-inet6-any-bind ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 6 -c 0 count: socket 514650, close 231729, bind 8804548, connect 0, delroute 0 10.01 real 7.24 user 72.55 sys ==== run-inet6-any-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 0 -c 6 count: socket 5221, close 3500, bind 0, connect 1582202, delroute 0 10.01 real 1.44 user 68.06 sys ==== run-inet6-any-bind-connect ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 count: socket 37159, close 26110, bind 1810768, connect 844996, delroute 0 10.01 real 1.73 user 64.13 sys ==== run-inet6-any-100000 ==== time ./bindconnect -f inet6 -p any -n 100000 -s 2 -o 1 -b 3 -c 3 count: socket 126730, close 104484, bind 2769087, connect 1436061, delroute 0 10.22 real 3.00 user 63.95 sys ==== run-inet6-any-reuseport ==== time ./bindconnect -f inet6 -p any -n 16 -s 2 -o 1 -b 3 -c 3 -r count: socket 39433, close 96853, bind 1959812, connect 1054553, delroute 0 10.00 real 2.41 user 62.92 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 6885, close 5438, bind 413443, connect 1363252, delroute 0 0m10.01s real 0m01.50s user 1m10.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 35590, close 24525, bind 1765692, connect 847765, delroute 0 0m10.01s real 0m02.09s user 1m03.82s 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 13979, close 9327, bind 0, connect 1193283, delroute 7123 0m10.01s real 0m01.18s user 1m10.24s 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 341322 1.00 real 0.20 user 0.84 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 172196 0m01.00s real 0m00.11s user 0m00.89s system PASS sys/netinet/bindconnect Duration 8m16.82s