From owner-cvs-all@FreeBSD.ORG Fri Mar 31 10:05:44 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 1324116A400; Fri, 31 Mar 2006 10:05:44 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C64A43D4C; Fri, 31 Mar 2006 10:05:42 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id E77A151CD1; Fri, 31 Mar 2006 12:05:40 +0200 (CEST) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C9028519CE; Fri, 31 Mar 2006 12:05:34 +0200 (CEST) Date: Fri, 31 Mar 2006 12:04:40 +0200 From: Pawel Jakub Dawidek To: Robert Watson Message-ID: <20060331100440.GA12785@garage.freebsd.pl> 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="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20060331090421.I9972@fledge.watson.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 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: Fri, 31 Mar 2006 10:05:44 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=iso-8859-2 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 whe= n the +> >> filesystem is cleaned up, syslogd will automatically start logging ag= ain +> >> without requiring the reset. This makes syslogd(8) a bit more reliabl= e. +> > +> >My sole concern with this is that this means that syslogd will keep try= ing to write to the full filesystem - and the kernel will log the attempts = to write to a full=20 +> >filesystem. Whilst there's rate limiting in the kernel, this sort of f= eedback loop is undesirable. +>=20 +> What I'd like to see is an argument to syslogd to specify a maximum full= level for the target file system. Log data is valuable, but being able to= write to=20 +> /var/tmp/vi.recover is also important. syslogd -l 90% could specify tha= t sylogd should not write log records, perhaps other than an "out of space = record" to a log file on=20 +> a file system with >=3D90% capacity. This prevents the kernel from spew= ing about being out of space also. The accounting code does exactly this, = for identical reasons. One of the things I like about UFS is that it has 8% of reserved space and when syslogd is running as root, it can still log, even when /var/ is full of users' data. Of course there should be separate /var/log/ partition, but... In my opinion it'll be good, if we can stop logging various levels when we hit Avail=3D0% and stop the rest at Avail=3D-4% maybe. Maybe we should take logs only from logpriv when Avail=3D0%... --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFELP64ForvXbEpPzQRAvsYAKC5vwyCufpIS1CTskib0yC7oISFxACeMxMZ 4X3bnAdEGZ56xWzdXpRUQ0U= =lHl/ -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--