From owner-freebsd-questions@FreeBSD.ORG Mon Apr 23 16:01:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 400B116A401 for ; Mon, 23 Apr 2007 16:01:25 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id E491813C48C for ; Mon, 23 Apr 2007 16:01:24 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 23 Apr 2007 15:34:43 -0000 Date: Mon, 23 Apr 2007 18:34:16 +0300 From: Nikolay Pavlov To: "Marc G. Fournier" , Chris , freebsd-stable@freebsd.org, Thiago Esteves de Oliveira , "Brian A. Seklecki" , freebsd-questions@freebsd.org Message-ID: <20070423153416.GA26026@zone3000.net> Mail-Followup-To: Nikolay Pavlov , "Marc G. Fournier" , Chris , freebsd-stable@freebsd.org, Thiago Esteves de Oliveira , "Brian A. Seklecki" , freebsd-questions@freebsd.org References: <3aaaa3a0704052217g67281716ge8a2d1a888025d0e@mail.gmail.com> <0D3D8201F40120DCE73AD00B@ganymede.hub.org> <3aaaa3a0704071212o3b4dce4dgd8def804e5b1156c@mail.gmail.com> <20070423110610.GA13461@icarus.home.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070423110610.GA13461@icarus.home.lan> User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD 6.1-RELEASE-p10 X-Mailman-Approved-At: Mon, 23 Apr 2007 16:33:22 +0000 Cc: Subject: Re: No buffer space available X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 16:01:25 -0000 On Monday, 23 April 2007 at 4:06:10 -0700, Jeremy Chadwick wrote: > On Sat, Apr 07, 2007 at 08:20:58PM -0300, Marc G. Fournier wrote: > > - --On Saturday, April 07, 2007 20:12:00 +0100 Chris wrote: > > > Also to add I now have a 2nd box using 6.2 STABLE few days old code, > > > had to use it because of broadcom 5755 nic card, I plan to use large > > > tcp window sizes so will be interesting to see if this also suffers > > > from the problem. > > > > I've got 8 servers on the same network, 3 are almost identical, but one of them > > (the one with the problem) is using software RAID vs hardware ... but, if you > > are seeing it without using software RAID, then that is obviously not the > > culprit :( > > May be a red herring... > > I'm able to reproduce the "No buffer space available" message when > setting net.inet.tcp.(send|recv)space to non-default values. All I've > tried is the following, with a kernel dated 2007/04/22: > > # sysctl net.inet.tcp.sendspace=131072 > # sysctl net.inet.tcp.recvspace=262144 > > Example session: > > $ su2 > # sysctl net.inet.tcp.sendspace=131072 > net.inet.tcp.sendspace: 32768 -> 131072 > # sysctl net.inet.tcp.recvspace=262144 > net.inet.tcp.recvspace: 65536 -> 262144 > # logout > $ ssh medusa > socket: No buffer space available > ssh: connect to host medusa port 22: No buffer space available > $ su2 > # sysctl net.inet.tcp.sendspace=32768 > net.inet.tcp.sendspace: 131072 -> 32768 > # sysctl net.inet.tcp.recvspace=65536 > net.inet.tcp.recvspace: 262144 -> 65536 > # logout > $ ssh medusa > Last login: Mon Apr 23 03:45:45 2007 from ... > > I assume this is because the maximum size of a TCP datagram is 65536 > bytes, but as I'm not familiar enough with TCP on such a low level, > this may be speculation on my part. > > Just something worth checking/tinkering with. > Try to adjust kern.ipc.maxsockbuf value. -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================