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

mon$memory_usage: Sorting memory should be reported as owned by the statement [CORE2477] #2890

Closed
firebird-automations opened this issue May 27, 2009 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Douglas Tosi (douglasht)

I ran a select with group by on a big table without indexes to force an in-memory sort.
I was expecting to see the reported memory used by the statement to increase (up to ~64MB, limited by TempCacheLimit).
Instead, the database memory (stat_group=0) reports a significant increase (as expected) from 35MB to 90MB. But statement, transaction and attachment memory remains very low somewhere between 2 and 60KB (note it's KB not MB).

There is no direct way of detecting which statement, transaction or attachment is actually consuming that big block of memory.
IMO, the reported statement memory should include every bit that was allocated specifically for that statement.

The complete discussion thread is here:
http://sourceforge.net/mailarchive/forum.php?thread_name=gvets3%24g9d%241%40news.atkin.com&forum_name=firebird-devel

Commits: 8e36474

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => In Progress [ 3 ]

Fix Version: 2.5 RC1 [ 10362 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants