Metadata performance much worse than on parent filesystem
Bug #988628 reported by
fa2k
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Listing directories and scanning files is very slow. When I use Unison (~like rsync) on the underlying filesystem, it is instantaneous to check for changes, but in the encrypted filesystem it can take minutes. Could eCryptfs please take advantage of the underlying filesystem's cache?
To post a comment you must log in.
Hello - thanks for using eCryptfs!
Unfortunately, the performance issues associated with lookup(), stat(), and open() are unavoidable. eCryptfs currently leverages the lower filesystem's dentry, inode, and page cache appropriately. The problem stems from eCryptfs needing to read the first 16 bytes of the lower file during lookup() and stat() and needing to read and process the first 8192 bytes of the lower file during open(). This is due to the design of eCryptfs and is not avoidable.
If someone else can identify potential speedups in these areas of the code, I'd be more than happy to review/ merge/implement their ideas but I've been unable to find any noticeable improvements that would be reasonable to implement.