From owner-freebsd-questions@FreeBSD.ORG Mon Mar 21 23:56:22 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59EDB16A4CE for ; Mon, 21 Mar 2005 23:56:22 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF45D43D55 for ; Mon, 21 Mar 2005 23:56:21 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j2LNuLPC059498; Mon, 21 Mar 2005 17:56:21 -0600 (CST) (envelope-from dan) Date: Mon, 21 Mar 2005 17:56:21 -0600 From: Dan Nelson To: Andrew Robinson Message-ID: <20050321235620.GL5243@dan.emsphone.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-questions@freebsd.org Subject: Re: Increasing system message buffer size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 23:56:22 -0000 In the last episode (Mar 21), Andrew Robinson said: > I'm working on a problem that would benefit from verbose logging of > the boot process. Unfortunately my logging is SO verbose that it > fills up the available system buffer. I'm trying to figure out how > to change the buffer size. I'm on 5.3 Stable. > > It looks like one way to do it might be to recompile the kernel, with > > options MSGBUF_SIZE=65536 > > set. Is that the best way? If so, what is the default size of the > buffer? I checked NOTES in /usr/src/sys/i386/conf but couldn't find > any reference to it. Yes, that's the only way to do it. It might be possible to convert it into a tunable (which would let you set it in /boot/loader.conf), but I don't know how early in the boot process tunables are available. The default is 32768 (see /sys/sys/msbguf.h). -- Dan Nelson dnelson@allantgroup.com