grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
10.07k stars 608 forks source link

alloc_space max than inuse_space #1976

Closed cao2358 closed 1 year ago

cao2358 commented 1 year ago

with version: v0.37.2 at my graph , the alloc_space is less than inuse_space , why ? for alloc_space vs inuse_space image image

here is a bug?

kolesnikovae commented 1 year ago

Hello @cao2358,

Thank you for reporting the issue! These are quite different measurements:

For convenience, Pyroscope server calculates deltas of alloc_* profiles, but that requires two consecutive samples, therefore the difference in the screenshot is understood and expected if you've only sent just one profile. Also, please note that inuse_* profiles are averaged, therefore the difference with alloc_* profiles will be more and more prominent over time

cao2358 commented 1 year ago

Does this mean that the histogram for alloc* shows new allocations over the previous one? And inuse* represent the average memory usage?

kolesnikovae commented 1 year ago

Sorry for the delay!

Does this mean that the histogram for alloc* shows new allocations over the previous one? And inuse* represent the average memory usage?

kolesnikovae commented 1 year ago

If you don't mind I close the issue. Please feel free to re-open it if you have any questions