Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2006 08:00:32 -0600 (CST)
From:      Sergey Babkin <babkin@verizon.net>
To:        Alexander Leidinger <Alexander@Leidinger.net>, Robert Watson <rwatson@FreeBSD.org>
Cc:        Joao Barros <joao.barros@gmail.com>, src-committers@FreeBSD.org, Peter Jeremy <peterjeremy@optushome.com.au>, "Christian S.J. Peron" <csjp@FreeBSD.org>, cvs-all@FreeBSD.org, cvs-src@FreeBSD.org
Subject:   Re: Re: cvs commit: src/usr.sbin/syslogd syslogd.c
Message-ID:  <2893454.4353801143813632253.JavaMail.root@vms169.mailsrvcs.net>

next in thread | raw e-mail | index | archive | help

>Robert Watson <rwatson@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2893454.4353801143813632253.JavaMail.root>