Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): Reduce the check frequency #18913

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Jul 10, 2020

Checking a channel too regularly could cause context switching to other goroutines. In tight loops, it is prudent to check, but to do so less frequently so as to avoid thrashing.

I have observed traces with huge swings in latency calling the same function repeatedly, which suggests this might be a cause. The alternative is page faults, or other I/O contention.

Checking a channel too regularly could cause
context switching to other goroutines. In tight loops,
it is prudent to check, but to do so less frequently so
as to avoid thrashing.
@stuartcarnie stuartcarnie added area/performance area/influxql Issues related to InfluxQL query language labels Jul 10, 2020
@stuartcarnie stuartcarnie requested a review from a team July 10, 2020 01:45
@stuartcarnie stuartcarnie self-assigned this Jul 10, 2020
@stuartcarnie stuartcarnie merged commit b2923d0 into master Jul 10, 2020
@stuartcarnie stuartcarnie deleted the sgc/issues/performance branch July 10, 2020 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/influxql Issues related to InfluxQL query language area/performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants