Provide per-thread memory usage statistics
Bug #991651 reported by
Laurynas Biveinis
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Wishlist
|
Unassigned | |||
5.5 |
Triaged
|
Wishlist
|
Unassigned | |||
5.6 |
Triaged
|
Wishlist
|
Unassigned | |||
5.7 |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Original request and patch by Lixun Peng:
Hi Guys,
I always found my MySQL use many memory, even though Buffer Pool is small. So I think Server used many memory.
I developed a demo patch (see picture), it can display how many memory used of threads.
Expect this, I think how many sort_buffer/
Do you think this function is very useful?
tags: | added: contribution |
To post a comment you must log in.
After thread based profiling has been introduced in Percona Server 5.5 (http:// www.percona. com/doc/ percona- server/ 5.5/diagnostics /thread_ based_profiling .html), it already collects the following statistics per thread:
long ru_maxrss; /* maximum resident set size */
long ru_ixrss; /* integral shared memory size */
long ru_idrss; /* integral unshared data size */
long ru_isrss; /* integral unshared stack size */
but they are not added to the I_S.profiling table, so they are not available.
However, per-thread page faults (major/minor), swap statistics are still available.
I guess rest can be added to the table as well.