Bug #103980 | High memory allocation for DROP DATABASE | ||
---|---|---|---|
Submitted: | 11 Jun 2021 13:20 | Modified: | 15 Jun 2021 6:16 |
Reporter: | Sveta Smirnova (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 8.0.23, 8.0.25 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Jun 2021 13:20]
Sveta Smirnova
[11 Jun 2021 13:22]
Sveta Smirnova
SQL to repeat the bug
Attachment: PS-7676.sql (application/sql, text), 2.71 KiB.
[11 Jun 2021 14:13]
Arnaud Adant
jemalloc seems to help reclaim more memory than standard malloc.
[15 Jun 2021 6:16]
MySQL Verification Team
Hello Sveta, Thank you for the report and feedback. regards, Umesh
[15 Jun 2021 20:11]
Dmitry Lenev
Posted by developer: Hello! Note that series of patches addressing bug #29634540 "DROP DATABASE OF 1 MILLION TABLES RESULTED CRASH OF MYSQLD" which were pushed mysql-8.0 branch and which will be part of 8.0.26 release should alleviate this problem to some extent. For example, in my smaller test case I have observed that memory consumption were reduced by half. I think that it makes sense to check if these patches are good enough for real life use-case which made you report this bug once 8.0.26 is published.