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
MemoryContextStats doesn't deduct memory gp_freed from currently_allocated #14520
Comments
Differences for 6X_STABLE with 9_4_STABLE/7X:(1) (2) (3) In 6X, we have cumulative stats collection done in
which is then consulted in In 9_4_STABLE/7X, (4) The recursion mechanism is also different, due to the concept of "collapsing sibling contexts". 9_4_STABLE does very simple recursion and also doesn't overly complicate the
In 6X, we have to do a lot more work because we have to maintain the Rationale for differences:(1) There is no mention of why we have cumulative stats captured like this in (2) Part of the changes was introduced by historical commit: Possible direction:The notion of However, for stats reporting purposes, lets revert to using the upstream implementation. This essentially means:
|
This was fixed closing. |
Bug Report
Greenplum version or build
OS version and uname -a
autoconf options used ( config.status --config )
Installation information ( pg_config )
Expected behavior
MemoryContextStats should deduct gp_freed memory from the currentlyAllocated output field here:
write_stderr("context: occurrences_count, currently_allocated, currently_available, total_allocated, total_freed, name\n");
Actual behavior
Step to reproduce the behavior
This is not a minimal repro.
Apply the attached patch, run the following and observe the logs.
Note: This does not exist in 7X due to iteration 9.6 merge commit:
Historical commit that added the deviation from upstream:
The text was updated successfully, but these errors were encountered: