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

Block size vs disk type #461

Open
wsh303 opened this issue Aug 9, 2023 · 0 comments
Open

Block size vs disk type #461

wsh303 opened this issue Aug 9, 2023 · 0 comments

Comments

@wsh303
Copy link

wsh303 commented Aug 9, 2023

TL;DR

Default block size is bad for HDD performance

Expected Behavior

CryFS detects disk type on which vault is being created and/or:

  1. Set larger block size for HDDs (512KB works nice for me)
  2. Display warning message that default block size is bad for HDD performance

Actual Behavior

I tried to set up encrypted backup on external, USB3 connected HDD. By default CryFS uses 16KB block size, which is nice for SSDs but good, old HDDs don't like to work with lots of small files. Copy throughput for this block size is very low. So low that CryFS often crashes during data copy. Creating a vault using larger block sizes fixes performance and crash issues.

Steps to Reproduce the Problem

  1. Create vault on HDD using default settings
  2. Copy few GB of data to the vault

Specifications

  • CryFS Version: 0.11.4
  • Operating System (incl. Version): Windows 11
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

1 participant