Bug #105969 | The value in the column current_memory of table sys.host_summary is not accurate | ||
---|---|---|---|
Submitted: | 24 Dec 2021 7:20 | Modified: | 25 Dec 2021 7:37 |
Reporter: | fander chan | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: SYS Schema | Severity: | S3 (Non-critical) |
Version: | 5.7.36 | OS: | CentOS (7.5) |
Assigned to: | CPU Architecture: | x86 | |
Tags: | sys |
[24 Dec 2021 7:20]
fander chan
[24 Dec 2021 12:51]
MySQL Verification Team
Hello fander chan, Thank you for the report and test case. I tried quickly using 5.7.36 build but not seeing any issues with the exact steps provided in the report. Could you please check on latest GA and confirm at your end? Thank you. regards, Umesh
[24 Dec 2021 18:10]
fander chan
[root@fander ~]# mysql -uroot -proot -S /tmp/mysql3307.sock -e "select @@version" mysql: [Warning] Using a password on the command line interface can be insecure. +------------+ | @@version | +------------+ | 5.7.36-log | +------------+ [root@fander ~]# for i in `seq 1 10000`; do mysql -uroot -proot -S /tmp/mysql3307.sock -e "select * from sys.host_summary;" ;done mysql> select * from sys.host_summary; +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | host | statements | statement_latency | statement_avg_latency | table_scans | file_ios | file_io_latency | current_connections | total_connections | unique_users | current_memory | total_memory_allocated | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | localhost | 1 | 252.77 us | 252.77 us | 0 | 58 | 194.90 us | 1 | 1 | 1 | 1.93 MiB | 2.17 MiB | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ 1 row in set (0.01 sec) ... mysql: [Warning] Using a password on the command line interface can be insecure. +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | host | statements | statement_latency | statement_avg_latency | table_scans | file_ios | file_io_latency | current_connections | total_connections | unique_users | current_memory | total_memory_allocated | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | localhost | 29574 | 6.09 s | 206.06 us | 767 | 4657 | 14.94 ms | 2 | 766 | 1 | 14.34 MiB | 2.64 GiB | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | host | statements | statement_latency | statement_avg_latency | table_scans | file_ios | file_io_latency | current_connections | total_connections | unique_users | current_memory | total_memory_allocated | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | localhost | 29612 | 6.10 s | 206.11 us | 768 | 4663 | 14.96 ms | 2 | 767 | 1 | 14.35 MiB | 2.64 GiB | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | host | statements | statement_latency | statement_avg_latency | table_scans | file_ios | file_io_latency | current_connections | total_connections | unique_users | current_memory | total_memory_allocated | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | localhost | 29650 | 6.11 s | 206.15 us | 769 | 4669 | 14.98 ms | 2 | 768 | 1 | 14.37 MiB | 2.65 GiB | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | host | statements | statement_latency | statement_avg_latency | table_scans | file_ios | file_io_latency | current_connections | total_connections | unique_users | current_memory | total_memory_allocated | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ | localhost | 29688 | 6.12 s | 206.17 us | 770 | 4675 | 15.04 ms | 2 | 769 | 1 | 14.39 MiB | 2.65 GiB | +-----------+------------+-------------------+-----------------------+-------------+----------+-----------------+---------------------+-------------------+--------------+----------------+------------------------+ mysql: [Warning] Using a password on the command line interface can be insecure. ^C
[24 Dec 2021 18:14]
fander chan
Here is my my.cnf
Attachment: my.cnf (application/octet-stream, text), 8.37 KiB.
[25 Dec 2021 7:37]
MySQL Verification Team
Hello fander chan, Thank you for the details, verified as described. regards, Umesh