系统表查询很慢

【 TiDB 使用环境】生产环境
【 TiDB 版本】5.4.2
performance_schema库里系统表查询相当慢。

mysql> select * from tidb_profile_cpu limit 2;
±--------------------±------------±------------±-----------±------±------------------------------------------+
| FUNCTION | PERCENT_ABS | PERCENT_REL | ROOT_CHILD | DEPTH | FILE |
±--------------------±------------±------------±-----------±------±------------------------------------------+
| root | 100% | 100% | 0 | 0 | root |
| ├─runtime.mcall | 30.43% | 30.43% | 1 | 1 | /usr/local/go/src/runtime/asm_amd64.s:327 |
±--------------------±------------±------------±-----------±------±------------------------------------------+
2 rows in set (30.00 sec)

只看语句看不出来什么

嗯。那就别看了。劳心费力!

这个看起来是看 tidb 火焰图的,要抓 30s 才能分析很正常啊 :thinking:

1 个赞

是没有,你去文档区反馈下。或者给 docs 提个 issue。

看不懂

有量么

上面大佬已经回复了。不要在盖楼了。

顶:top::top::top::top: