census: never_read age bands (bucketed by created age) - #48
Closed
shreyas-blacksmith wants to merge 1 commit into
Closed
shreyas-blacksmith wants to merge 1 commit into
shreyas-blacksmith wants to merge 1 commit into
Conversation
A never-read entry evicted minutes after writing means the cache could not hold a write until its first read - the worst eviction outcome. It was counted only in the aggregate never-read counter (no age dimension) and the created bands (mixed with read entries), so a young never-read eviction rendered as a healthy-looking last_read mix. New age_kind=never_read series on evicted_bytes_by_age, bucketed by created age. created stays the superset; last_read stays the pure live-harm signal. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
|
Not needed: the dashboard now composes the staleness histogram from the existing last_read bands + never-read counter, with never-read as a single band (we decided the created-age of never-read evictions isn't a stat we care about). |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A never-read entry evicted minutes after creation is the cache failing to hold a write until its first read — the worst eviction outcome — but it was invisible as such: the never-read counter has no age dimension, and the created bands mix never-read with previously-read bytes.
This adds
age_kind=never_readtobazel_remote_disk_cache_evicted_bytes_by_age, bucketed by created age.createdremains the superset of every eviction;last_readremains the pure live-harm signal. Census JSONL rows are unchanged (they already carryevicted_never_read_bytesper tenant).Feeds the young-eviction panels on the Bazel L1 Grafana board (fa#5699); until this rides a release+roll, the board approximates via the created bands.
Tested: census accounting test now asserts the 24h never_read band after a young never-read eviction;
go test ./cache/disk/green.Made with Cursor
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled. (Staging)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.