-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
page cache: improve eviction-related metrics (#6077)
These changes help with identifying thrashing. The existing `pageserver_page_cache_find_victim_iters_total` is already useful, but, it doesn't tell us how many individual find_victim() calls are happening, only how many clock-LRU steps happened in the entire system, without info about whether we needed to actually evict other data vs just scan for a long time, e.g., because the cache is large. The changes in this PR allows us to 1. count each possible outcome separately, esp evictions 2. compute mean iterations/outcome I don't think anyone except me was paying close attention to `pageserver_page_cache_find_victim_iters_total` before, so, I think the slight behavior change of also counting iterations for the 'iters exceeded' case is fine. refs neondatabase/cloud#8351 refs #5479
- Loading branch information
Showing
2 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f5b9af6
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.
2216 tests run: 2125 passed, 1 failed, 90 skipped (full report)
Failures on Postgres 15
test_delete_tenant_exercise_crash_safety_failpoints[real_s3-tenant-delete-before-polling-ongoing-deletions-False-Check.RETRY_WITHOUT_RESTART]
: debugFlaky tests (2)
Postgres 16
test_crafted_wal_end[last_wal_record_crossing_segment]
: releasePostgres 15
test_statvfs_pressure_usage
: debugTest coverage report is not available
f5b9af6 at 2023-12-08T16:21:40.143Z :recycle: