Marion Hakanson wrote:
[EMAIL PROTECTED] said:
- I will try your test.
- But How the zfs cash affect my test?

You can measure this yourself.  Try running the test both with and without
the "sync" command at the end.  You should see a faster completion time
without the "sync", but not all data will have made it to storage.  How
long the "sync" might take will depend on how much RAM the ZFS ARC is
using, which in turn can depend on how much RAM the system has, among
other things.

#include standard/sync/disclaimer
DESCRIPTION
     The sync() function writes all information  in  memory  that
     should be on disk, including modified super blocks, modified
     inodes, and delayed block I/O.

     Unlike fsync(3C), which  completes  the  writing  before  it
     returns,  sync() schedules but does not necessarily complete
     the writing before returning.

In other words, the "sync" command schedules a sync.  The consistent way
to tell if writing is finished is to observe the actual I/O activity.
 -- richard
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to