Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

MemTable is not get freed while creating index #1211

Description

@rockeet

We run myrocks with sysbench:

sysbench --db-driver=mysql --threads=20 --mysql-host=192.168.100.10  \
         --mysql-port=3306 --mysql-user=test  --mysql-password=1234 \
         --mysql-db=test --tables=100 --table_size=100000000 oltp_write_only \
         --mysql_storage_engine='rocksdb default charset latin1' prepare

When creating index, data insertion on other tables is still running, we noticed that MemTables were not get freed during this period, the memory usage is very high, once index creation is done, the memory usage is decreased. On small memory machine, the mysqld process were kill for OOM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions