cvs commit: src/usr.sbin/syslogd syslogd.c
rwatson at FreeBSD.org
Fri Mar 31 16:24:31 UTC 2006
On Fri, 31 Mar 2006, Alexander Leidinger wrote:
> Robert Watson <rwatson at 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?
I think that before solving this problem, we should establish it is one. I'm
not convinced it will be.
Robert N M Watson
More information about the cvs-src