Bug #112223 | Adaptive Hash Index(AHI) use 1/64 memory, even it never be switch on | ||
---|---|---|---|
Submitted: | 30 Aug 2023 20:44 | Modified: | 15 Sep 2023 5:30 |
Reporter: | Zongzhi Chen (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | all version | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | ahi, innodb |
[30 Aug 2023 20:44]
Zongzhi Chen
[15 Sep 2023 5:30]
MySQL Verification Team
Hello chen zongzhi, Thank you for the report and feedback. regards, Umesh
[24 Mar 10:28]
Alexey Kopytov
The problem is not only that memory gets allocated even if AHI is disabled. That memory is also zero-initialized leading to physical memory pages to be allocated and linked from the process page table. Another problem is that the allocated memory is not visible in Performance Schema, which has been reported as bug #117778.
[24 Mar 10:55]
Alexey Kopytov
Also, zero-initializing (possibly unused) AHI memory blocks the server startup by a few seconds on instances with big buffer pools.