From owner-cvs-src@FreeBSD.ORG Tue Jan 20 20:34:33 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC8C916A4CE; Tue, 20 Jan 2004 20:34:33 -0800 (PST) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D40543D1D; Tue, 20 Jan 2004 20:34:22 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9p2/8.12.9) with ESMTP id i0L4Y97E060593; Tue, 20 Jan 2004 20:34:13 -0800 (PST) (envelope-from truckman@FreeBSD.org) Message-Id: <200401210434.i0L4Y97E060593@gw.catspoiler.org> Date: Tue, 20 Jan 2004 20:34:09 -0800 (PST) From: Don Lewis To: rwatson@FreeBSD.org In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii cc: wpaul@FreeBSD.org cc: src-committers@FreeBSD.org cc: phk@FreeBSD.org cc: bde@zeta.org.au cc: cvs-src@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/alpha support.s src/sys/i386/i386 swtch.s src/sys/kern kern_shutdown.c src/sys/sys systm.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 04:34:34 -0000 On 20 Jan, Robert Watson wrote: > > On Tue, 20 Jan 2004, Don Lewis wrote: > >> It would be extremely helpful to preserve the panic message and >> (optionally) the backtrace across the reboot. Crash dumps may not >> always be possible for any number of reasons (swap smaller than RAM, >> /var/crash too small or overflowing with previous crash dumps, crash >> dump takes too long ...). This is especially true in cases where the >> machine crashes and reboots unattended. > > Actually, I was having a very similar conversation with Bill Paul this > afternoon. We were discussing dropping a copy of the kernel message > buffer onto the header of swap space on panic, if possible, and then > dropping them in /var/log/crash.log for management by newsyslog. Then the > natural response to "My machine spontaneously reboots" becomes "Look for > something recent in /var/log/crash.log", as opposed to "You'll need to > enable crash dumps, set up a serial console", etc. It's also something we > could turn on by default, as opposed to crash dumps, which would otherwise > consume of alot of disk space. That is pretty much what I was thinking of as well, though I thought it should be at the end. I believe that we now swapon early, before fsck, which has to happen before we mount /var ...