From owner-freebsd-current@FreeBSD.ORG Wed Nov 12 15:53:02 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2913A1065688 for ; Wed, 12 Nov 2008 15:53:02 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id AD7638FC17 for ; Wed, 12 Nov 2008 15:53:01 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by ey-out-2122.google.com with SMTP id 6so203224eyi.7 for ; Wed, 12 Nov 2008 07:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=C/jj0avpnxY+2LN7Gj0rXtmOG84gAHVDfPmeIVOV7p8=; b=NVTHXIvxJeD6b4cLyxVf+7vEtsdK6rH+izpHrqYc+vT7K5jSY9pyD3dFxUeiV9PrYj 0yyljvM0b1SwAZ1PN5lGakizRKtK5+GEtubcNmKYFUJQzIruJKRNPw5Yc8ANfklgjL61 DNyFtffffEPEiaufpbBdHOlWHqAG/dqThpAao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=kqQ6/sXiM8klo/p3YqAlSXhdO4EFIpfEEa2enBCgkBrpRje5J9uRXHyfpxqK5GMV4Z WAn+1Eg+Eysh4CySnn9i241kAHGj4c2wKN/LO9L8BVA7Nay2FfD1y83z0J9b4hBv4o9M vpu4zKkXeYKOZR01sXMeheGH4cBasRC3QAG+A= Received: by 10.86.100.19 with SMTP id x19mr5094597fgb.29.1226505180012; Wed, 12 Nov 2008 07:53:00 -0800 (PST) Received: by 10.86.2.18 with HTTP; Wed, 12 Nov 2008 07:52:59 -0800 (PST) Message-ID: <3bbf2fe10811120752k5e42b912nd0933771696519e0@mail.gmail.com> Date: Wed, 12 Nov 2008 16:52:59 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Jeremy Chadwick" In-Reply-To: <20081112154744.GA28943@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <491AEBB5.8010001@zedat.fu-berlin.de> <20081112154240.GA28818@icarus.home.lan> <3bbf2fe10811120744hd740388s25e7413e84bbb8c1@mail.gmail.com> <20081112154744.GA28943@icarus.home.lan> X-Google-Sender-Auth: 1653a042d8faca4d Cc: freebsd-current@freebsd.org, "O. Hartmann" Subject: Re: fsck_ufs after every reboot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 15:53:02 -0000 2008/11/12, Jeremy Chadwick : > On Wed, Nov 12, 2008 at 04:44:52PM +0100, Attilio Rao wrote: > > 2008/11/12, Jeremy Chadwick : > > > On Wed, Nov 12, 2008 at 02:44:05PM +0000, O. Hartmann wrote: > > > > I run FreeBSD 8.0/AMD64 on two boxes (one is a UP older AMD64 Athlon64 > > > > 3500, other an 8-Core Dell Poweredge 1950). > > > > > > > > After nearly every reboot the box does fsck on all UFS2 filesystems. In > > > > most cases, while shuting down, the box reports about not willing to die > > > > processes and after a reboot, the filesystems are unclean. > > > > > > > > Is this a common problem at the moment or special? > > > > > > > > > I've seen this happen on my CURRENT box at home when using "shutdown -p > > > now". Instead of the box powering off, it would lock up near the very > > > end of the shutdown process (before marking the filesystems clean). > > > > > > Oddly, this works fine in RELENG_7, so I'm guessing there's some ACPI > > > development going on (I can't complain, it *is* CURRENT). > > > > This could cames after my VFS works. > > Could you spend some time on this? > > I will tell you what to look at. > > > Sure thing! > > Let me know what I need to do to help, what information you need, or if > I should revert some commits to see if the behaviour changes. Build > date of the box (src-all csup'd about 45 minutes prior to the build > date): > > FreeBSD icarus.home.lan 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Nov 7 14:19:03 PST 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/X7SBA_CURRENT_amd64 amd64 Is this reproducible? I need you build a kernel with following options: INVARIANT_SUPPORT INVARIANTS DEBUG_VFS_LOCKS WITNESS and without WITNESS_SKIPSPIN once it hangs you have to break in DDB and look the state of the threads with: db> ps This would be a start. Other instructions will follow based on this result. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein