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

Reduce trim min size even lower for tests to reduce flakiness #15315

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

pcd1193182
Copy link
Contributor

Motivation and Context

We have intermittent failures in the trim test suite because the raidz pools don't end up issuing enough TRIM IOs to satisfy the tests. I analyzed their behavior with some debug messages and found that there were huge numbers of trims being considered, but rejected for being below 4096 bytes.

Description

We drop the limit lower, to 512 bytes, so that all the trim IOs will be issued.

How Has This Been Tested?

ZTS runs

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Copy link
Contributor

@behlendorf behlendorf left a comment

Choose a reason for hiding this comment

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

Let's also set this to 512 for these tests. I believe I've seen spurious failures for several of these as well and it'd be nice to rule this out as a possible cause.

tests/zfs-tests/tests/functional/trim/trim_config.ksh
tests/zfs-tests/tests/functional/trim/autotrim_config.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_verify_trimmed.ksh
tests/zfs-tests/tests/functional/cli_root/zpool_trim/zpool_trim_partial.ksh

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Sep 26, 2023
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Sep 26, 2023
@behlendorf behlendorf merged commit ec99448 into openzfs:master Sep 27, 2023
15 of 19 checks passed
behlendorf pushed a commit to behlendorf/zfs that referenced this pull request Sep 28, 2023
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes openzfs#15315
behlendorf pushed a commit that referenced this pull request Sep 28, 2023
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes #15315
lundman pushed a commit to openzfsonwindows/openzfs that referenced this pull request Dec 12, 2023
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes openzfs#15315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants