From owner-cvs-all@FreeBSD.ORG Fri Mar 31 12:33:05 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 4388316A401; Fri, 31 Mar 2006 12:33:05 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7478843D5C; Fri, 31 Mar 2006 12:33:03 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D4BF.dip.t-dialin.net [84.165.212.191]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.4/8.13.1) with ESMTP id k2VCVoMs082319; Fri, 31 Mar 2006 14:31:51 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k2VCX0na047405; Fri, 31 Mar 2006 14:33:00 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Fri, 31 Mar 2006 14:33:00 +0200 Message-ID: <20060331143300.0p3adr4h3wwkk40w@netchild.homeip.net> X-Priority: 3 (Normal) Date: Fri, 31 Mar 2006 14:33:00 +0200 From: Alexander Leidinger To: Robert Watson References: <200603302104.k2UL4qF7086165@repoman.freebsd.org> <20060331080654.GB776@turion.vk2pj.dyndns.org> <20060331090421.I9972@fledge.watson.org> <70e8236f0603310129r5fe4e3a4qd9cb329c768860cc@mail.gmail.com> <20060331102745.D88223@fledge.watson.org> In-Reply-To: <20060331102745.D88223@fledge.watson.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: Joao Barros , 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 12:33:05 -0000 Robert Watson wrote: > The cost to check for free space is the cost of a fstatfs() system > call on the file descriptor of the log file. This should be handled > without touching the disk, so while it's not a cheap system call > compared to, say, getpid(), as it acquires locks and enters VFS, it's > a lot cheaper than any disk I/O operation. Optional is good, if only > because sometimes people do actually want logging to fill the disk, > and that's been the behavior historically :-). Do you know if a kqueue based solution is cheaper? Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 For every complex problem, there is a solution that is simple, neat, and wrong. -- H. L. Mencken