> I also noticed (perhaps by design) that a copy with compression off almost
> instantly returns, but the writes continue LONG after the cp process claims
> to be done. Is this normal?

Yes this is normal. Unless the application is doing synchronous writes
(eg DB) the file will be written to disk at the convenience of the FS.
Most fs operate this way. It's too expensive to synchronously write
out data, so it's batched up and written asynchronously.

> Wouldn't closing the file ensure it was written to disk?

No.

> Is that tunable somewhere?

No. For ZFS you can use sync(1M) which will force out all transactions
for all files in the pool. That is expensive though. 

Neil.
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to