pingcap / tidb-lightning

This repository has been moved to https://github.com/pingcap/br
Apache License 2.0
143 stars 66 forks source link

backend/local: optimize local writer concurrency and memory usage #560

Closed glorv closed 3 years ago

glorv commented 3 years ago

What problem does this PR solve?

Optimize local writer performance and memory usage.

What is changed and how it works?

Optimize local writer by:

Bench result: The benchmark tests were run on a 40core machine with an NVME disk. and based on the following three data and table schema:

Bench Result: DataSet Branch Peak Memory Cost Time
DataSet1 master 34GB 2h25m
DataSet1 opt-local-writer 29GB 1h46m
DataSet2 master 30GB 24m57s
DataSet2 opt-local-writer 30GB 9m32s
DataSet3 master 64GB 1h22m
DataSet3 opt-local-writer 33GB 33m

Check List

Tests

Side effects

Related changes

glorv commented 3 years ago

/run-all-tests

glorv commented 3 years ago

/run-all-tests

glorv commented 3 years ago

closed in favor of https://github.com/pingcap/br/pull/753