Skip to content

[Bug]: [date 8.26]tke regression: sysbench read_only 100threads reported error out of memory #18364

Closed

Description

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

d61a78d

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

job:https://github.com/matrixorigin/mo-nightly-regression/actions/runs/10561737172/job/29258939382
企业微信截图_55c4b460-7451-449d-af5d-c722648ec78b
这个报错必现,sysbench10/100/1000w read_only 100threads都有同样的错误

报错sql:
SELECT DISTINCT c FROM sbtest3 WHERE id BETWEEN ? AND ? ORDER BY c
SELECT c FROM sbtest3 WHERE id BETWEEN ? AND ?

mo log:
https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22OOY%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-main-nightly-d61a78d93-20240826%5C%22%7D%20%7C%3D%20%60out%20of%20memory%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:%221724711098302%22,%22to%22:%221724730291073%22%7D%7D%7D&schemaVersion=1&orgId=1

Expected Behavior

No response

Steps to Reproduce

tke regression sysbench10/100/1000w read_only 100threads test
sysbench命令:
sysbench  --mysql-host=172.16.90.235 --mysql-port=6001 --mysql-user=dump --mysql-password=111  oltp_read_only.lua --mysql-db=sysbench_db --tables=10 --table_size=100000 --threads=100 --time=300 --report-interval=10  --point_selects=1 --skip-trx=on prepare
sysbench  --mysql-host=172.16.90.235 --mysql-port=6001 --mysql-user=dump --mysql--password=111 oltp_read_only.lua --mysql-db=sysbench_db --tables=10 --table_size=100000 --threads=100 --time=300 --report-interval=10  --point_selects=1 --skip-trx=on run

Additional information

No response

Activity

  1. ghost added
    kind/bug
    on Aug 27, 2024
  2. ghost added
    severity/s0
    on Aug 27, 2024
  3. ghost added this to the 1.3.0 milestone on Aug 27, 2024
  4. Repository owner unassigned on Aug 27, 2024
  5. jensenojs commented on Aug 27, 2024

    @jensenojs
    Contributor

    是, 临时性的修复方案已经提到了1.2-dev上, 用这个issue来跟踪main上根因的fix

    #18240 (comment)

  6. reusee commented on Sep 2, 2024

    @reusee
    Contributor

    用这个分支记录到mpool泄漏的路径:https://github.com/reusee/matrixone/tree/freevector

    复现操作:

    启动
    ./mo-service -launch etc/launch/launch.toml -debug-http :9876 2>&1 | tee -i log.txt
    
    跑 tpch
    跑 tpcc
    
    取 profile
    go tool pprof -http :6789 http://localhost:9876/missing-free-mpool/
    

    profile文件:
    profile.pb.gz

    截图:
    Screenshot from 2024-09-02 12-46-18
    Screenshot from 2024-09-02 12-45-47
    Screenshot from 2024-09-02 12-45-34

  7. reusee commented on Sep 2, 2024

    @reusee
    Contributor

    dn/disttae也有一些泄漏的路径
    Screenshot from 2024-09-02 12-50-45

  8. reusee commented on Sep 4, 2024

    @reusee
    Contributor

    Screenshot from 2024-09-04 10-39-22

    从分配量看,主要是上面的路径泄漏比较多

    下面做二分找出哪个commit导致

  9. ghost closed this as completedon Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugphase/testingseverity/s0

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions