Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

perf: optimize postgres on macOS/Windows for CI, remove ramdisk#21226

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mafredri wants to merge6 commits intomain
base:main
Choose a base branch
Loading
frommafredri/ci-pg-no-ramdisk

Conversation

@mafredri
Copy link
Member

Previously we used ramdisk for embedded postgres on macOS and Windows
to improve test performance. This wastes memory since data ends up
cached twice: once in the ramdisk and again in postgres's own buffers.

Instead, we give postgres more memory and tune it more aggressively:

  • Increase shared_buffers to 2GB, effective_cache_size to 4GB
  • Minimal WAL level, infrequent checkpoints
  • Disable autovacuum, JIT, logging, stats tracking
  • OS-specific I/O settings

This gives postgres more memory to work with while simplifying CI setup.

@mafredrimafredri changed the titleperf: optimize postgres on macOS/Windows for CI on, remove ramdiskperf: optimize postgres on macOS/Windows for CI, remove ramdiskDec 11, 2025
@mafredrimafredriforce-pushed themafredri/ci-pg-no-ramdisk branch 3 times, most recently from5ffcb9e tob00519eCompareDecember 11, 2025 17:33
Previously we used ramdisk for embedded postgres on macOS and Windowsto improve test performance. This wastes memory since data ends upcached twice: once in the ramdisk and again in postgres's own buffers.Instead, we give postgres more memory and tune it more aggressively:- Increase shared_buffers to 2GB, effective_cache_size to 4GB- Minimal WAL level, infrequent checkpoints- Disable autovacuum, JIT, logging, stats tracking- OS-specific I/O settingsThis gives postgres more memory to work with while simplifying CI setup.
@mafredrimafredriforce-pushed themafredri/ci-pg-no-ramdisk branch fromb00519e to4cb8dafCompareDecember 11, 2025 17:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@mafredrimafredri

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp