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

use MAX() instead of SUM() for latency measurements #1

Merged
merged 1 commit into from
Nov 14, 2017
Merged

Conversation

erayaslan
Copy link
Owner

@erayaslan erayaslan commented Nov 14, 2017

Using SUM() results in multi-second latency measurements when multiple files are used for a database - which is typical for tempdb. Using MAX() gives a more meaningful measurement. AVG() can be used as well but will hide problems when one of the db files encounters a problem. Example:

File0: 30ms
File1: 40ms
File2: 50ms
File3: 60ms
File4: 70ms
File5: 80ms
File6: 90ms

SUM (currently what is reported) results in 420 ms latency, MAX (current proposal) in 90ms and AVG in 60ms

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

Using SUM() results in multi-second latency measurements when multiple files are used for a database - which is typical for tempdb.  Using MAX() gives a more meaningful measurement.   AVG() can be used as well but will hide problems when one of the db files encounters a problem.  Example:

File0: 30ms
File1: 40ms
File2: 50ms
File3: 60ms
File4: 70ms
File5: 80ms
File6: 90ms

SUM (currently what is reported) results in 420 ms latency, MAX (current proposal) in 90ms and AVG in 60ms
@erayaslan erayaslan merged commit 60edefb into master Nov 14, 2017
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