Skip to content

fix(ansible): drop no-op zpool item and filter - #2322

Open
brainrake wants to merge 1 commit into
developfrom
martonboros/psql-1548-followup-drop-noop-zpool-item
Open

fix(ansible): drop no-op zpool item and filter#2322
brainrake wants to merge 1 commit into
developfrom
martonboros/psql-1548-followup-drop-noop-zpool-item

Conversation

@brainrake

@brainrake brainrake commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

What

Drop the zpool: zsmalloc loop item entirely — no guard needed.

Why

@brainrake raised in #2321 (comment) if the default already matches the value we set, we should remove the param rather than conditionally skip it.

Confirmed: zsmalloc has been zswap's default allocator since kernel 6.3 (patch, Sept 2023). Ubuntu noble has always shipped >= 6.8, so echo zsmalloc > .../parameters/zpool was a no-op.

Related: PSQL-1548

@brainrake
brainrake requested review from a team as code owners July 28, 2026 12:55
@brainrake
brainrake requested a review from mmlb July 28, 2026 12:55
@brainrake
brainrake marked this pull request as draft July 28, 2026 14:48
zsmalloc has been zswap's default allocator since kernel 6.3 (Sept
2023), and Ubuntu noble has always shipped >= 6.8, so explicitly
writing zpool=zsmalloc was a no-op on every kernel this fleet has
run. Kernels >= 6.18 dropped the param entirely.

Drop the item instead of guarding it, since setting it never did
anything. No guard needed for the remaining params either: the
original failure log shows compressor, max_pool_percent, and enabled
all wrote successfully on the newest kernel observed (7.0.0-1009-aws)
-- zpool was the only one that failed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@brainrake
brainrake force-pushed the martonboros/psql-1548-followup-drop-noop-zpool-item branch from fe3170c to 902e411 Compare July 28, 2026 15:38
@brainrake
brainrake marked this pull request as ready for review July 28, 2026 15:39
@brainrake
brainrake enabled auto-merge July 28, 2026 15:40
@brainrake

Copy link
Copy Markdown
Collaborator Author

@mmlb this is a better fix than #2321

@brainrake brainrake changed the title fix(ansible): drop no-op zpool loop item from zswap task fix(ansible): drop no-op zpool item and filter Jul 28, 2026
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.

1 participant