On Fri, 31 Mar 2006, Alexander Leidinger wrote:

Robert Watson <[EMAIL PROTECTED]> 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
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to