[Dovecot] NFS cache flush tester

Doug Council dcouncil at nethere.com
Thu Jul 12 20:51:57 EEST 2007


On Thu, 12 Jul 2007, Timo Sirainen wrote:
>>> Thanks, could you try once more with an updated nfstest.c version? I
>>> added "dup+close" which works for data and write cache flushing with
>>> Linux. I really hope it works with Solaris+FreeBSD too.
>
> I didn't expect fchown() to flush write cache, but since dup+close
> didn't work this is just as good.
>
>> Info: Data cache flush dup+close: OK
>
> Great. Now how about FreeBSD once more? :)

FreeBSD 6.2-RELEASE-p5 and a NetApp NFS server:

Info: Connected: client
Info: O_EXCL works
Info: Testing attribute cache..
Info: Attr cache flush fchown(-1, -1): OK
Info: Attr cache flush fchown(uid, -1): OK
Info: Attr cache flush fchmod(mode): OK
Info: Attr cache flush chown(-1, -1): OK
Info: Attr cache flush chown(uid, -1): OK
Info: Attr cache flush chmod(mode): OK
Info: Attr cache flush dup+close: failed
Info: Testing write flushing..
Info: Write flush no caching: failed
Info: Write flush fcntl(shared): failed
Info: Write flush fcntl(exclusive): failed
Info: Write flush flock(shared): failed
Info: Write flush flock(exclusive): failed
Info: Write flush reopen: OK
Info: Write flush dup+close: failed
Info: Write flush attr cache: failed
Info: Testing data cache..
Info: data cache: Reading EOF requires attribute cache flush
Info: Data cache flush no caching: failed
Info: Data cache flush attr cache: OK
Error: fcntl(setlk, read) failed: Operation not supported
Info: Data cache flush fcntl(shared): failed
Error: fcntl(setlk, write) failed: Operation not supported
Info: Data cache flush fcntl(exclusive): failed
Info: Data cache flush flock(shared): failed
Info: Data cache flush flock(exclusive): failed
Info: Data cache flush dotlock: failed
Info: Data cache flush O_DIRECT: failed
Info: Data cache flush dup+close: failed

-Doug


More information about the dovecot mailing list