Skip to content

Backup: Inefficient memory usage in the RangeTree, when there are millions of tables. #58587

@3pointer

Description

@3pointer

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

When using BR to back up millions of tables and statistics, memory usage becomes excessive. A significant memory spike occurs at the start of the stats dump process.
Image

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

meaningful memory usage.

3. What did you see instead (Required)

Inefficient memory usage

4. What is your TiDB version? (Required)

v8.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/brThis issue is related to BR 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