Date: Tue, 30 Mar 2021 17:27:02 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 254333] [tcp] sysctl net.inet.tcp.hostcache.list hangs Message-ID: <bug-254333-7501-2YzHU6qSJL@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-254333-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-254333-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254333 --- Comment #16 from Michael Tuexen <tuexen@freebsd.org> --- Please note that you should not be able to set the net.inet.tcp.hostcache.cachelimit too high. It is set automatically to net.inet.tcp.hostcache.bucketlimit * net.inet.tcp.hostcache.hashsize and you should only the able to reduce it. If you provide a larger value in /boot/loader.conf, the setting should be ignored and the above default shou= ld be used. The setting you show indicates that you set net.inet.tcp.hostcache.hashsize= to 65536, leave net.inet.tcp.hostcache.bucketlimit at the default of 30, and t= he net.inet.tcp.hostcache.cachelimit is set automatically. However, net.inet.tcp.hostcache.count should always be between 0 (inclusive) and net.inet.tcp.hostcache.cachelimit (inclusive). So I would really like to understand how you end up with such a large net.inet.tcp.hostcache.count. This really blows up the sysctl operation, si= nce the code wants to allocate linesize * (V_tcp_hostcache.cache_count + 1) byt= es, which is much higher than the limit Richard computed... --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254333-7501-2YzHU6qSJL>