[Bug 254333] [tcp] sysctl net.inet.tcp.hostcache.list hangs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 9 08:26:30 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254333

--- Comment #26 from Maxim Shalomikhin <maxim.shalomikhin at kaspersky.com> ---
We have one more machine with hanging sysctl.

# sysctl net.inet.tcp.hostcache
net.inet.tcp.hostcache.purgenow: 0
net.inet.tcp.hostcache.purge: 0
net.inet.tcp.hostcache.prune: 300
net.inet.tcp.hostcache.expire: 3600
net.inet.tcp.hostcache.count: 4294961495
net.inet.tcp.hostcache.bucketlimit: 30
net.inet.tcp.hostcache.hashsize: 65536
net.inet.tcp.hostcache.cachelimit: 1966080
net.inet.tcp.hostcache.enable: 1

# netstat -sptcp
...
        195494221 hostcache entries added
                88163 bucket overflow
...

loader.conf:
accf_data_load="YES"
accf_dns_load="YES" 
accf_http_load="YES"
net.inet.tcp.tcbhashsize=131072
net.inet.tcp.syncache.hashsize=65536
net.inet.tcp.syncache.cachelimit=1966080
net.inet.tcp.hostcache.hashsize=65536
net.inet.tcp.hostcache.cachelimit=1966080

sysctl.conf:
net.inet.icmp.drop_redirect=1
net.inet.icmp.icmplim=2000
net.inet.icmp.icmplim_output=1
net.inet.ip.fw.dyn_buckets=2048
net.inet.ip.fw.dyn_max=100000
net.inet.tcp.blackhole=2
net.inet.tcp.drop_synfin=1
net.inet.tcp.fast_finwait2_recycle=1
net.inet.tcp.msl=10000
net.inet.udp.blackhole=1

The issue reproduces every 3-4 months on each of 60 servers in different
locations. All servers are Dell/IBM with different hw specs but all with ECC
RAM, so I don't think this is HW issue.

Please let me know any other information I can collect.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-net mailing list