Do you know that it’s possible to get information from the CPUs of your MySQL Server from SQL ?
If you enable the status for the INNODB_METRICS
table in
INFORMATION_SCHEMA
, you will be able to query CPU
information.
First, check if those status are enabled:
MySQL> SELECT name, subsystem, status…[Read more]
FROM INFORMATION_SCHEMA.INNODB_METRICS where NAME like 'cpu%';
+---------------+-----------+----------+
| name | subsystem | status |
+---------------+-----------+----------+
| cpu_utime_abs | cpu | disabled |
| cpu_stime_abs | cpu | disabled |
| cpu_utime_pct | cpu | disabled |
| cpu_stime_pct | cpu | disabled |
| cpu_n | cpu | disabled |
+---------------+-----------+----------+
5 rows in set (0.00 sec)