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

Clarify description of zfs_special_class_metadata_reserve_pct #490

Conversation

chrisperedun
Copy link
Contributor

Current language in Module Parameters#zfs-special-class-metadata-reserve-pct states

zfs_special_class_metadata_reserve_pct sets a threshold for space in special vdevs to be reserved exclusively for metadata. This prevents small blocks or dedup table from completely consuming a special vdev.

However based on spa_misc.c#L1974 the codepath treats DDT objects the same as regular metadata, so the language in the docs was changed to clarify (emphasis in blockquote only)

zfs_special_class_metadata_reserve_pct sets a threshold for space in special vdevs to be reserved exclusively for metadata. This prevents small data blocks from completely consuming a special vdev.

If the intent is to have DDT obey the reserve percentage then I can make the necessary changes to spa_misc.c instead.

Based on spa_misc.c L1974 the codepath treats DDT objects the same
as regular metadata, so the language in the docs regarding "prevents
small blocks or dedup table from completely consuming" was changed
to clarify this
Copy link
Member

@gmelikov gmelikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmelikov gmelikov merged commit f6b9154 into openzfs:master Feb 1, 2024
1 check 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