Repository navigation
Description
Is there an existing issue for the same bug?
- I have checked the existing issues.
Branch Name
main
Commit ID
Other Environment Information
- Hardware parameters:
- OS type:
- Others:Actual Behavior
上周正常的job:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/9581145106
commit:2440b884e23da215733c181b458cefd1ccb32126

log:https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22N7w%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-big-data-20240619%5C%22%7D%20%7C%3D%20%60%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22loki%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%221718755200000%22,%22to%22:%221718927999000%22%7D%7D%7D&schemaVersion=1&orgId=1
性能退化的job:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/9640573308
commit: 9f1c2df

log:https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22N7w%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-big-data-20240624%5C%22%7D%20%7C%3D%20%60%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22loki%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%221719229434000%22,%22to%22:%221719238361000%22%7D%7D%7D&schemaVersion=1&orgId=1
Expected Behavior
No response
Steps to Reproduce
trigger big-data-test on tkeAdditional information
No response
Activity
jensenojs commentedon Jun 25, 2024
性能退化的job在跑
insert into table_with_com_pk_index_for_insert_1B的时候, 从2024 11:43:54开始, 到2024 14:12:41结束它的CPU截图如下所示 :
作为对比, 之前的jobs的CPU截图如下所示 :
gc时间暴涨
jensenojs commentedon Jun 25, 2024
Ariznawlll commentedon Jun 26, 2024
[0626]
1.2-dev: 2545ce4
job url: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/9660414495/job/26646571031
profile: https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22cg0%22:%7B%22datasource%22:%22pyroscope%22,%22queries%22:%5B%7B%22groupBy%22:%5B%5D,%22labelSelector%22:%22%7Bnamespace%3D%5C%22mo-big-data-20240625%5C%22%7D%22,%22queryType%22:%22both%22,%22refId%22:%22A%22,%22profileTypeId%22:%22memory:inuse_space:bytes:space:bytes%22,%22datasource%22:%7B%22type%22:%22grafana-pyroscope-datasource%22,%22uid%22:%22pyroscope%22%7D%7D%5D,%22range%22:%7B%22from%22:%221719342869000%22,%22to%22:%221719349741000%22%7D%7D%7D&schemaVersion=1&orgId=1
jensenojs commentedon Jun 26, 2024
从pprof上看和main上性能退化是类似的
jensenojs commentedon Jun 26, 2024
表因是最近改了
GOLIMIT的参数, 根因还是在insert into select 的时候内存压力太大了, 导致疯狂gc继续做
jensenojs commentedon Jun 26, 2024
等pr合并
jensenojs commentedon Jun 28, 2024
请魏璐帮忙跑了一下main上合并了fuzzy内存优化相关的代码, 可以看到gc的压力小了, 耗时回到了一小时以内.
https://github.com/matrixorigin/mo-nightly-regression/actions/runs/9698664379/job/26775565464
profile link : https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22cg0%22:%7B%22datasource%22:%22pyroscope%22,%22queries%22:%5B%7B%22groupBy%22:%5B%5D,%22labelSelector%22:%22%7Bnamespace%3D%5C%22mo-big-data-20240627%5C%22%7D%22,%22queryType%22:%22both%22,%22refId%22:%22A%22,%22profileTypeId%22:%22memory:inuse_space:bytes:space:bytes%22,%22datasource%22:%7B%22type%22:%22grafana-pyroscope-datasource%22,%22uid%22:%22pyroscope%22%7D%7D%5D,%22range%22:%7B%22from%22:%221719519314000%22,%22to%22:%221719522812000%22%7D%7D%7D&schemaVersion=1&orgId=1
cpu :

inuse-memory :

jensenojs commentedon Jun 28, 2024
但其实不能确定是不是由我的优化来fix的, 毕竟gc跟object数量有关系, 但fuzzy的内存消耗是很大头的, 这个跟gc的直接关系可能不大, 除了我的优化以外, 可能有助于修复这个issue的pr有
可能需要 @ouyuanning 远宁哥评估一下
jensenojs commentedon Jul 3, 2024
main上会继续跑big data query, 再观察一段时间
jensenojs commentedon Jul 8, 2024
等待观察
jensenojs commentedon Jul 11, 2024
等待1.2-dev上的pr合并
Ariznawlll commentedon Jul 16, 2024
1.2-dev

commit-id: 74f04eb
main

commit-id: c1751aa
性能回归正常。
Ariznawlll commentedon Aug 6, 2024
[0806] big data regression
commit: b52e7bc
job url: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10250331351/job/28363600787
(INSERT INTO SELECT 10Y test)
性能变慢期间的profile情况(步骤:insert into table_with_com_pk_index_for_insert_1B):
https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22dzj%22:%7B%22datasource%22:%22pyroscope%22,%22queries%22:%5B%7B%22groupBy%22:%5B%5D,%22labelSelector%22:%22%7Bnamespace%3D%5C%22mo-big-data-20240805%5C%22%7D%22,%22queryType%22:%22both%22,%22refId%22:%22A%22,%22profileTypeId%22:%22memory:inuse_objects:count:space:bytes%22,%22datasource%22:%7B%22type%22:%22grafana-pyroscope-datasource%22,%22uid%22:%22pyroscope%22%7D%7D%5D,%22range%22:%7B%22from%22:%221722886843000%22,%22to%22:%221722892843000%22%7D%7D%7D&schemaVersion=1&orgId=1
赛赛帮忙看下呀 @jensenojs 谢谢您
jensenojs commentedon Aug 9, 2024
从pprof中看不出什么东西来, 简单地试着复现了一下也没成功, 后面再看看
jensenojs commentedon Aug 14, 2024
QA反馈是一个稳定复现的bug, 明天找时间看看
https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22dii%22:%7B%22datasource%22:%22pyroscope%22,%22queries%22:%5B%7B%22groupBy%22:%5B%5D,%22labelSelector%22:%22%7Bnamespace%3D%27mo-big-data-20240811%27%7D%22,%22queryType%22:%22both%22,%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22grafana-pyroscope-datasource%22,%22uid%22:%22pyroscope%22%7D,%22profileTypeId%22:%22memory:inuse_space:bytes:space:bytes%22%7D%5D,%22range%22:%7B%22from%22:%221723406183000%22,%22to%22:%221723411822000%22%7D%7D%7D&schemaVersion=1&orgId=1
jensenojs commentedon Aug 15, 2024
再辛苦魏璐帮忙追踪一下这个问题
Ariznawlll commentedon Aug 15, 2024
0815:
url: https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10390075106/job/28770972278
load data性能下降:

内存使用情况:https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22p_t%22:%7B%22datasource%22:%22pyroscope%22,%22queries%22:%5B%7B%22groupBy%22:%5B%5D,%22labelSelector%22:%22%7Bnamespace%3D%27mo-big-data-20240814%27%7D%22,%22queryType%22:%22both%22,%22refId%22:%22A%22,%22profileTypeId%22:%22memory:inuse_space:bytes:space:bytes%22,%22datasource%22:%7B%22type%22:%22grafana-pyroscope-datasource%22,%22uid%22:%22pyroscope%22%7D%7D%5D,%22range%22:%7B%22from%22:%221723651197000%22,%22to%22:%221723659061000%22%7D%7D%7D&schemaVersion=1&orgId=1
jensenojs commentedon Aug 29, 2024
not working on it
Ariznawlll commentedon Aug 29, 2024
最近正常,先关掉