Bug #103920 | memory recycle improve in fts query | ||
---|---|---|---|
Submitted: | 6 Jun 2021 9:52 | Modified: | 7 Jun 2021 8:43 |
Reporter: | yuxiang jiang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: FULLTEXT search | Severity: | S3 (Non-critical) |
Version: | 8.0, 8.0.25, 5.7.34 | OS: | CentOS |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution, oom memory full text search |
[6 Jun 2021 9:52]
yuxiang jiang
[6 Jun 2021 9:52]
yuxiang jiang
for fts memory recycle (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: 0001-fts-query-memory-recycle.patch (application/octet-stream, text), 1.64 KiB.
[7 Jun 2021 8:43]
MySQL Verification Team
Hello yuxiang jiang, Thank you for the report and contribution. regards, Umesh
[7 Jun 2021 14:48]
Satya Bodapati
may be use the same malloc_trim trick on all mem_heap_free() that frees more than X blocks (ofcourse not applicable on bufferpool allocations) Rings me an old bug: https://bugs.mysql.com/bug.php?id=95065
[7 Jun 2021 14:51]
Satya Bodapati
Current workaround is to use jemalloc or tcmalloc but good to have some kind of fix from code as well