zfs and BIO_FLUSH on amr(4)
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Aug 28 03:55:45 PDT 2007
On Tue, Aug 28, 2007 at 03:00:44AM -0700, Simun Mikecin wrote:
> Using storage on amr(4) controller with zfs revealed reduced write performance.
> It seems that writing to zfs concludes with a BIO_FLUSH call to flush the controller cache to
> disk.
>
> amr(4) can have onboard cache memory with or without battery backup. Is BIO_FLUSH call really
> needed when amr(4) is used with onboard cache memory with a battery backup?
I don't think so. The thing is that when ZFS receives information that
write is done, it should be on disk (at some point) and you
battery-backed cache should ensure that. You can turn off sending
BIO_FLUSH by setting vfs.zfs.cache_flush_disable to 1 (in
/boot/loader.conf).
BTW. How big performance drop do you see with BIO_FLUSH turned on?
--
Pawel Jakub Dawidek http://www.wheel.pl
pjd at FreeBSD.org http://www.FreeBSD.org
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20070828/3d0e2f31/attachment.pgp
More information about the freebsd-fs
mailing list