-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Faster checksum benchmark on system boot #17563
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
Conversation
Sorry for this extra rebasing - had trouble with my handy :/ |
While booting, only the needed 256KiB benchmarks are done now. The delay for checking all checksums occurs when requested via: - Linux: cat /proc/spl/kstat/zfs/chksum_bench - FreeBSD: sysctl kstat.zfs.misc.chksum_bench Reported by: Lahiru Gunathilake <[email protected]> Co-authored-by: Colin Percival <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Closes openzfs#17560
I reworked the commit message to give credits for the reporting: |
🤔 Benchmarking is only used with |
It's not skipped. Only the 256KB blocksize is checked now. Edit: ah, I understand what you mean now :/ Sorry... it's early in the morning here ;-) |
Just a thought.. I can set values before ZFS loads on Windows, but not on macOS - so it'd only work on one platform for me. I don't know when Linux/FreeBSD would load the tunables. |
Assuming that "tunable" here means the same thing as it normally does in the FreeBSD kernel: We process those long before the ZFS module initialization runs. Loader tunables can be used to control lots of ZFS behaviours. |
While booting, only the needed 256KiB benchmarks are done now. The delay for checking all checksums occurs when requested via: - Linux: cat /proc/spl/kstat/zfs/chksum_bench - FreeBSD: sysctl kstat.zfs.misc.chksum_bench Reported by: Lahiru Gunathilake <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Co-authored-by: Colin Percival <[email protected]> Closes #17563 Closes #17560
While booting, only the needed 256KiB benchmarks are done now. The delay for checking all checksums occurs when requested via: - Linux: cat /proc/spl/kstat/zfs/chksum_bench - FreeBSD: sysctl kstat.zfs.misc.chksum_bench Reported by: Lahiru Gunathilake <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Co-authored-by: Colin Percival <[email protected]> Closes openzfs#17563 Closes openzfs#17560
While booting, only the needed 256KiB benchmarks are done now. The delay for checking all checksums occurs when requested via: - Linux: cat /proc/spl/kstat/zfs/chksum_bench - FreeBSD: sysctl kstat.zfs.misc.chksum_bench Reported by: Lahiru Gunathilake <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Co-authored-by: Colin Percival <[email protected]> Closes openzfs#17563 Closes openzfs#17560
While booting, only the needed 256KiB benchmarks are done now. The delay for checking all checksums occurs when requested via: - Linux: cat /proc/spl/kstat/zfs/chksum_bench - FreeBSD: sysctl kstat.zfs.misc.chksum_bench Reported by: Lahiru Gunathilake <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Tino Reichardt <[email protected]> Co-authored-by: Colin Percival <[email protected]> Closes openzfs#17563 Closes openzfs#17560 (cherry picked from commit 62169c9)
While booting, only the needed 256KiB benchmarks are done now.
The long delay for testing all checksums is done on request for them now:
Closes #17560
Motivation and Context
The issue #17560 is the main reason for this PR.
Description
How Has This Been Tested?
I loaded the module :-)
Old load module time: 1,5s (Github runner)
New load module time: 0,25s (Github runner)
Types of changes
Checklist:
Signed-off-by
.