Date: Wed, 10 Sep 2003 21:24:05 -0400 From: Eno Thereska <eno@andrew.cmu.edu> To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Subject: flush on close Message-ID: <3F5FCEB5.9010407@andrew.cmu.edu>
next in thread | raw e-mail | index | archive | help
In FreeBSD 4.4, I am noticing a huge number of calls to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) when running a benchmark like Postmark. ffs_fsync() flushes all dirty buffers with an open file to disk. Normally this function would be called either because the application writer explicitly flushes the file, or if the syncer daemon or buffer daemon decide it's time for the dirty blocks to go to disk. Neither of these two options is happening. Files are opened and closed very frequently though. I have a suspicion that BSD is using the "flush-on-close" semantic. Could someone confirm or reject this claim? If confirmed, I am wondering how to get rid of it... Thanks Eno
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F5FCEB5.9010407>