From owner-freebsd-hackers Sun Nov 25 1:44: 6 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout03.sul.t-online.de (mailout03.sul.t-online.com [194.25.134.81]) by hub.freebsd.org (Postfix) with ESMTP id AA1DE37B405 for ; Sun, 25 Nov 2001 01:44:01 -0800 (PST) Received: from fwd02.sul.t-online.de by mailout03.sul.t-online.de with smtp id 167vpH-0004pb-04; Sun, 25 Nov 2001 10:43:51 +0100 Received: from peedub.muc.de (520017439985-0001@[217.235.114.77]) by fmrl02.sul.t-online.com with esmtp id 167vp2-0Q0lqCC; Sun, 25 Nov 2001 10:43:36 +0100 Received: by peedub.muc.de (8.11.6/8.11.1) id fAP9hKS00951; Sun, 25 Nov 2001 10:43:20 +0100 (CET) (envelope-from garyj) Message-Id: <200111250943.fAP9hKS00951@peedub.muc.de> Content-Type: text/plain; charset="iso-8859-1" From: Gary Jennejohn Reply-To: garyj@jennejohn.org To: Dima Dorfman , Peter Wemm Subject: Re: Reducing syslogd output bloat (was: cvs commit: src/sys/conf Makefile.i386) Date: Sun, 25 Nov 2001 10:28:02 +0100 X-Mailer: KMail [version 1.3.1] Cc: Bruce Evans , hackers@freebsd.org References: <20011125004921.93AD54020@bazooka.trit.org> In-Reply-To: <20011125004921.93AD54020@bazooka.trit.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 25 November 2001 01:49, Dima Dorfman wrote: > Peter Wemm wrote: > > Bruce Evans wrote: > > > - syslogd: the name of the kernel file is used as a > > > prefix. If I kept kernels in the standard place, then I > > > would have complained about the bloatage of syslogd output > > > caused by renaming the kernel from /kernel to > > > /boot/${NAME_OF_MY_KERNEL}/kernel > > > > It used to print "kernel" always, even when the kernel was > > /vmunix and on other systems when it is /bsd or /netbsd. > > I'd much rather that we went back. > > > > When syslogd starts up, it could log the value of > > kern.bootfile and kern.module_path once in the kernel log > > and just use "kernel:" for identifying kernel originated > > messages. > > The attached patch implements something like this: > > Make the default kernel prefix "kernel:" instead of the boot > file, with the old behavior available via the -o option (it > might still be useful if one has many kernels and cares which > messages came from which). If the boot file is not used as > the prefix, it is still logged once at startup. > > This change is prompted by the fact that the boot file is now > much longer ("/boot/kernel/kernel" vs. "/kernel"), which > significanlty bloats the syslogd output. > > Please review and comment. > [snip patch] I think this is a good idea. Go for it. -- Gary Jennejohn garyj@jennejohn.org gj@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message