[MDEV-28028] PFS uncontrolled memory usage cap to OS memory until OOM Created: 2022-03-09 Updated: 2022-03-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Performance Schema |
| Affects Version/s: | 10.3.32 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | VAROQUI Stephane | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian Edge |
||
| Attachments: |
|
| Description |
|
After an upgrade to this 10.3.32 with performance_schema=ON default probe enable we notice a change in the memory usage of the mariadb process. The Sum of global buffers & dynamic allocation is estimated 10G but we end up with a 350G RSS size in a day and stabilized to physical memory of the server until it OOM. Truncate all PS tables without being able to get back the used memory only restart with disabling PFS limit the process RSS to around 10G see attached monitoring and a 10s perf malloc of the workload |
| Comments |
| Comment by VAROQUI Stephane [ 2022-03-09 ] |
|
The os run some multi instances but most of the other instances do not use PFS and JEMalloc is preloaded |
| Comment by Richard DEMONGEOT [ 2022-03-09 ] |
|
Previous version was 10.3.31 . |
| Comment by Richard DEMONGEOT [ 2022-03-15 ] |
|
Ram consumption was stabilized by removing the performance schema. |