Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 884811

Summary: sys-fs/btrfs-progs: Consider installing hash-speedtest
Product: Gentoo Linux Reporter: RumpletonBongworth <kfm>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 0001-sys-fs-btrfs-progs-Also-install-hash-speedtest.patch

Description RumpletonBongworth 2022-12-08 05:22:29 UTC
Since Linux 5.5, three additional checksum algorithms have been supported by btrfs. These are XXHASH, SHA256 and BLAKE2b. The "all" make target does not cover the hash-speedtest utility. I think that it would be useful if the ebuild were to install it. In particular, XXHASH is an interesting alternative to CRC32C and I was mildly surprised to find that it outperforms CRC32C on my hardware.
Comment 1 RumpletonBongworth 2022-12-08 05:28:56 UTC
Created attachment 840903 [details, diff]
0001-sys-fs-btrfs-progs-Also-install-hash-speedtest.patch

I'm not sure that this is the best way of going about it but it worked for me.
Comment 2 RumpletonBongworth 2022-12-08 06:32:37 UTC
On second thoughts, I'm retracting this request. The hash-speedtest utility doesn't make use of the kernel crypto API, so one cannot necessarily assume that the benchmark results are indicative of the performance that can be expected.