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

SSV-24185: Fix the number of zvol I/O threads to align with 50% of th… #99

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

arun-kv
Copy link

@arun-kv arun-kv commented Nov 4, 2024

SSV-24185

Issue: CPU stuck at 100% is related to ZFS when we use dedup & comp, never able to reproduce the issue with Compression only enable.

Issue: Recovery speeds fluctuate significantly, likely due to CPU and thread contention under heavy I/O. In ZFS, the number of threads that accept I/O from SSY is hardcoded to 32. As a result, systems with fewer CPUs or hyper-threads may end up overusing resources.

Fix: The number of zvol I/O threads to align with 50% of the maximum available logical CPUs if the 'zvol_io_threads' value in 'Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ZFSin' is not specified. If the 'zvol_io_threads' value is provided, use this value for creating the zvol task queue thread pool.

Use kstat.exe zfs:0:tunable to check the current value of zvol_io_threads. This can be set only by updating the registry, and also require a reboot.

@arun-kv arun-kv requested a review from hrudaya21 November 4, 2024 10:22
@arun-kv arun-kv merged commit d5ee03b into datacore-windows Nov 4, 2024
0 of 8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants