From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 01:45:29 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7A0F16A4CE; Fri, 18 Feb 2005 01:45:29 +0000 (GMT) Received: from just.puresimplicity.net (just.puresimplicity.net [140.177.207.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B46843D31; Fri, 18 Feb 2005 01:45:29 +0000 (GMT) (envelope-from craig@puresimplicity.net) Received: from localhost (CPE0050bf78b8c6-CM023459906096.cpe.net.cable.rogers.com [24.157.84.118]) (authenticated bits=0)j1I1j8hk079204 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Thu, 17 Feb 2005 19:45:18 -0600 (CST) (envelope-from craig@backfire.ca) Date: Thu, 17 Feb 2005 20:45:05 -0500 From: Craig Reyenga To: Gleb Smirnoff Message-ID: <20050218014505.GA44797@burnout.lan.bluemidnight.ca> References: <20050217135609.GA97455@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050217135609.GA97455@cell.sick.ru> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.81, clamav-milter version 0.81b on just.puresimplicity.net X-Virus-Status: Clean X-Spam-Status: No, score=1.8 required=8.0 tests=AWL,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=disabled version=3.0.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on just.puresimplicity.net X-Mailman-Approved-At: Fri, 18 Feb 2005 12:50:31 +0000 cc: freebsd-current@freebsd.org Subject: Re: changing debuglevel of kernel messaging going to console X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Reyenga List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 01:45:29 -0000 On Thu, Feb 17, 2005 at 04:56:09PM +0300, Gleb Smirnoff wrote: > Dear collegues, > > now all kernel messages are printed to system console by default: > > *.err;kern.debug;auth.notice;mail.crit /dev/console > > There is a problem that in case of a serial console, this printing > is very slow and heavily pessimizes box performance, when kernel > messages are printed at high speed. Moreover, several kernel messages > with LOG_DEBUG severity can be triggered remotely, for example > sending bogus ARP replies. So, sending bogus ARP packets to a > FreeBSD box with serial console may lead to a DoS like conditions. I've always been bothered by *any* output going to the console, because the only time I'm at the console is when I'm fixing the problem that the kernel is complaining about in the first place. My local solution is to create a /var/log/kernel and send kern.everything to it. As for changing the default, I do agree fully with a change to kern.warning, but I'm not going fight very hard for it. -Craig > > I'd like to raise this level to kern.warning, so that important > messages are still printed, but debug messages won't flood console. > No logging will be lost, since next line logs kern.debug to > /var/log/messages. > > -- > Totus tuus, Glebius. > GLEBIUS-RIPN GLEB-RIPE