Skip to content

Conversation

@fstreun
Copy link
Collaborator

@fstreun fstreun commented Jan 11, 2025

Each worker thread has its own statistics struct and updates the counters in it independently. The telemetry thread can read the counters from any worker at any time. We assume that updates (to uint64_t) are atomic. Reading the counters should not cause an invalidation of the worker's cache.


This change is Reviewable

Fabio Streun added 3 commits January 11, 2025 09:21
Each worker thread has its own counter struct and updates it independently. The telemetry thread can read the counter struct from any worker at any time because we assume that updates (to uint64_t) are atomic. Reading the counter struct should not cause an invalidation of the worker's cache.
@fstreun fstreun force-pushed the fstreun/stats-rework branch from 08b59d4 to 9f2b765 Compare January 11, 2025 17:33
Fabio Streun added 2 commits January 11, 2025 17:39
Only account them once.
@fstreun fstreun marked this pull request as ready for review January 12, 2025 21:37
@fstreun fstreun requested a review from marcfrei January 12, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant