varnish: set thread_stats_rate=1000 - #1351
Draft
gquintard wants to merge 2 commits into
Draft
Conversation
Deferred per-thread stat aggregation is cheaper under high request rates than the default (10). Experiment to see if reduced worker-stat aggregation overhead moves the needle on baseline/pipelined RPS. Also fixes a missing line-continuation after vsl_mask=none that made -s malloc,256m dead code, never reaching varnishd. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
gquintard
requested review from
Kaliumhexacyanoferrat and
MDA2AV
as code owners
August 27, 2026 22:25
Contributor
|
👋 Heads up! This PR modifies the following frameworks:
|
Contributor
Author
|
/benchmark -f varnish --save |
Contributor
|
👋 Benchmark request received. A collaborator will review and approve the run. |
Contributor
Benchmark ResultsFramework:
Full log |
gquintard
marked this pull request as draft
August 28, 2026 05:11
Contributor
Author
|
well, that's surprising |
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.
Summary
thread_stats_rate=1000(default 10) to defer per-thread worker-stat aggregation under high request rates. Experiment to isolate whether stats aggregation overhead is contributing to the baseline/pipelined RPS ceiling.vsl_mask=nonethat made-s malloc,256mdead code, never reaching varnishd.Test plan
varnish-thread-tuningexperiment (varnish: remove thread pool overrides, use built-in defaults #1350)