[MDEV-14315] Reflect use of tcmalloc in a system variable and error log Created: 2017-11-07 Updated: 2017-12-19 Resolved: 2017-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Fix Version/s: | 10.3.3 |
| Type: | Task | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
As discussed, it would be useful to be able to detect usage of tcmalloc from a running server (via system variables) and after the fact, from the server error log. The existing variable is called version_malloc_library. |
| Comments |
| Comment by Vesa Pentti (Inactive) [ 2017-11-21 ] |
|
const char* tc_version(int* major, int* minor, const char** patch); |
| Comment by Vesa Pentti (Inactive) [ 2017-12-11 ] |
|
The variable is the same: 'version_malloc_library' |
| Comment by Sergei Golubchik [ 2017-12-12 ] |
|
1. guess_malloc_library.cc looks like pure C and a generally useful helper, so it'd make sense to move it to mysys/guess_malloc_library.c (and in this case guess_malloc_library.h is not needed, the prototype can be in my_sys.h. otherwise looks good, thanks! |
| Comment by Sergei Golubchik [ 2017-12-16 ] |
|
Just one more change and ok to push into bb-10.2-ext:
|
| Comment by Vesa Pentti (Inactive) [ 2017-12-16 ] |
|
Roger that |