I have been using Ubuntu's encrypted home folder system for some time now and have not really noticed any slowdowns except in two specific cases.
- When I run
du -s
in my home folder, it takes several times longer than when doing it on the same data on an unencrypted partition. - When entering a folder containing >1000 images in Krusader, it takes 10-20 seconds before Krusader shows the files (it is completely unresponsive during that time).
Both seem to have to do with accessing several thousands of files without really reading any of their data, which seems to mean that the system will have to traverse lots and lots of inodes. I can't see why this would be slower on ecryptfs than when not using encryption though since this should still be IO-bound rather than CPU-bound even if the inodes are all encrypted.
Does anyone have any ideas?
Here's why, based on an explanation by one of the lead Canonical developers:
Put simply, the problem is not I/O rate, but IOPs -- huge numbers of IOPs!
eCryptFS is getting better as it evolves: compare the Phoronix benchmarks of 9.10 vs. 11.10.
You may want to consider dm-crypt, which has historically been faster and still seems to have an edge.