From owner-freebsd-stable@FreeBSD.ORG Fri Feb 1 15:53:10 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6F5F16A41A for ; Fri, 1 Feb 2008 15:53:10 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from mail.vega.ru (infra.dev.vega.ru [90.156.167.14]) by mx1.freebsd.org (Postfix) with ESMTP id 5CACA13C43E for ; Fri, 1 Feb 2008 15:53:09 +0000 (UTC) (envelope-from rermilov@team.vega.ru) Received: from [87.242.97.68] (port=62296 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKyCP-00033l-TM; Fri, 01 Feb 2008 15:53:05 +0000 Received: from edoofus.dev.vega.ru (localhost [127.0.0.1]) by edoofus.dev.vega.ru (8.14.2/8.14.2) with ESMTP id m11Fr4qJ068532; Fri, 1 Feb 2008 18:53:04 +0300 (MSK) (envelope-from rermilov@team.vega.ru) Received: (from ru@localhost) by edoofus.dev.vega.ru (8.14.2/8.14.2/Submit) id m11Fr3vh068531; Fri, 1 Feb 2008 18:53:03 +0300 (MSK) (envelope-from rermilov@team.vega.ru) X-Authentication-Warning: edoofus.dev.vega.ru: ru set sender to rermilov@team.vega.ru using -f Date: Fri, 1 Feb 2008 18:53:03 +0300 From: Ruslan Ermilov To: Peter Holm Message-ID: <20080201155303.GA67875@team.vega.ru> References: <20060921113711.B70668@atlantis.atlantis.dp.ua> <1158833673.4894.5.camel@buffy.york.ac.uk> <20060921131547.GB29308@rambler-co.ru> <20060921151636.GA13806@peter.osted.lan> <20080130170640.GA10170@team.vega.ru> <20080131123539.GA61974@peter.osted.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080131123539.GA61974@peter.osted.lan> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: freebsd-stable@freebsd.org Subject: Re: Minidumps in -STABLE and "smaller than physical memory" 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: Fri, 01 Feb 2008 15:53:11 -0000 On Thu, Jan 31, 2008 at 01:35:39PM +0100, Peter Holm wrote: > On Wed, Jan 30, 2008 at 08:06:40PM +0300, Ruslan Ermilov wrote: > > On Thu, Sep 21, 2006 at 05:16:36PM +0200, Peter Holm wrote: > > > On Thu, Sep 21, 2006 at 05:15:47PM +0400, Ruslan Ermilov wrote: > > > > On Thu, Sep 21, 2006 at 11:14:33AM +0100, Gavin Atkinson wrote: > > > > > On Thu, 2006-09-21 at 11:44 +0300, Dmitry Pryanishnikov wrote: > > > > > > Hello! > > > > > > > > > > > > I've noticed (with the 2-day old RELENG_6) that I still can't configure my > > > > > > 256Mb swap partition as a dump device for i386 machine with 1Gb RAM despite > > > > > > having minidumps enabled: > > > > > > > > > > > > root@test2# sysctl debug.minidump > > > > > > debug.minidump: 1 > > > > > > root@test2# dumpon -v /dev/ad0s3b > > > > > > /dev/ad0s3b is smaller than physical memory > > > > > > > > > > > > Am I correctly understand that minidumps should lift the restriction > > > > > > > > > > > > sizeof(dumpdev) >= sizeof(RAM) > > > > > > > > > > Yes. > > > > > > > > > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/dumpon/dumpon.c.diff?r1=1.22&r2=1.23 > > > > > needs to be MFC'd. > > > > > > > > > I sent an MFC request to re@. > > > > > > > > > > >From time to time I've had problems with minidumps on HEAD. Calling > > > doadump() seems to work ok, but after a reset there's no dump. I > > > haven't had time to test this systematically. Has anybody else seen > > > this problem? > > > > > I think this was the same problem as was diagnosed (minidumps + amd64 + > > SMP). Though it's not fixed yet, it's understood and its damage is > > avoided. > > > No, this was and is i386. After changing "doadump;reset" to > doadump;continue" it would seem that the dumps has a higher chance > of making it to the disk. > "call doadump" and the "continue" renders my systems unusable due to a regression made in kern_shutdown.c,v 1.122. I'm now living with this patch: %%% Index: kern_shutdown.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_shutdown.c,v retrieving revision 1.189 diff -u -p -r1.189 kern_shutdown.c --- kern_shutdown.c 28 Jan 2008 19:04:07 -0000 1.189 +++ kern_shutdown.c 1 Feb 2008 15:40:38 -0000 @@ -249,6 +249,7 @@ doadump(void) else #endif dumpsys(&dumper); + dumping--; } static int %%% Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer