dumpling: update dumpling document on how to reduce memory usage#5860
Conversation
|
/translation doing |
|
/label needs-cherry-pick-4.0 |
|
@lichunzhu Please involve a technical review~ |
|
/cc 3pointer overvenus |
| --filetype sql \ | ||
| --threads 32 \ | ||
| -o /tmp/test \ | ||
| -r 200000 \ |
There was a problem hiding this comment.
I think it's too large and may cause TiDB OOM.
There was a problem hiding this comment.
If we suggest TiDB uses 1GB memory, and the default threads is 4, then avg_row_length is
1GB / 4 / 200000 = 1342. It's more than 1KB. In most conditions avg_row_length is less than this.
| --filetype sql \ | ||
| --threads 32 \ | ||
| -o /tmp/test \ | ||
| -r 200000 \ |
There was a problem hiding this comment.
Please also add -r to other examples, e.g., ### 导出到 csv 文件
|
/lgtm |
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by writing |
|
|
||
| > **注意:** | ||
| > | ||
| > 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 |
|
/lgtm |
|
@TomShawn PTAL, thanks! |
|
|
||
| > **注意:** | ||
| > | ||
| > 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 |
There was a problem hiding this comment.
| > 导出较大表(单表大小超过 10 GB)时 `-r`, `-F` 参数均**强烈建议**开启。 | |
| > 如果导出的单表大小超过 10 GB,**强烈建议**指定 `-r` 和 `-F` 参数。 |
Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
|
/lgtm |
|
/merge |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 6df2aa6 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-4.0 in PR #5962 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-5.0 in PR #5963 |
|
/translation done |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Update dumpling document on how to reduce memory usage. Make sure users can get this important infomation.
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?