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

Determine CPU architecture & choose appropriate algorithm for BTRFS partitions #1049

Open
py0xc3 opened this issue May 21, 2022 · 0 comments

Comments

@py0xc3
Copy link

py0xc3 commented May 21, 2022

This is indirectly related to the bugzilla issue Hardware without AES-NI: use xchacha12/Adiantum instead of AES-XTS.

If the availability of AES-NI is checked to choose the most appropriate disk encryption (see the issue ticket), it might make sense to also check if the system is a 64 bit architecture.

If the system is a 64 bit architecture, the performance and consistency of BTRFS partitions can be improved by choosing xxhash instead of CRC32c by default for BTRFS. On one hand, xxhash is usually faster than CRC32c on 64 bit architectures (I expect most installations are already on 64 bit hardware). On the other hand, xxhash's 64 bit are much more resistant to collisions when compared to CRC32c's 32 bit.

Implementing the bugzilla ticket and the 64 bit-check together may save some work time, e.g. one function to get both information.

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