From owner-cvs-all@FreeBSD.ORG Tue Apr 11 18:46:01 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BA6216A403; Tue, 11 Apr 2006 18:46:01 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA9A943D46; Tue, 11 Apr 2006 18:46:00 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k3BIk0AU016138; Tue, 11 Apr 2006 11:46:00 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k3BIk0Rg016137; Tue, 11 Apr 2006 11:46:00 -0700 Date: Tue, 11 Apr 2006 11:46:00 -0700 From: Brooks Davis To: Robert Watson Message-ID: <20060411184559.GA14844@odin.ac.hmc.edu> References: <200603302104.k2UL4qF7086165@repoman.freebsd.org> <20060331080654.GB776@turion.vk2pj.dyndns.org> <20060331090421.I9972@fledge.watson.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20060331090421.I9972@fledge.watson.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: src-committers@FreeBSD.org, "Christian S.J. Peron" , cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/syslogd syslogd.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2006 18:46:01 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 31, 2006 at 09:06:32AM +0000, Robert Watson wrote: >=20 > On Fri, 31 Mar 2006, Peter Jeremy wrote: >=20 > >On Thu, 2006-Mar-30 21:04:52 +0000, Christian S.J. Peron wrote: > >> This change allows syslogd to ignore ENOSPC space errors, so that when= =20 > >> the > >> filesystem is cleaned up, syslogd will automatically start logging aga= in > >> without requiring the reset. This makes syslogd(8) a bit more reliable. > > > >My sole concern with this is that this means that syslogd will keep tryi= ng=20 > >to write to the full filesystem - and the kernel will log the attempts t= o=20 > >write to a full filesystem. Whilst there's rate limiting in the kernel,= =20 > >this sort of feedback loop is undesirable. >=20 > What I'd like to see is an argument to syslogd to specify a maximum full= =20 > level for the target file system. Log data is valuable, but being able t= o=20 > write to /var/tmp/vi.recover is also important. syslogd -l 90% could=20 > specify that sylogd should not write log records, perhaps other than an= =20 > "out of space record" to a log file on a file system with >=3D90% capacit= y. =20 > This prevents the kernel from spewing about being out of space also. The= =20 > accounting code does exactly this, for identical reasons. Anyone working on an implementation of this? I just had more machines blow up due to out of control logs from a crashing process in an infinite coredump loop so I'll take a shot at it if someone else isn't. IMO, what's really important is to keep enough space that newsyslog can do it's job. I have plenty of log file that should compress at better than 10:1 since they are all the same two lines over and over, but it doesn't do any good when newsyslog can't compress the file and create a new one. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEO/lnXY6L6fI4GtQRAiFJAKDmUiOAlSWCEFCj/vpGJ9uPqSexkwCfYgxn Z73HsqD+5ynuUOXhfXNrOpo= =FVmX -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--