Skip to content

[QUESTION] Lite - Perfmon graph spikes & multiple values at same timestamp #544

@dphugo

Description

@dphugo

Which component is your question about?

Lite

Performance Monitor Version

2.2.0

Is your question about how it works, or the results?

Results / data interpretation

What's your question?

Hi @erikdarlingdata,

Thanks again for fixes #483 and #491 that resolved most of the graph spikes as mentioned in #482.
I thought I’d raise this as a question rather than a bug, as I might be misinterpreting some of the graph results.

1. On the Perfmon tab the spikes after starting up the Lite edition remains

  • In the screenshot below I started up Lite at around 9:00am with the Range set to Last 12 hours.
Image
  • If I set the Range to Last 24 hours it picks up yesterday’s data and then draws the graph as follows:
Image
  • If I set it to Last 4 hours the spikes have disappeared and this what I would expect the above 2 graphs to look like.
    But maybe the above graphs are by design?
Image

Additionally, if the collection timed out, this would also create a tiny spike as the delta is now between the last collection point and the current collection point.
In the graph below it’s set to collect at 1-minute intervals, but it timed out for some of the intervals creating these small spikes.

Image

If the first 2 graphs and the graph above are not what is expected, I suppose there are 2 options for these scenarios: on application startup OR missed collection:

  1. Add a zero-value data point at the current collection timestamp and then add another delta collection value at the same timestamp.
  2. [My preference] Add the last delta collected data point to the current timestamp and then either:
    i) [My preference] Add the delta collected data point at the same timestamp
    ii) Add the delta collected data point at the next timestamp.

Naturally the above are only suggestions, and would highly appreciate your views?

2) Multiple data points at the same timestamp for the same metric

Here again I might be misinterpreting the graph, but it seems like there are multiple datapoints at the same timestamp for some of the metrics.
If we zoom in a bit on the Perfmon graph I would say that the Batch Requests/sec, SQL Compilations/sec and SQL Re-Compilations/Sec lines are as expected. But the Query optimizations/sec and Network IO waits lines are unexpected.
Image

These are rendering more than 1 data point value for the same timestamp which causes these jagged like shape or a single point rise.
My expectation is that these metrics should only have 1 value per timestamp and look similar to the Batch Requests/sec, SQL Compilations/sec and SQL Re-Compilations/Sec lines.

It’s not just on these specific counters only, as you can see in the graph below of I/O Pressure Counters’ Log Bytes Flushed/sec having multiple datapoints per timestamp. Again, my expectation is that there would only be 1 datapoint per timestamp, but I might be misunderstanding the graph.

Image

3) Colour palate variety expansion

Another small thing I noticed in the graph above is that the colours of Page reads/sec and Log Bytes Flushed/sec are quite close to each other. Maybe the colour palate could be expanded a bit with a wider variety of distinct colours?
I initially thought it’s just the 2 different lines rendering causing the render above, but these are 2 different lines.

Image

Looking at the monitor.duckdb with duckdb -ui shows that the grain of table includes instance_name which explains why there are multiple datapoints per timestamp.
Herewith for Query optimizations/sec having instance_name values of default and internal.

Image

Herewith for Network IO waits having 4 different instance_name values.

Image
  1. I’m also not sure what the sample_interval_seconds column is used for but the values seem erratic?

Additional Context

SQL Server Version: SQL Server 2022 (RTM-CU16)

Windows Version: Windows 11 23H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions