Date: Sun, 25 Nov 2001 10:28:02 +0100 From: Gary Jennejohn <garyj@jennejohn.org> To: Dima Dorfman <dima@trit.org>, Peter Wemm <peter@wemm.org> Cc: Bruce Evans <bde@zeta.org.au>, hackers@freebsd.org Subject: Re: Reducing syslogd output bloat (was: cvs commit: src/sys/conf Makefile.i386) Message-ID: <200111250943.fAP9hKS00951@peedub.muc.de> In-Reply-To: <20011125004921.93AD54020@bazooka.trit.org> References: <20011125004921.93AD54020@bazooka.trit.org>
index | next in thread | previous in thread | raw e-mail
On Sunday 25 November 2001 01:49, Dima Dorfman wrote:
> Peter Wemm <peter@wemm.org> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111250943.fAP9hKS00951>
