From owner-cvs-src@FreeBSD.ORG Mon Jun 20 17:08:11 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.ORG 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 0F86F16A41C; Mon, 20 Jun 2005 17:08:11 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D030C43D53; Mon, 20 Jun 2005 17:08:10 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.4/8.13.4) with ESMTP id j5KH7x2o040409; Mon, 20 Jun 2005 10:07:59 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.4/8.13.1/Submit) id j5KH7vkj040408; Mon, 20 Jun 2005 10:07:57 -0700 (PDT) (envelope-from obrien) Date: Mon, 20 Jun 2005 10:07:57 -0700 From: "David O'Brien" To: Dmitry Pryanishnikov Message-ID: <20050620170757.GA40288@dragon.NUXI.org> References: <20050620124020.H21125@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050620124020.H21125@atlantis.atlantis.dp.ua> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: cvs commit: src/sys/vm uma_int.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@FreeBSD.ORG List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 17:08:11 -0000 On Mon, Jun 20, 2005 at 12:45:37PM +0300, Dmitry Pryanishnikov wrote: > > Hello! > > >Date: Sun, 19 Jun 2005 11:11:00 +0300 > >From: Giorgos Keramidas > >To: Wilko Bulte > >Cc: src-committers@FreeBSD.ORG, Alan Cox , > > cvs-src@FreeBSD.ORG, Alan Cox , > > cvs-all@FreeBSD.ORG, David O'Brien > > > >On 2005-06-17 21:24, Wilko Bulte wrote: > >> On Fri, Jun 17, 2005 at 12:46:58PM -0500, Alan Cox wrote.. > >> > > >> > I recall that 42 was the minimum to fix Eric's panic. I chose 48 so > >> > >Of course it should be 42... > > > >So, who's going to commit this? > > > >% > >% -#define UMA_BOOT_PAGES 48 /* Pages allocated for > >startup % +#define UMA_BOOT_PAGES 42 /* DON'T PANIC */ > > Is it possible to tune this (or ideally, autotune) from the loader (or > during the initialization of the kernel itself)? I'm not sure what advantage there is in allowing this to be tuned from the loader. What we need is to have the kernel itself auto-tune, or we need a much better failure mode. We should have failed much more gracefully than panics that seemed to have no rhyme or reason as to the reason. Meaning the "smoking gun" commit wasn't the same for everyone that hit the panic, nor was the back trace seemingly related to the "bad" commit. It looks like there was an attempt at a better failure mode: sys/vm/uma_core.c:911: panic("UMA: Increase UMA_BOOT_PAGES"); but it wasn't extensive enough and was being triggered in this case. -- -- David (obrien@FreeBSD.org)