Date: Fri, 02 Oct 2009 15:20:41 -0400 From: Skip Ford <skip@menantico.com> To: Igor Sysoev <is@rambler-co.ru> Cc: freebsd-net@freebsd.org Subject: Re: stuck TIME_WAIT sockets Message-ID: <20091002192041.GB1168@menantico.com> In-Reply-To: <20091002182927.GA63007@rambler-co.ru> References: <20091002130646.GC89571@rambler-co.ru> <20091002180621.GA1168@menantico.com> <20091002182927.GA63007@rambler-co.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Igor Sysoev wrote: > On Fri, Oct 02, 2009 at 02:06:21PM -0400, Skip Ford wrote: > > Igor Sysoev wrote: > > > The TIME_WAIT sockets suddenly started to grow on a host running > > > FreeBSD 7.2-STABLE, date=2009.09.06.23.59.59 > > > Usually there are 3,000-5,000 TIME_WAIT sockets on the host. > > > However, today they stared to grow, have reached 110,000 sockets in hour > > > and still remain on this level. > > > net.inet.tcp.msl is 30000. > > > The host uptime is 24 days, 21:53. > > > > Perhaps you need this patch? > > > > Author: peter > > Date: Thu Aug 20 22:53:28 2009 > > New Revision: 196410 > > URL: http://svn.freebsd.org/changeset/base/196410 > > > > Log: > > Fix signed comparison bug when ticks goes negative after 24 days of > > uptime. This causes the tcp time_wait state code to fail to expire > > sockets in timewait state. > > > > Approved by: re (kensmith) > > > > Modified: > > head/sys/netinet/tcp_timewait.c > > Thank you. You're welcome. There've been quite a few ticks-related commits lately, so you might need some of those before this one. Also, there's no 'MFC after' with this commit, which would worry me a little if I were you applying it to 7.2. Seems like a simple fix for a problem you appear to be hitting, however. -- Skip
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091002192041.GB1168>