Bug #81804 | Memory leak or bug in P_S instrumentation for InnoDB threads | ||
---|---|---|---|
Submitted: | 10 Jun 2016 12:35 | Modified: | 13 Jun 2016 11:50 |
Reporter: | Sveta Smirnova (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.7.13 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Jun 2016 12:35]
Sveta Smirnova
[10 Jun 2016 12:58]
Sveta Smirnova
If run sysbench oltp test for some time situation becomes even worse: mysql> select * from memory_by_thread_by_current_bytes; +-----------+---------------------------------+--------------------+-------------------+-------------------+-------------------+-----------------+ | thread_id | user | current_count_used | current_allocated | current_avg_alloc | current_max_alloc | total_allocated | +-----------+---------------------------------+--------------------+-------------------+-------------------+-------------------+-----------------+ | 1 | sql/main | 11104 | 40.37 MiB | 3.72 KiB | 25.19 MiB | 66.13 MiB | | 9 | innodb/page_cleaner_thread | 58511 | 4.46 MiB | 80 bytes | 4.46 MiB | 22.74 MiB | | 23 | root@localhost | 564 | 1.45 MiB | 2.63 KiB | 805.47 KiB | 57.98 MiB | | 14 | innodb/srv_master_thread | 2687 | 209.92 KiB | 80 bytes | 209.92 KiB | 115.25 MiB | | 20 | innodb/dict_stats_thread | 47 | 7.72 KiB | 168 bytes | 6.88 KiB | 6.12 MiB | | 19 | innodb/buf_dump_thread | 1 | 32 bytes | 32 bytes | 32 bytes | 299.10 KiB | | 11 | innodb/srv_lock_timeout_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 12 | innodb/srv_error_monitor_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 13 | innodb/srv_monitor_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 15 | innodb/srv_purge_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 16 | innodb/srv_worker_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 17 | innodb/srv_worker_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 18 | innodb/srv_worker_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 21 | sql/signal_handler | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 22 | sql/compress_gtid_table | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 2 | sql/thread_timer_notifier | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 3 | innodb/io_ibuf_thread | 0 | 0 bytes | 0 bytes | 0 bytes | 0 bytes | | 4 | innodb/io_log_thread | -95 | -7600 bytes | 80 bytes | 0 bytes | 0 bytes | | 6 | innodb/io_read_thread | -1109 | -88720 bytes | 80 bytes | 0 bytes | 238.06 MiB | | 5 | innodb/io_read_thread | -1502 | -120160 bytes | 80 bytes | 0 bytes | 296.04 MiB | | 7 | innodb/io_write_thread | -25533 | -2042640 bytes | 80 bytes | 0 bytes | 177.23 KiB | | 8 | innodb/io_write_thread | -32978 | -2638240 bytes | 80 bytes | 0 bytes | 189.45 KiB | +-----------+---------------------------------+--------------------+-------------------+-------------------+-------------------+-----------------+ 22 rows in set (0,10 sec)
[13 Jun 2016 11:50]
MySQL Verification Team
Hello Sveta, Thank you for the report and feedback. Thanks, Umesh
[2 Jul 2019 10:59]
minlei sun
I still found it in mysql-5.7.26-log. mysql> select * from memory_summary_by_host_by_event_name where event_name='memory/innodb/mem0mem' and host='localhost'\G *************************** 1. row *************************** HOST: localhost EVENT_NAME: memory/innodb/mem0mem COUNT_ALLOC: 446 COUNT_FREE: 574 SUM_NUMBER_OF_BYTES_ALLOC: 530879 SUM_NUMBER_OF_BYTES_FREE: 1022464 LOW_COUNT_USED: -128 CURRENT_COUNT_USED: -128 HIGH_COUNT_USED: 38 LOW_NUMBER_OF_BYTES_USED: -491585 CURRENT_NUMBER_OF_BYTES_USED: -491585 HIGH_NUMBER_OF_BYTES_USED: 44639 1 row in set (0.01 sec) mysql> select version(); +------------+ | version() | +------------+ | 5.7.26-log | +------------+ 1 row in set (0.00 sec)