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

fix(testing): Use 1 MB shared_buffers even with LFC #9969

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

ololobus
Copy link
Member

@ololobus ololobus commented Dec 2, 2024

Problem

After enabling LFC in tests and lowering shared_buffers we started having more problems with test_pg_regress.

Summary of changes

Set shared_buffers to 1MB to both exercise getPage requests/LFC, and still have enough room for Postgres to operate. Everything smaller might be not enough for Postgres under load, and can cause errors like 'no unpinned buffers available'.

See Konstantin's comment 1 as well.

Fixes #9956

Everything smaller might be not enough for Postgres under load,
and can cause errors like 'no unpinned buffers available'.

See Konstantin's comment [1] as well.

Fixes #9956

[1]: #9956 (comment)
Copy link
Member

@bayandin bayandin left a comment

Choose a reason for hiding this comment

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

👍

@a-masterov I guess we can close #9906 with more extream numbers then

@ololobus ololobus enabled auto-merge December 2, 2024 16:11
Copy link

github-actions bot commented Dec 2, 2024

7018 tests run: 6710 passed, 0 failed, 308 skipped (full report)


Flaky tests (3)

Postgres 17

  • test_pageserver_small_inmemory_layers[False]: debug-x86-64

Postgres 16

Postgres 15

Code coverage* (full report)

  • functions: 30.4% (8272 of 27228 functions)
  • lines: 47.7% (65203 of 136592 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
f61fef3 at 2024-12-02T17:01:48.823Z :recycle:

@ololobus ololobus added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit 2e9207f Dec 2, 2024
82 checks passed
@ololobus ololobus deleted the alexk/bump-buffers-with-lfc branch December 2, 2024 18:48
awarus pushed a commit that referenced this pull request Dec 5, 2024
## Problem

After enabling LFC in tests and lowering `shared_buffers` we started
having more problems with `test_pg_regress`.

## Summary of changes

Set `shared_buffers` to 1MB to both exercise getPage requests/LFC, and
still have enough room for Postgres to operate. Everything smaller might
be not enough for Postgres under load, and can cause errors like 'no
unpinned buffers available'.

See Konstantin's comment [1] as well.

Fixes #9956

[1]:
#9956 (comment)
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.

no unpinned buffers available in test_pg_regress
2 participants