From owner-cvs-src@FreeBSD.ORG Fri Mar 31 14:00:33 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1339916A400; Fri, 31 Mar 2006 14:00:33 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id C421643D45; Fri, 31 Mar 2006 14:00:32 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms169.mailsrvcs.net ([192.168.1.2]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IWZ00FTSW8WKQU1@vms048.mailsrvcs.net>; Fri, 31 Mar 2006 08:00:32 -0600 (CST) Date: Fri, 31 Mar 2006 08:00:32 -0600 (CST) From: Sergey Babkin To: Alexander Leidinger , Robert Watson Message-id: <2893454.4353801143813632253.JavaMail.root@vms169.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit Cc: Joao Barros , src-committers@FreeBSD.org, Peter Jeremy , "Christian S.J. Peron" , cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: Re: cvs commit: src/usr.sbin/syslogd syslogd.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 14:00:33 -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? Probably should not matter. Syslog writes data to disk synchronously, right? So anything not involving a disk access is negligible in cost compared to the main action of writing the log entry. -SB