-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encfs 1.8 slow compared to encfs 1.7.4 #60
Comments
EncFS 1.8 uses per-file unique IVs in the default reverse configuration, that may be the reason. |
Just did a It says: So, IMHO unique IVs are not used in reverse mode. |
Yes, the message is unclear. Actually, only "chained IV" is disabled! |
By the way, there is an easy way to check: If every encrypted file is 8 bytes larger than the original, uniqueIV is definitely enabled. |
Actually the encrypted files did not change with the update from 1.7.4 to 1.8 (i used to old .encfs6.xml file). Rsync did not report any changes. Just did the expert mode and answered the question as follows:
This actually produces the same setting in the xml file as the one I have from version 1.7.4. Only, of course, encodedKeyData, saltData, kdfIterations, and creator fields are different. |
Thanks for all the details, so uniqueIV is not the reason. I will investigate this today in the evening. |
Ok, I think I got it. Kernel caching for reverse mode was disabled in eaf3fc6 because it made a self-test fail. The absence of caching causes the slowdown. Please
and verify. The fix will then be included in 1.8.1. |
That did the trick. Now 1.8 is as fast as 1.7.4 in reverse mode again. Still i wonder, whats the reason why kernel caching must be disabled for the test you mention? |
The kernel caches file metadata for 2 seconds. This means that the
encrypted view will be up to 2 seconds behind and rsync may not pick up the
changes.
How do you trigger the backup job? Does it modify the data (dump a database
or something like that)?
|
As this would only apply for rapidly changing files, this is no issue for my backup job for two reasons, |
Yes, that looks fine. |
I just did an upgrade from encfs 1.7.4 to the newly released 1.8. I use encfs in reverse in combination with rsync to copy my backups to a second location.
My test folder has a size of 5 GB with 150000 files in it. With encfs 1.7.4 the copying the test folder was done in 15 sec. Runing encfs with rsync on the same files (again, no changes) with encfs 1.8 took about 5 min with high CPU utilization of encfs all the time.
Has anyone an idea, why the new version is that much slower?
The text was updated successfully, but these errors were encountered: