-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/09/11 21:31, Nico Williams wrote:
> atime has nothing to do with it.
> 
> How much work zfs diff has to do depends on how much has changed 
> between snapshots.

That is what I thought, but look at my example: less than 20 changes
and more than 10 minutes to locate them...

Technically, if a datasets have "atime" active, the FS diverges from
the "dataset" even if the "data" is not changed.

I just did a snapshot over another unchanged snapshot. "zfs diff"
finish inmediatelly with no changes, and it should be. But doing a
"zfs diff" of "/usr/local/" takes a lot of time, even without changes.
I am really thinking that "atime" is actually playing a role.

In my personal situation, I am doing "zfs diff" between snapshots
taken on the receive side of an "rdiff --inplace". I would say that
"rdiff" is modifying the "atime" of ALL files in the receiving
"dataset", and although that is not showed in "zfs diff", it is
"breaking" the tree pruning by "birthdate" age.

I just disabled "atime" in this particular dataset. I do a new "rdiff
- --inplace" on it (as the destination). After that, "zfs diff" takes 12
seconds instead of the initial 10 minutes. A big improvement.

So, yes, "atime" seems to be harmful. Badly.

PS: I saw something similar with "zfs send" too.

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
j...@jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:j...@jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBToDml5lgi5GaxT1NAQIWQgQAnoeFnltM1SyzUWDb5fxxYQJIff19B8Gp
5jpfHw3dcri6OYQzUkqxCAq0QvQdzMP899HPE2gx8yW1XqC706H1xaVsM1Ho7IJM
ZzKPulCAoEZ7njYo2ycipDIlQtxdaSuA9UPu6XDY142fq5GmnMx9lCChuWLK5gDb
Ox+ffh4867k=
=Ji6T
-----END PGP SIGNATURE-----
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to