From owner-freebsd-stable@FreeBSD.ORG Wed Apr 27 18:34:36 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5673C16A4CE; Wed, 27 Apr 2005 18:34:36 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j3RIYZKh039680; Wed, 27 Apr 2005 14:34:35 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j3RIYZPa039679; Wed, 27 Apr 2005 14:34:35 -0400 (EDT) (envelope-from green) Date: Wed, 27 Apr 2005 14:34:35 -0400 From: Brian Fundakowski Feldman To: Marc Olzheim Message-ID: <20050427183435.GA39270@green.homeunix.org> References: <20050426140701.GB5789@green.homeunix.org> <20050426151751.GB68038@stack.nl> <20050426155043.GC5789@green.homeunix.org> <20050426160609.GA68511@stack.nl> <20050426162549.GD5789@green.homeunix.org> <20050426164346.GA68763@stack.nl> <20050426193602.GE5789@green.homeunix.org> <20050427081746.GA66441@stack.nl> <20050427160857.GF5789@green.homeunix.org> <20050427171523.GB5984@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050427171523.GB5984@stack.nl> User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org Subject: Re: NFS client/buffer cache deadlock X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 18:34:36 -0000 On Wed, Apr 27, 2005 at 07:15:23PM +0200, Marc Olzheim wrote: > On Wed, Apr 27, 2005 at 12:08:57PM -0400, Brian Fundakowski Feldman wrote: > > > Yes, a single writev(). Just like in the kern/79207 PR. > > > > > > It doesn't have to be superfast (why would I use NFS otherwise), just as > > > long as it's threadsafe / atomic. > > > > Alright, this will do synchronous, instead of short, writes (also, > > of course, not deadlock the system) if you are trying to use an > > excessively large buffer size. > > > > > > > > Great! This seems to do the trick and isn't that slow (about 2.8 MB/sec > over 100 MBit, writing 600 * 1MB, 4.x gets about 5.5 MB/sec on the same > system); it's fast enough for me and more importantly, it doesn't lock > the system down anymore. ;-) > > Thanks a lot! Alright, thanks for helping with this :-) Do you think you can find a way to tell if in 4.x you're actually using NFSv3/transactions? I would really like to know why 4.x isn't deadlocking, and that's the most plausible explanation I can think of right now. The behavior could also be totally different due to nfsiod, lack thereof, or its settings. Are you running nfsiod on 4.x, and if so, how many? On 5.x+ the default maximum of nfsiods is 20. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\