From owner-freebsd-stable@FreeBSD.ORG Tue Nov 15 21:11:48 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org 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 742E516A41F; Tue, 15 Nov 2005 21:11:48 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.4/8.13.1) with ESMTP id jAFLBllX009354; Tue, 15 Nov 2005 16:11:47 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.4/8.13.1/Submit) id jAFLBlFH009353; Tue, 15 Nov 2005 16:11:47 -0500 (EST) (envelope-from green) Date: Tue, 15 Nov 2005 16:11:47 -0500 From: Brian Fundakowski Feldman To: Lars Kristiansen Message-ID: <20051115211147.GC76352@green.homeunix.org> References: <20051115065740.GH39882@cirb503493.alcatel.com.au> <20051115101537.38820.qmail@web36208.mail.mud.yahoo.com> <20051115181822.GB76352@green.homeunix.org> <55810.213.236.228.129.1132087797.squirrel@mail.adventuras.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55810.213.236.228.129.1132087797.squirrel@mail.adventuras.no> User-Agent: Mutt/1.5.11 Cc: freebsd-stable@freebsd.org Subject: Re: Swapfile problem in 6? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2005 21:11:48 -0000 On Tue, Nov 15, 2005 at 09:49:57PM +0100, Lars Kristiansen wrote: > > On Tue, Nov 15, 2005 at 02:15:37AM -0800, Rob wrote: > >> > >> One more thing, for those who are reading this thread. > >> > >> Concerning my kernel locking up while using a > >> swapfile: > >> > >> I had an infinite while loop running during the > >> kernel compilation, printing out 'swapinfo' every > >> 15 seconds. The last output before the machine goes > >> dead is this: > >> > >> /dev/ad0s1b 39848 11820 39848 30% > >> /dev/md0 131072 5908 131072 5% > >> Total 170920 17728 153192 10% > >> > >> which means that swap space is OK right before the > >> freeze, but within 15 seconds from here, the kernel > >> locks up.... > > > > In my experience, fifteen seconds is enough to fill up 130+MB of swap, > > so a much smaller polling interval is necessary. > > Probably true, but when trying with only one swap partition instead of > swapfile, and that partition gets filled up, the build process failed and > the computer continued to work as normal. Yeah, it sounds like you're running into a buffer cache/VFS/VM deadlock. They're nasty, but generally not hard to fix individually. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\