-
Notifications
You must be signed in to change notification settings - Fork 104
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
options to not compare inode numbers, and disable acl / xattr #89
Comments
I might consider that if the performance impact can be shown to be large enough. Are you able to provide some initial benchmarks? (Manually disabling acl an xattr should be fairly easy) |
I did some synthetic benchmarks traversing a directory and performing it with and without xattr/get_acl, and I would admit it makes little impact on this machine (which has relatively fast cpu/io) - although I need to test on a slower one with a larger data set. Also if a low priority background task on a server with other stuff doing io, it might make more of a difference. walking through a structure of ~360k files with just lstat
and with xattr_getall and acl_get also
I in no way consider this a good/worthy benchmark ;-) |
And what were your thoughts regarding the inode option ? |
That option might be useful is some situations I guess, could you give some more details on why you would need this? |
I don't actually need it currently, but I wanted to mention it is offered by other solutions, and if someone wanted to backup a network filesystem that has non static inodes it would be needed for the cache to be any use. it would theoretically allow the cache to be rebuilt from a remote repository too if a user did not want to use inode comparison (as you said the fact that inodes are not stored in the repository is why this would not be possible to implement) in regards to the xattr/get_acl I just think it's always a good idea to reduce overhead per file if possible (and if the user doesn't need them, why make an additional 3 million calls etc) |
In PR #235 there is a dummy xattr and acl implementation now (used for unsupported platforms right now). |
I was thinking about this the other day when looking at the code - and the comment at end of #88 reminded me:
I think it would be worthwhile to have options to disable inode checking, as well as acl and xattr support.
regarding inodes (from rdiff-backup docs)
An option to disable xattr and acl support could also potentially help with performance. Maybe by a unnoticeable fraction even over a large backup, but when checking the file cache it would remove the need for 3 additional system calls on top of the lstat. Tools like rdiff-backup (which I was using before and am trialling attic currently) support this.
The text was updated successfully, but these errors were encountered: