Skip to content
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

Are transfer speeds between mounted directories on the same disk throttled by cryfs? #457

Open
Opening-Button-8988 opened this issue Jun 13, 2023 · 2 comments

Comments

@Opening-Button-8988
Copy link

I have noticed that transferring files on the same disk, but between different directories, are very slow and not at all what I'd expect from my NVMe disk (and I know that the port and cable aren't the issue here). I might be talking out of my ass here, but I'm assuming this is because cryfs has to write to the database, but it is not limited by disk read/write speed but rather CPU-bound on a single thread. Therefore, I believe, cryfs read/write operations are limited to the speed at which your CPU can write on a single thread, and perhaps bottlenecks caused by the programming language itself. Please correct me if anything I've said is wrong, I'm just making assumptions here.

P.S. is there a more discussion-oriented forum for cryfs somewhere? If not, creating a discourse forum or at least a subreddit would go a long way to get more attention to this project and hopefully have it audited at some point.

@0xalivecow
Copy link

Hello,

Have you made any progress with this issue?
I am experiencing this as well, even to an extend that the transfer will crash and I cannot unmount the drive due to it still being busy.

Transfer from a different drive seems to be without issues.

@Opening-Button-8988
Copy link
Author

Opening-Button-8988 commented Jan 2, 2024

@0xalivecow I haven't used cryfs in a while, but I never fixed it. I also experience the same issue with restic and borgbackup. I'm pretty sure it's bottlenecked by the app itself, but I have no detailed explanation beyond that. Even when transferring files to the same PCIe 4.0 disk, speeds are abysmal. Issue occurs on different machines, different OS's, different disks. Can't have anything to do with my hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants