Skip to content

merge-sort step pre-alloc too many memory #48342

@D3Hunter

Description

@D3Hunter

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

import 10t data on 5 16c32g nodes, during merge-sort step some node take too many memory

node0/1/3 oom, memory usage of 2/4 is normal

image

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

with this pr #48277

| Release Version: v7.6.0-test
Edition: Community
Git Commit Hash: 73afea0396530cad3dde87cd5ea1be77f461e793
Git Branch: heads/refs/tags/v7.6.0-test
UTC Build Time: 2023-11-06 14:44:17
GoVersion: go1.21.3
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
+-----------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.component/ddlThis issue is related to DDL of TiDB.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions