From owner-freebsd-net@FreeBSD.ORG Thu Apr 24 08:33:59 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 104581065673 for ; Thu, 24 Apr 2008 08:33:59 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 902C88FC12 for ; Thu, 24 Apr 2008 08:33:58 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 8845 invoked from network); 24 Apr 2008 07:38:16 -0000 Received: from localhost (HELO [127.0.0.1]) ([127.0.0.1]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 24 Apr 2008 07:38:16 -0000 Message-ID: <481045F8.7090904@freebsd.org> Date: Thu, 24 Apr 2008 10:34:00 +0200 From: Andre Oppermann User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) MIME-Version: 1.0 To: Mark Hills References: <20080420025010.GJ73016@server.vk2pj.dyndns.org> <480BBD7E.8010700@freebsd.org> <480C9AC6.8090802@freebsd.org> <480E7901.5000804@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Jeremy , freebsd-net@freebsd.org Subject: Re: read() returns ETIMEDOUT on steady TCP connection X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 08:33:59 -0000 Mark Hills wrote: > On Wed, 23 Apr 2008, Andre Oppermann wrote: > >> http://people.freebsd.org/~andre/tcp_output-error-log.diff >> >> Please apply this patch and enable the sysctl net.inet.tcp.log_debug=1 >> and report any output. You likely get some (normal) noise from syncache. >> What we are looking for is reports from tcp_output. > > Hi Andre, I've applied the patch and tested. > > Aside from syncache noise, I get a constant stream of 'error 55' > (ENOBUFS?), once the number of connection gets to around 150 at 192kbps. > > TCP: [192.168.5.43]:52153 to [192.168.5.40]:8080; tcp_output: error 55 > while sending > > 192.168.5.40 is the IP address of this host, running the server. > > I tried to correlate the point of the application receiving ETIMEDOUT > with these messages, but that is tricky as it seems to be outputting a > lot of messages, and multiple messages over eachother (see below). > > Because of the mention of no buffer space available, I checked the > values of net.inet.tcp.sendbuf* and recvbuf*, and increased the max > values with no effect. > > When I get time I will modify the kernel to print errors which aren't > ENOBUFS to see if there are any others. But in the meantime, this sounds > like a problem to me. Is that correct? Yes. I'll investigate why you get ENOBUFS here despite your netstat -m output not showing any request denied. -- Andre > Mark > > > :8080; tcp_output: error 55 while sending > TCP: [192.168.5.42]:57384T CtPo: > [[119922..116688..55..4402]]::85048400;1 ttoc p[_1o9u2t.p1u6t8:. > 5e.r4r0o]r: 8080;5 5t cwp_hoiultep uste:n deirnrgor 55 while sending > TCP: [192.168.5.42]:57382 to [192.168.5.40]:8080; tcp_output: error 55 > while sending > TCP: [192.168.5.42]:57381 to [192.168.5.40]:8080; tcp_output: error 55 > while sending > TCP: [192.168.5.42]:57380 to [192.168.5.40]:8080; tcp_output: error 55 > while sending > > >