Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm-monitor: Switch from memory.high to polling memory.stat (#5524)
tl;dr it's really hard to avoid throttling from memory.high, and it counts tmpfs & page cache usage, so it's also hard to make sense of. In the interest of fixing things quickly with something that should be *good enough*, this PR switches to instead periodically fetch memory statistics from the cgroup's memory.stat and use that data to determine if and when we should upscale. This PR fixes #5444, which has a lot more detail on the difficulties we've hit with memory.high. This PR also supersedes #5488.
- Loading branch information
9fe5cc6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2372 tests run: 2256 passed, 0 failed, 116 skipped (full report)
Flaky tests (5)
Postgres 16
test_crafted_wal_end[last_wal_record_crossing_segment]
: releasetest_crafted_wal_end[last_wal_record_xlog_switch_ends_on_page_boundary]
: debugtest_tenant_config
: debugPostgres 15
test_crafted_wal_end[last_wal_record_crossing_segment]
: releasePostgres 14
test_bulk_insert[neon]
: releaseCode coverage (full report)
functions
:52.9% (8292 of 15672 functions)
lines
:80.6% (48349 of 59987 lines)
9fe5cc6 at 2023-10-17T23:51:08.644Z :recycle: